Skip to content

Commit

Permalink
REF: organizing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed May 19, 2020
1 parent 2fdcb04 commit 0075c88
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 33 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Grab an issue from [the backlog](https://github.com/BlueWallet/BlueWallet/projec

Join us at our [telegram group](https://t.me/bluewallet) where we hangout :+1:

## Responsible disclosure
## RESPONSIBLE DISCLOSURE

Found critical bugs/vulnerabilities? Please email them [email protected]
Thanks!
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

* test the build on a real device. It is imperative that you run selftest and it gives you OK
* if necessary, up version number in all relevant files (you can use `./edit-version-number.sh`)
* run `./release-notes.sh` - it prints changelog between latest tag and now, put this output under
* run `./scripts/release-notes.sh` - it prints changelog between latest tag and now, put this output under
new version in file `ios/fastlane/metadata/en-US/release_notes.txt` (on top); if file got too big
delete the oldest version from the bottom of the file
* now is a good time to commit a ver bump and release notes changes
Expand Down
4 changes: 0 additions & 4 deletions app.json

This file was deleted.

2 changes: 1 addition & 1 deletion appcenter-post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ -f $FILENAME ]; then
echo $APTZ
APPURL=`node -e "let e = JSON.parse('$APTZ'); console.log(e.publicURL);"`
echo App url: $APPURL
PR=`node appcenter-post-build-get-pr-number.js`
PR=`node scripts/appcenter-post-build-get-pr-number.js`
echo PR: $PR

# uploading file
Expand Down
4 changes: 2 additions & 2 deletions class/app-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ export class AppStorage {
* @return {Promise.<void>}
*/
async fetchWalletBalances(index) {
console.log('fetchWalletBalances for wallet#', index);
console.log('fetchWalletBalances for wallet#', typeof index === 'undefined' ? '(all)' : index);
if (index || index === 0) {
let c = 0;
for (let wallet of this.wallets.filter(wallet => wallet.type !== PlaceholderWallet.type)) {
Expand All @@ -434,7 +434,7 @@ export class AppStorage {
* @return {Promise.<void>}
*/
async fetchWalletTransactions(index) {
console.log('fetchWalletTransactions for wallet#', index);
console.log('fetchWalletTransactions for wallet#', typeof index === 'undefined' ? '(all)' : index);
if (index || index === 0) {
let c = 0;
for (let wallet of this.wallets.filter(wallet => wallet.type !== PlaceholderWallet.type)) {
Expand Down
9 changes: 0 additions & 9 deletions help.txt

This file was deleted.

3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import React from 'react';
import './shim.js';
import { AppRegistry } from 'react-native';
import WalletMigrate from './screen/wallets/walletMigrate';
import { name as appName } from './app.json';
import App from './App';
import LottieView from 'lottie-react-native';
import UnlockWith from './UnlockWith.js';
Expand Down Expand Up @@ -77,4 +76,4 @@ class BlueAppComponent extends React.Component {
}
}

AppRegistry.registerComponent(appName, () => BlueAppComponent);
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"scripts": {
"prepare": "./patches/fix_mangle.sh; git apply patches/minifier.js.patch; git apply patches/minify.js.patch",
"clean": "cd android/; ./gradlew clean; cd ..; rm -r -f /tmp/metro-cache/; rm -r -f node_modules/; npm cache clean --force; npm i; npm start -- --reset-cache",
"releasenotes2json": "./release-notes.sh > release-notes.txt; node -e 'console.log(JSON.stringify(require(\"fs\").readFileSync(\"release-notes.txt\", \"utf8\")));' > release-notes.json",
"podinstall": "./podinstall.sh",
"releasenotes2json": "./scripts/release-notes.sh > release-notes.txt; node -e 'console.log(JSON.stringify(require(\"fs\").readFileSync(\"release-notes.txt\", \"utf8\")));' > release-notes.json",
"podinstall": "./scripts/podinstall.sh",
"start": "node node_modules/react-native/local-cli/cli.js start",
"android": "react-native run-android",
"android:clean": "cd android; ./gradlew clean ; cd .. ; npm run android",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions up-build-number.js

This file was deleted.

5 changes: 0 additions & 5 deletions up-build-number.sh

This file was deleted.

0 comments on commit 0075c88

Please sign in to comment.