From 66e0940968d923379455013ac878d0de9acee8a7 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Mon, 16 Mar 2020 14:22:39 +0100 Subject: [PATCH] Mattermost Beta: try to build 1.28.0 --- metadata/com.mattermost.rnbeta.yml | 54 ++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/metadata/com.mattermost.rnbeta.yml b/metadata/com.mattermost.rnbeta.yml index 95d9ddd3bc..ee21e65af7 100644 --- a/metadata/com.mattermost.rnbeta.yml +++ b/metadata/com.mattermost.rnbeta.yml @@ -305,6 +305,60 @@ Builds: scandelete: - node_modules + - versionName: 1.28.0 + versionCode: 268 + commit: v1.28.0 + subdir: android/app/ + sudo: + - sysctl fs.inotify.max_user_watches=524288 + - sysctl -p + - apt-get update || apt-get update + - apt-get install -y --no-install-recommends -t stretch-backports npm + - npm -g install npm@6.4.1 + init: + - sed -i -e '/react-native-youtube/d' ../../package.json build.gradle ../settings.gradle + ../../app/components/post_body_additional_content/post_body_additional_content.js + - make -C ../.. pre-run + gradle: + - yes + rm: + - node_modules/react-native-notifications/android/app/src/main/java/com/wix/reactnativenotifications/gcm/ + - node_modules/xdate/build/compiler.jar + - node_modules/socketcluster/ + - node_modules/shaka-player/third_party/closure/compiler.jar + - node_modules/.bin/socketcluster + - node_modules/react-native/template/ + - node_modules/jetifier/lib/ + prebuild: + - "sed -i -e '/play-services-gcm/,+2d' -e 's/bundleCommand: \"ram-bundle\",/bundleCommand:\ + \ \"ram-bundle\", nodeExecutableAndArgs: [\"node\", \"--max-old-space-size=12000\"\ + ],/' build.gradle" + - sed -i -e '/YouTubeStandaloneModule/d' src/main/java/com/mattermost/rnbeta/MainApplication.java + - sed -i -e '/com.google.android.gms.iid.InstanceID.getInstance/d' ../../node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java + - sed -i -e '/play-services/d' ../../node_modules/react-native-device-info/android/build.gradle + - sed -i -e '/firebase/d' ../../node_modules/react-native-notifications/android/app/build.gradle + build.gradle + - sed -i -e '/hasPermission/d' -e '/tokenFetchIntent/d' -e '/FcmInstance/d' + -e '/FirebaseApp/'d ../../node_modules/react-native-notifications/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsModule.java + ../../node_modules/react-native-notifications/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java + - sed -i -e '/maven {/,+2d' ../../node_modules/react-native-document-picker/android/build.gradle + - truncate -s 0 ../../node_modules/react-native/node_modules/@react-native-community/cli/build/commands/server/external/xsel + scanignore: + - android/build.gradle + - node_modules/react-native-svg/android/build.gradle + - node_modules/react-native-image-picker/android/build.gradle + - node_modules/react-native-webview/android/build.gradle + - node_modules/react-native-permissions/android/build.gradle + - node_modules/react-native-keychain/android/build.gradle + - node_modules/react-native-screens/android/build.gradle + - node_modules/react-native-device-info/android/build.gradle + - node_modules/@react-native-community/async-storage/android/build.gradle + - node_modules/@react-native-community/netinfo/android/build.gradle + - node_modules/react-native-notifications/android/build.gradle + - node_modules/react-native-navigation/lib/android/build.gradle + scandelete: + - node_modules + MaintainerNotes: |- sed is used to: * Remove push notifications (see [https://github.com/wix/react-native-notifications/issues/207 this issue])