Update com.drip

This commit is contained in:
jugendhacker 2022-09-10 13:01:31 +00:00 committed by linsui
parent 62b47a938f
commit 534f41db9e

View file

@ -4,7 +4,7 @@ License: GPL-3.0-only
AuthorName: Bloody Health collective
AuthorEmail: drip@mailbox.org
WebSite: https://bloodyhealth.gitlab.io
SourceCode: https://gitlab.com/bloodyhealth/drip/tree/HEAD
SourceCode: https://gitlab.com/bloodyhealth/drip
IssueTracker: https://gitlab.com/bloodyhealth/drip/issues
Translation: https://hosted.weblate.org/projects/drip/app
Changelog: https://gitlab.com/bloodyhealth/drip/blob/HEAD/CHANGELOG.md
@ -69,6 +69,74 @@ Builds:
- popd
- mv $$NodejsMobile$$/out_android/armeabi-v7a/libnode.so ../../node_modules/nodejs-mobile-react-native/android/libnode/bin/armeabi-v7a/libnode.so
- versionName: 1.2102.28
versionCode: 8
commit: Release-1.2102.28
subdir: android/app
sudo:
- sysctl fs.inotify.max_user_watches=524288
- apt-get update || apt-get update
- apt-get install -y g++ gcc-multilib g++-multilib
- curl -Lo node.tar.xz https://nodejs.org/download/release/v10.24.1/node-v10.24.1-linux-x64.tar.xz
- echo "a3b9b97c23bcdc64334be6b02422e9014f040d59dcf604563ffda48003419356 node.tar.xz"
| sha256sum -c -
- tar xJf node.tar.xz --strip-components=1 -C /usr/local/
init:
- sed -i -e '/"detox":."^13.1.1"/d' ../../package.json
- npm install
gradle:
- yes
srclibs:
- realm@v3.6.5
- NodejsMobile@nodejs-mobile-v0.2.1
prebuild:
- sed -i -e '/maven {/,+2d' ../../node_modules/react-native-document-picker/android/build.gradle
- sed -i -e '/com.google.android.gms:play-services-gcm/d' ../../node_modules/react-native-push-notification/android/build.gradle
- rm ../../node_modules/react-native-push-notification/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationRegistrationService.java
- sed -i -e '/RNPushNotificationRegistrationService/d' ../../node_modules/react-native-push-notification/android/src/main/AndroidManifest.xml
- truncate -s 0 ../../node_modules/@react-native-community/cli/build/commands/server/external/xsel
- sed -z -i -E -e 's/maven \{[^}]*detox[^}]*\}//' ../build.gradle
- sed -i -e '/com.wix:detox/d' build.gradle
- rm src/androidTest/java/com/drip/DetoxTest.java
- pushd ../..
- curl -Lo ndk.zip https://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip
- echo "ee5f405f3b57c4f5c3b3b8b5d495ae12b660e03d2112e4ed5c728d349f1e520c ndk.zip"
| sha256sum -c -
- unzip -qq ndk.zip
- rm ndk.zip
- $ANDROID_HOME/tools/bin/sdkmanager "ndk;18.1.5063045" | grep -v "=" || true
- popd
scanignore:
- android/build.gradle
- node_modules/react-native/template/android/build.gradle
- node_modules/react-native/android/com/facebook/react/react-native/*/
- node_modules/react-native/ReactAndroid/src/main/third-party/java/buck-android-support/buck-android-support.jar
- node_modules/react-native-share/android/build.gradle
- android-ndk-r10e
- node_modules/realm/android/build.gradle
scandelete:
- node_modules
build:
- export APP_DIR=$(pwd)
- pushd $$realm$$
- export NDK=$APP_DIR/../../android-ndk-r10e
- export ANDROID_NDK=$NDK
- export ANDROID_NDK_HOME=$NDK
- export PATH=$NDK:$PATH
- cd react-native/android
- gradle publishAndroid
- popd
- cp -r $$realm$$/android/src/main/jniLibs/* ../../node_modules/realm/android/src/main/jniLibs/
- pushd $$NodejsMobile$$
- export NDK=$ANDROID_HOME/ndk/18.1.5063045
- export ANDROID_NDK=$NDK
- export ANDROID_NDK_HOME=$NDK
- export PATH=$NDK:$PATH
- ./tools/android_build.sh $NDK
- popd
- cp -r $$NodejsMobile$$/out_android/* ../../node_modules/nodejs-mobile-react-native/android/libnode/bin/
ndk: r21e
MaintainerNotes: |-
scanignore is used to allow the "node_modules/react-native/android" local Maven repository which contains the prebuilt react-native library which we get from npm.
sed is used to remove some custom maven repos from dependencies because they bother the fdroid build