REF: organizing scripts

This commit is contained in:
Overtorment 2020-05-19 18:16:30 +01:00
parent 2fdcb0477c
commit 0075c8820d
13 changed files with 8 additions and 33 deletions

View File

@ -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!

View File

@ -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

View File

@ -1,4 +0,0 @@
{
"name": "BlueWallet",
"displayName": "BlueWallet"
}

View File

@ -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

View File

@ -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)) {
@ -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)) {

View File

@ -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

View File

@ -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);

View File

@ -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",

View File

@ -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));

View File

@ -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