misc fixes

This commit is contained in:
linsui 2022-11-18 15:57:41 +08:00
parent a43670c227
commit fffc0e99ea
4 changed files with 22 additions and 74 deletions

View file

@ -116,10 +116,10 @@ Builds:
commit: 19c4756e4773261807c3efb9e1cc0c32afbfbefc
sudo:
- apt-get update
- apt-get install -y ninja-build openjdk-11-jdk-headless
- apt-get install -y ninja-build
output: build/app/outputs/flutter-apk/app-release.apk
srclibs:
- flutter@3.3.0
- flutter@3.3.8
rm:
- ios
- linux
@ -128,8 +128,7 @@ Builds:
- web
- windows
- winuwp
prebuild: JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 $$SDK$$/tools/bin/sdkmanager
'cmake;3.18.1'
prebuild: sdkmanager 'cmake;3.18.1'
build:
- $$flutter$$/bin/flutter config --no-analytics
- $$flutter$$/bin/flutter build apk --release

View file

@ -77,6 +77,7 @@ Builds:
- versionName: 1.7.0
versionCode: 10
disable: doesn't start
commit: d98b87efa6ddfe2529756c51ed33701febbcd55c
output: build/app/outputs/flutter-apk/app-release.apk
srclibs:
@ -88,8 +89,21 @@ Builds:
- $$flutter$$/bin/flutter config --no-analytics
- $$flutter$$/bin/flutter build apk
- versionName: 1.7.1
versionCode: 11
commit: f19bf9d4ffba6c9145af825e1f32f91be8d24345
output: build/app/outputs/flutter-apk/app-release.apk
srclibs:
- flutter@2.5.3
rm:
- ios
- android/app/proguard-rules.pro
build:
- $$flutter$$/bin/flutter config --no-analytics
- $$flutter$$/bin/flutter build apk
AutoUpdateMode: Version
UpdateCheckMode: Tags ^v.*$
UpdateCheckData: pubspec.yaml|version:\s.+\+(\d+)|.|version:\s(.+)\+
CurrentVersion: 1.7.0
CurrentVersionCode: 10
CurrentVersion: 1.7.1
CurrentVersionCode: 11

View file

@ -182,6 +182,7 @@ Builds:
- versionName: 0.7.1
versionCode: 22
disable: crash
commit: 1d1f2d779705fcc7032798356cb77b2ccd481ce0
subdir: app
gradle:

View file

@ -214,75 +214,9 @@ Builds:
- mv $$react-native-reanimated$$/build/outputs/aar/android-release.aar ../../node_modules/react-native-reanimated/android/react-native-reanimated-67-jsc.aar
ndk: r23c
- versionName: '27.193'
versionCode: 193
disable: reanimated build failed
commit: 6fc6189a42061738603bb8052f75aa73cf9a6b32
subdir: android/app
sudo:
- curl -Lo node.tar.gz https://nodejs.org/dist/v16.18.0/node-v16.18.0-linux-x64.tar.gz
- echo "faca6476cb5b41aa995370fd856d16fcfbbef5c18718a6fa44cc1bae4140849d node.tar.gz"
| sha256sum -c -
- tar xzf node.tar.gz --strip-components=1 -C /usr/local/
- npm -g install yarn
- sysctl fs.inotify.max_user_watches=524288 || true
gradle:
- yes
srclibs:
- react-native-reanimated@2.2.4
rm:
- android/app/src/main/java/com/zulipmobile/notifications/FcmListenerService.java
- ios
prebuild:
- sed -i -e 's/enable true/enable false/' -e '/firebase/d' -e "/android {/a
packagingOptions {pickFirst 'lib/*/*.so'}" build.gradle
- sed -i -e '/<service/,/service>/d' -e '/com.zulipmobile/a <uses-permission
android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"
tools:node="remove" \/>' -e '/com.zulipmobile/a <uses-permission android:name="com.android.vending.CHECK_LICENSE"
tools:node="remove" \/>' src/main/AndroidManifest.xml
- sed -i -e '/firebase/d' -e '/FirebaseInstanceId/,/addOnFailureListener/d'
src/main/java/com/zulipmobile/notifications/NotificationsModule.java
- cd ../..
- yarn install
- sed -i -e '/installreferrer/,+11d' node_modules/react-native-device-info/android/build.gradle
- sed -i -e '/checkCompatibility/,/^ });/d' src/boot/CompatibilityChecker.js
scanignore:
- android/build.gradle
- node_modules/jsc-android
- node_modules/react-native/android
- node_modules/react-native/ReactAndroid/build.gradle
- node_modules/react-native-device-info/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-vector-icons/android/build.gradle
- node_modules/react-native-webview/android/build.gradle
- node_modules/expo/android/build.gradle
- node_modules/expo-application/android/build.gradle
- node_modules/expo-constants/android/build.gradle
- node_modules/expo-error-recovery/android/build.gradle
- node_modules/expo-file-system/android/build.gradle
- node_modules/expo-font/android/build.gradle
- node_modules/expo-keep-awake/android/build.gradle
- node_modules/expo-modules-core/android/build.gradle
- node_modules/expo-screen-orientation/android/build.gradle
- node_modules/expo-sqlite/android/build.gradle
- node_modules/expo-web-browser/android/build.gradle
- node_modules/@react-native-async-storage/async-storage/android/build.gradle
- node_modules/@react-native-community/masked-view/android/build.gradle
- node_modules/@react-native-community/netinfo/android/build.gradle
- node_modules/@react-native-community/push-notification-ios/android/build.gradle
scandelete:
- node_modules
build:
- pushd $$react-native-reanimated$$
- yarn add react-native@0.67.4
- gradle :assembleRelease
- popd
- mv $$react-native-reanimated$$/build/outputs/aar/android-release.aar ../../node_modules/react-native-reanimated/android/react-native-reanimated-67-jsc.aar
ndk: r23c
- versionName: '27.194'
versionCode: 194
disable: reanimated build failed
commit: 26111e8f434df737d60bd7612e770cd058aa08e2
subdir: android/app
sudo:
@ -347,7 +281,7 @@ Builds:
- mv $$react-native-reanimated$$/build/outputs/aar/android-release.aar ../../node_modules/react-native-reanimated/android/react-native-reanimated-67-jsc.aar
ndk: r23c
AutoUpdateMode: Version
AutoUpdateMode: None
UpdateCheckMode: Tags
CurrentVersion: '27.194'
CurrentVersionCode: 194