diff --git a/metadata/com.mattermost.rnbeta.yml b/metadata/com.mattermost.rnbeta.yml index 3850933dab..eecf6e5934 100644 --- a/metadata/com.mattermost.rnbeta.yml +++ b/metadata/com.mattermost.rnbeta.yml @@ -306,117 +306,96 @@ Builds: scandelete: - node_modules - - versionName: 1.31.2 - versionCode: 296 - disable: vending, sentry - commit: v1.31.2 - subdir: android/app/ + - versionName: 1.55.0 + versionCode: 418 + commit: cbee2449e25b0ef75c349d2bfd7d759d205ee61c + 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 + - sysctl fs.inotify.max_user_watches=524288 || true + - curl -Lo node.tar.xz https://nodejs.org/dist/v16.16.0/node-v16.16.0-linux-x64.tar.xz + - echo "edcb6e9bb049ae365611aa209fc03c4bfc7e0295dbcc5b2f1e710ac70384a8ec node.tar.xz" + | sha256sum -c - + - tar xJf node.tar.xz --strip-components=1 -C /usr/local/ + - npm -g install yarn + - npm -g install npm@7 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 - - rm ../../patches/react-native-youtube+2.0.0.patch - - make -C ../.. pre-run + - cd ../.. + - sed -i -e '/react-native-youtube/d' -e 's|git://github.com/||' package.json + - sed -i -e "/fs.existsSync('dist')/,+2d" scripts/generate-assets.js + - mkdir -p dist/assets + - sed -i -e '/mmjstool":\ {/,/^ },/d' package-lock.json + - npm install --ignore-scripts gradle: - yes + srclibs: + - react-native-reanimated@2.3.1 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/ + - ios + - patches/react-native-youtube* + - app/components/post_list/post/body/content/youtube/ + - node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/fcm/FcmInstanceIdListenerService.java 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 + - sed -i -e '/gms/d' ../build.gradle build.gradle + - sed -i -e 's|$rootDir.*Detox-android|https://jitpack.io|' ../build.gradle + - sed -i -e '/bundleCommand/a nodeExecutableAndArgs:["node","--max-old-space-size=12000"],' + -e '/firebase/d' -e '/detox/d' -e '/enableSeparateBuildPerCPUArchitecture/d' 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 + - cd ../.. + - npx patch-package --error-on-fail + - sed -i -e '/if (isYoutubeLink/,/^\s\{8\}}/d' -e '/YouTube/d' app/components/post_list/post/body/content/index.tsx + - sed -i -e '/dependencies {/a implementation "ch.threema:webrtc-android:100.0.0"' + node_modules/react-native-webrtc/android/build.gradle + - sed -i -e '/bintray/d' node_modules/@rudderstack/rudder-sdk-react-native/android/build.gradle + - sed -E -i '/installreferrer/,+11d' node_modules/react-native-device-info/android/build.gradle + - sed -i -e 's|maven.fabric.io/public|jitpack.io|' node_modules/react-native-math-view/android/build.gradle + - cd node_modules/react-native-notifications/lib/android/app + - sed -i -e '/firebase-messaging/d' build.gradle + - sed -i -e '/google-services/d' ../build.gradle + - sed -i -e '/FcmInstanceIdListenerService/,/