misc fixes

This commit is contained in:
linsui 2023-07-21 21:28:55 +08:00
parent 610ee5974f
commit 1e85bb7579
3 changed files with 40 additions and 155 deletions

View file

@ -175,60 +175,6 @@ Builds:
- gradle assembleRelease
ndk: r23b
- versionName: 1.4.2
versionCode: 11
commit: a646159c21c7c866c77f15d01de29df540f49494
sudo:
- sysctl fs.inotify.max_user_watches=524288
- curl -Lo node.tar.gz https://nodejs.org/dist/v18.16.0/node-v18.16.0-linux-x64.tar.gz
- echo "fc83046a93d2189d919005a348db3b2372b598a145d84eb9781a3a4b0f032e95 node.tar.gz"
| sha256sum -c -
- tar xzf node.tar.gz --strip-components=1 -C /usr/local/
- npm -g install yarn
init: yarn install
output: android/app/build/outputs/apk/release/app-release.apk
prebuild:
- sdkmanager 'cmake;3.22.1'
- yarn expo prebuild
- cp -r script/res/node_modules/* node_modules/
- cp script/res/android/app/src/main/res/values/styles.xml android/app/src/main/res/values/styles.xml
- cp script/res/android/app/src/main/res/values-night/colors.xml android/app/src/main/res/values-night/colors.xml
- rm -fr script/res ios
scanignore:
- android/build.gradle
- node_modules/react-native/sdks/hermesc
- node_modules/expo/android/build.gradle
- node_modules/expo-application/android/build.gradle
- node_modules/expo-constants/android/build.gradle
- node_modules/expo-file-system/android/build.gradle
- node_modules/expo-font/android/build.gradle
- node_modules/expo-image-loader/android/build.gradle
- node_modules/expo-image-manipulator/android/build.gradle
- node_modules/expo-image-picker/android/build.gradle
- node_modules/expo-keep-awake/android/build.gradle
- node_modules/expo-localization/android/build.gradle
- node_modules/expo-location/android/build.gradle
- node_modules/expo-media-library/android/build.gradle
- node_modules/expo-modules-core/android/build.gradle
- node_modules/expo-modules-autolinking/scripts/android/autolinking_implementation.gradle
- node_modules/expo-secure-store/android/build.gradle
- node_modules/expo-splash-screen/android/build.gradle
- node_modules/expo-web-browser/android/build.gradle
- node_modules/jsc-android
- node_modules/@react-native-async-storage/async-storage/android/build.gradle
- node_modules/react-native-file-access/android/build.gradle
- node_modules/react-native-pager-view/android/build.gradle
- node_modules/react-native-safe-area-context/android/build.gradle
- node_modules/react-native-screens/android/build.gradle
- node_modules/react-native-svg/android/build.gradle
- node_modules/react-native-vector-icons/android/build.gradle
scandelete:
- node_modules/
build:
- cd android/app
- gradle assembleRelease
ndk: r23b
- versionName: 1.4.3
versionCode: 12
commit: 2703dadd4a0866fa0b679601daf9e3806fd808fc

View file

@ -438,6 +438,41 @@ Builds:
- node_modules/jszip/.jekyll-metadata
build: cordova compile android --release -- --packageType=apk
- versionName: 1.8.5
versionCode: 303
commit: 1b9d7018c5410998caa4e491e487534aaaa731aa
sudo:
- sysctl fs.inotify.max_user_watches=524288 || true
- chmod -R 777 /opt/android-sdk
- curl -Lo node.tar.gz https://nodejs.org/dist/v18.16.1/node-v18.16.1-linux-x64.tar.gz
- echo "59582f51570d0857de6333620323bdeee5ae36107318f86ce5eca24747cabf5b node.tar.gz"
| sha256sum -c -
- tar xzf node.tar.gz --strip-components=1 -C /usr/local/
- npm install -g npm@latest
- npm install -g cordova yarn
output: platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk
rm:
- src/pages/donate
- src/plugins/iap
prebuild:
- sed -i -e '/iap/d' package.json
- sed -i -e '/iap.startConnection/,/Purchase error/c} catch (e) {' src/lib/main.js
- sed -i -e '/Donate/d' src/settings/mainSettings.js
- sed -i -e 's/acodefree/acode/' utils/config.js
- sed -i -e 's/build/prepare/' utils/scripts/build.sh
- sed -i -e '/core-google-shortcuts/d' src/plugins/system/plugin.xml
- yarn setup
- cordova plugin add cordova-plugin-file
- cordova platform add android
- rm node_modules/cordova-android/framework/cordova-publish.gradle
- yarn build android free p
- sdkmanager 'build-tools;31.0.0' 'build-tools;30.0.3'
- cp $$SDK$$/build-tools/30.0.3/lib/dx.jar $$SDK$$/build-tools/31.0.0/lib/dx.jar
- cp $$SDK$$/build-tools/30.0.3/dx $$SDK$$/build-tools/31.0.0/dx
scandelete:
- node_modules/jszip/.jekyll-metadata
build: cordova compile android --release -- --packageType=apk
AutoUpdateMode: None
UpdateCheckMode: HTTP
UpdateCheckData: https://raw.githubusercontent.com/deadlyjack/Acode/main/config.xml|android-versionCode="(\d+)"|.|version="([\d.]+)"

View file

@ -12184,105 +12184,9 @@ Builds:
- .yarn/
ndk: r23b
- versionName: 3.167.0
versionCode: 3001038
commit: '@standardnotes/mobile@3.167.0'
subdir: packages/mobile/android/app
sudo:
- apt-get update
- apt-get install -y libsecret-1-dev build-essential
- curl -Lo node.tar.gz https://nodejs.org/download/release/v16.20.0/node-v16.20.0-linux-x64.tar.gz
- echo "7abc0e558fa3b3c4cc0fd3c7fa5dbe61500ba7213f5e87ed560c65a733c6a5c4 node.tar.gz"
| sha256sum -c -
- tar xzf node.tar.gz --strip-components=1 -C /usr/local/
- npm install -g yarn
- sysctl fs.inotify.max_user_watches=524288 || true
init:
- cd ../../../..
- yarn config set -H enableImmutableInstalls false
- sed -i -e '/react-native-iap/d' packages/mobile/package.json
- npm_config_build_from_source=true yarn
patch:
- remove-IAP.3.146.2.patch
- disable-gms-u2f-support-3.160.17.patch
gradle:
- prod
rm:
- packages/mobile/ios
prebuild:
- sed -i -e '/detox/Id' -e 's/versionName appVersionName/versionName "$$VERSION$$"/'
-e 's/versionCode appVersionCode/versionCode $$VERCODE$$/' -e '/universalApk/s/false/true/'
build.gradle
- pushd ../../../..
- yarn run build:mobile
- popd
- pushd ../..
- yarn run android:bundle
- popd
scanignore:
- packages/mobile/node_modules/jsc-android
- packages/mobile/node_modules/react-native
- packages/mobile/node_modules/detox/android/build.gradle
- packages/mobile/node_modules/@standardnotes/react-native-utils/android/build.gradle
- packages/mobile/node_modules/@react-native-async-storage/async-storage/android/build.gradle
scandelete:
- node_modules/
- packages/mobile/node_modules
- packages/desktop
- .yarn/
ndk: r23b
- versionName: 3.167.1
versionCode: 3001039
commit: '@standardnotes/mobile@3.167.1'
subdir: packages/mobile/android/app
sudo:
- apt-get update
- apt-get install -y libsecret-1-dev build-essential
- curl -Lo node.tar.gz https://nodejs.org/download/release/v16.20.0/node-v16.20.0-linux-x64.tar.gz
- echo "7abc0e558fa3b3c4cc0fd3c7fa5dbe61500ba7213f5e87ed560c65a733c6a5c4 node.tar.gz"
| sha256sum -c -
- tar xzf node.tar.gz --strip-components=1 -C /usr/local/
- npm install -g yarn
- sysctl fs.inotify.max_user_watches=524288 || true
init:
- cd ../../../..
- yarn config set -H enableImmutableInstalls false
- sed -i -e '/react-native-iap/d' packages/mobile/package.json
- npm_config_build_from_source=true yarn
patch:
- remove-IAP.3.146.2.patch
- disable-gms-u2f-support-3.160.17.patch
gradle:
- prod
rm:
- packages/mobile/ios
prebuild:
- sed -i -e '/detox/Id' -e 's/versionName appVersionName/versionName "$$VERSION$$"/'
-e 's/versionCode appVersionCode/versionCode $$VERCODE$$/' -e '/universalApk/s/false/true/'
build.gradle
- pushd ../../../..
- yarn run build:mobile
- popd
- pushd ../..
- yarn run android:bundle
- popd
scanignore:
- packages/mobile/node_modules/jsc-android
- packages/mobile/node_modules/react-native
- packages/mobile/node_modules/detox/android/build.gradle
- packages/mobile/node_modules/@standardnotes/react-native-utils/android/build.gradle
- packages/mobile/node_modules/@react-native-async-storage/async-storage/android/build.gradle
scandelete:
- node_modules/
- packages/mobile/node_modules
- packages/desktop
- .yarn/
ndk: r23b
- versionName: 3.167.2
versionCode: 3001040
commit: '@standardnotes/mobile@3.167.2'
- versionName: 3.167.3
versionCode: 3001041
commit: '@standardnotes/mobile@3.167.3'
subdir: packages/mobile/android/app
sudo:
- apt-get update
@ -12333,5 +12237,5 @@ UpdateCheckMode: HTTP
VercodeOperation:
- 3000310 + %c
UpdateCheckData: https://github.com/standardnotes/app/actions/workflows/mobile.release.prod.yml|(\d+)\sworkflow\sruns|https://github.com/standardnotes/app/releases|/releases/tag/%40standardnotes%2Fmobile%40([\d.]+)
CurrentVersion: 3.167.2
CurrentVersionCode: 3001040
CurrentVersion: 3.167.3
CurrentVersionCode: 3001041