diff --git a/README.md b/README.md index f0b5f6d384..ec3c8f2c22 100644 --- a/README.md +++ b/README.md @@ -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 bluewallet@bluewallet.io Thanks! diff --git a/RELEASE.md b/RELEASE.md index 21067dc3a9..a45f5c0d49 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -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 diff --git a/app.json b/app.json deleted file mode 100644 index c501a12bb3..0000000000 --- a/app.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "BlueWallet", - "displayName": "BlueWallet" -} \ No newline at end of file diff --git a/appcenter-post-build.sh b/appcenter-post-build.sh index 2d53712787..196e4f1c5a 100755 --- a/appcenter-post-build.sh +++ b/appcenter-post-build.sh @@ -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 diff --git a/class/app-storage.js b/class/app-storage.js index 10bd0d42ce..66345dc6ca 100644 --- a/class/app-storage.js +++ b/class/app-storage.js @@ -408,7 +408,7 @@ export class AppStorage { * @return {Promise.} */ 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)) { @@ -434,7 +434,7 @@ export class AppStorage { * @return {Promise.} */ 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)) { diff --git a/help.txt b/help.txt deleted file mode 100644 index 3069d52e3f..0000000000 --- a/help.txt +++ /dev/null @@ -1,9 +0,0 @@ -ANDROID -======= - -https://facebook.github.io/react-native/docs/signed-apk-android -https://developer.android.com/studio/run/emulator-commandline - -./gradlew cleanBuildCache -./gradlew assembleRelease -react-native run-android --variant=release diff --git a/index.js b/index.js index 77b860aedf..56852855ec 100644 --- a/index.js +++ b/index.js @@ -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'; @@ -77,4 +76,4 @@ class BlueAppComponent extends React.Component { } } -AppRegistry.registerComponent(appName, () => BlueAppComponent); +AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent); diff --git a/package.json b/package.json index bedfff5549..4e170b99e4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/appcenter-post-build-get-pr-number.js b/scripts/appcenter-post-build-get-pr-number.js similarity index 100% rename from appcenter-post-build-get-pr-number.js rename to scripts/appcenter-post-build-get-pr-number.js diff --git a/podinstall.sh b/scripts/podinstall.sh similarity index 100% rename from podinstall.sh rename to scripts/podinstall.sh diff --git a/release-notes.sh b/scripts/release-notes.sh similarity index 100% rename from release-notes.sh rename to scripts/release-notes.sh diff --git a/up-build-number.js b/up-build-number.js deleted file mode 100644 index d6a13aefa2..0000000000 --- a/up-build-number.js +++ /dev/null @@ -1,6 +0,0 @@ -let fs = require('fs'); -var appjson = require('./app.json'); -appjson.expo.ios.buildNumber++; -appjson.expo.ios.buildNumber = appjson.expo.ios.buildNumber + ''; // casting to string -console.log(appjson.expo.version, '(', appjson.expo.ios.buildNumber, ')'); -fs.writeFileSync('./app.json', JSON.stringify(appjson, null, 2)); diff --git a/up-build-number.sh b/up-build-number.sh deleted file mode 100755 index 4d8833f936..0000000000 --- a/up-build-number.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -./release-notes.sh -./release-notes.sh > fastlane/metadata/en-US/release_notes.txt -echo -nodejs up-build-number.js \ No newline at end of file