diff --git a/metadata/com.standardnotes.yml b/metadata/com.standardnotes.yml index 9656287755..0e30e09f79 100644 --- a/metadata/com.standardnotes.yml +++ b/metadata/com.standardnotes.yml @@ -44,7 +44,7 @@ Description: |- We're proud to be an open-source notes app. Learn more at standardnotes.org. RepoType: git -Repo: https://github.com/standardnotes/mobile +Repo: https://github.com/standardnotes/app Builds: - versionName: 3.0.5 @@ -3660,9 +3660,68 @@ Builds: - popd ndk: r21e -AutoUpdateMode: Version %v + - versionName: 3.26.11 + versionCode: 3000357 + commit: '@standardnotes/mobile@3.26.11' + subdir: packages/mobile/android/app + sudo: + - sysctl fs.inotify.max_user_watches=524288 + - curl -Lo /tmp/node.tar.xz https://nodejs.org/dist/v16.15.1/node-v16.15.1-linux-x64.tar.xz + - echo "b749f7a76e56dfd6dfb8a910b8a2a871159661557680aa95acf13c9514422c12 /tmp/node.tar.xz" + | sha256sum -c - + - tar xJf /tmp/node.tar.xz --strip-components=1 -C /usr/local/ + - npm -g install yarn + - apt-get update + - apt-get install -y openjdk-11-jdk-headless --no-install-recommends + - update-alternatives --auto java + - apt-get install -y libsecret-1-dev build-essential --no-install-recommends + - pushd build/srclib/cpython + - ./configure + - make -j$(nproc) + - make install + - popd + init: + - pushd ../.. + - npm_config_build_from_source=true yarn remove react-native-store-review + - popd + patch: + - disable-splits-abi.patch + - remove-gms.patch + gradle: + - prod + srclibs: + - cpython@v3.10.5 + rm: + - packages/desktop + prebuild: sed -i -e '/detox/Id' -e 's/versionName appVersionName/versionName "$$VERSION$$"/' + -e 's/versionCode appVersionCode/versionCode $$VERCODE$$/' build.gradle + scanignore: + - packages/mobile/android/build.gradle + - packages/mobile/node_modules/hermes-engine + - packages/mobile/node_modules/jsc-android + - packages/mobile/node_modules/react-native + - packages/mobile/node_modules/detox/android/build.gradle + - packages/mobile/node_modules/detox/android/detox/publishing.gradle + - packages/mobile/node_modules/@react-native-community/async-storage/android/build.gradle + - packages/mobile/node_modules/@react-native-community/masked-view/android/build.gradle + - packages/mobile/node_modules/@standardnotes/react-native-utils/android/build.gradle + - packages/mobile/node_modules/@standardnotes/react-native-textview/android/build.gradle + - packages/mobile/node_modules/@standardnotes/react-native-aes/android/build.gradle + scandelete: + - node_modules/ + - packages/web-server + - packages/mobile/node_modules + - packages/components/dist + - .yarn/ + build: + - pushd ../.. + - yarn run android:bundle + - popd + ndk: r21e + +AutoUpdateMode: Version @standardnotes/mobile@%v UpdateCheckMode: HTTP -VercodeOperation: 3000220 + %c -UpdateCheckData: https://github.com/standardnotes/mobile/actions/workflows/build-prod.yml|(\d+)\sworkflow\sruns|https://github.com/standardnotes/mobile/tags/|/releases/tag/([\d.]+) -CurrentVersion: 3.20.3 -CurrentVersionCode: 3000351 +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.26.11 +CurrentVersionCode: 3000357 diff --git a/metadata/com.standardnotes/disable-splits-abi.patch b/metadata/com.standardnotes/disable-splits-abi.patch new file mode 100644 index 0000000000..297e032ae4 --- /dev/null +++ b/metadata/com.standardnotes/disable-splits-abi.patch @@ -0,0 +1,13 @@ +diff --git a/packages/mobile/android/app/build.gradle b/packages/mobile/android/app/build.gradle +index 7ace13d2..822059e4 100644 +--- a/packages/mobile/android/app/build.gradle ++++ b/packages/mobile/android/app/build.gradle +@@ -176,7 +176,7 @@ android { + abi { + reset() + enable enableSeparateBuildPerCPUArchitecture +- universalApk false // If true, also generate a universal APK ++ universalApk true // If true, also generate a universal APK + include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" + } + } diff --git a/metadata/com.standardnotes/remove-gms.patch b/metadata/com.standardnotes/remove-gms.patch new file mode 100644 index 0000000000..6de3b9705f --- /dev/null +++ b/metadata/com.standardnotes/remove-gms.patch @@ -0,0 +1,26 @@ +diff --git a/packages/mobile/src/Lib/ReviewService.ts b/packages/mobile/src/Lib/ReviewService.ts +index 30561c72..e155397f 100644 +--- a/packages/mobile/src/Lib/ReviewService.ts ++++ b/packages/mobile/src/Lib/ReviewService.ts +@@ -1,21 +1,8 @@ + import { ApplicationService, Platform } from '@standardnotes/snjs' +-import * as StoreReview from 'react-native-store-review' + + const RUN_COUNTS_BEFORE_REVIEW = [18, 45, 105] + + export class ReviewService extends ApplicationService { +- override async onAppLaunch() { +- if (this.application?.platform === Platform.Android || !StoreReview.isAvailable) { +- return +- } +- const runCount = await this.getRunCount() +- void this.setRunCount(runCount + 1) +- if (RUN_COUNTS_BEFORE_REVIEW.includes(runCount)) { +- setTimeout(function () { +- StoreReview.requestReview() +- }, 1000) +- } +- } + async getRunCount() { + return Number(this.application?.getValue('runCount')) + }