mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-07-07 03:06:29 +00:00
feat(com.standardnotes): reenable new versions
This commit is contained in:
parent
8dbf581aae
commit
288a8511a1
2 changed files with 95 additions and 11 deletions
|
|
@ -1,7 +1,7 @@
|
|||
Categories:
|
||||
- Security
|
||||
- Writing
|
||||
License: AGPL-3.0-or-later
|
||||
License: AGPL-3.0-only
|
||||
AuthorName: Standard Notes Ltd.
|
||||
AuthorEmail: help@standardnotes.com
|
||||
WebSite: https://standardnotes.com
|
||||
|
|
@ -11,8 +11,6 @@ Donate: https://standardnotes.com/donate
|
|||
|
||||
AutoName: Standard Notes
|
||||
Description: |-
|
||||
<b>NOTE:</b> Version 3.167.25 is the last one to be free or open-source.
|
||||
|
||||
Standard Notes is a secure and private notes app. It syncs your notes securely across all your devices, including your Android devices, Windows, iOS, Linux, and Web.
|
||||
|
||||
Private means your notes are end-to-end encrypted, so only you can read your notes. Even we can't read the contents of your notes.
|
||||
|
|
@ -13011,12 +13009,59 @@ Builds:
|
|||
- .yarn/
|
||||
ndk: r23b
|
||||
|
||||
AutoUpdateMode: None
|
||||
UpdateCheckMode: None
|
||||
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.172.4
|
||||
CurrentVersionCode: 3001138
|
||||
- versionName: 3.178.0
|
||||
versionCode: 3002782
|
||||
commit: '@standardnotes/mobile@3.178.0'
|
||||
subdir: packages/mobile/android/app
|
||||
sudo:
|
||||
- apt-get update
|
||||
- apt-get install -y libsecret-1-dev build-essential
|
||||
- curl -Lo node.tar.gz https://nodejs.org/download/release/v18.6.0/node-v18.6.0-linux-x64.tar.gz
|
||||
- echo "eff59cd54fdcd24dc09965b41dc8d347ab4ce367b6c395fd983cfb4c3a542e03 node.tar.gz"
|
||||
| sha256sum -c -
|
||||
- tar xzf node.tar.gz --strip-components=1 -C /usr/local/
|
||||
- npm install -g yarn
|
||||
- sysctl fs.inotify.max_user_watches=524288 || true
|
||||
init:
|
||||
- cd ../../../..
|
||||
- yarn config set -H enableImmutableInstalls false
|
||||
- sed -i -e '/react-native-iap/d' -e '/react-native-store-review/d' packages/mobile/package.json
|
||||
- npm_config_build_from_source=true yarn
|
||||
patch:
|
||||
- remove-IAP.3.146.2.patch
|
||||
- disable-gms-u2f-support-3.160.17.patch
|
||||
- remove-react-native-store-review.3.177.5.patch
|
||||
gradle:
|
||||
- prod
|
||||
rm:
|
||||
- packages/mobile/ios
|
||||
prebuild:
|
||||
- sed -i -e '/detox/Id' -e 's/versionName appVersionName/versionName "$$VERSION$$"/'
|
||||
-e 's/versionCode appVersionCode/versionCode $$VERCODE$$/' -e '/universalApk/s/false/true/'
|
||||
build.gradle
|
||||
- pushd ../../../..
|
||||
- yarn run build:mobile
|
||||
- popd
|
||||
- pushd ../..
|
||||
- yarn run android:bundle
|
||||
- popd
|
||||
scanignore:
|
||||
- packages/mobile/node_modules/jsc-android
|
||||
- packages/mobile/node_modules/react-native
|
||||
- packages/mobile/node_modules/detox/android/build.gradle
|
||||
- packages/mobile/node_modules/@standardnotes/react-native-utils/android/build.gradle
|
||||
- packages/mobile/node_modules/@react-native-async-storage/async-storage/android/build.gradle
|
||||
scandelete:
|
||||
- node_modules/
|
||||
- packages/mobile/node_modules
|
||||
- packages/desktop
|
||||
- .yarn/
|
||||
ndk: r23b
|
||||
|
||||
NoSourceSince: 3.167.25
|
||||
AutoUpdateMode: Version @standardnotes/mobile@%v
|
||||
UpdateCheckMode: HTTP
|
||||
VercodeOperation:
|
||||
- 3002000 + %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.178.0
|
||||
CurrentVersionCode: 3002782
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
diff --git a/packages/mobile/src/ReviewService.ts b/packages/mobile/src/ReviewService.ts
|
||||
index be2ce67cf..b2e2fb5e5 100644
|
||||
--- a/packages/mobile/src/ReviewService.ts
|
||||
+++ b/packages/mobile/src/ReviewService.ts
|
||||
@@ -1,6 +1,5 @@
|
||||
import { ApplicationEvent } from '@standardnotes/snjs'
|
||||
import { MobileDevice } from 'Lib/MobileDevice'
|
||||
-import * as StoreReview from 'react-native-store-review'
|
||||
|
||||
const RUN_COUNTS_BEFORE_REVIEW = [18, 45, 105]
|
||||
|
||||
@@ -9,26 +8,10 @@ export class ReviewService {
|
||||
this.device.addApplicationEventReceiver(this.onApplicationEvent.bind(this))
|
||||
}
|
||||
async onApplicationEvent(event: ApplicationEvent) {
|
||||
- if (event !== ApplicationEvent.Launched) {
|
||||
- return
|
||||
- }
|
||||
- const runCount = await this.getRunCount()
|
||||
- void this.setRunCount(runCount + 1)
|
||||
- if (RUN_COUNTS_BEFORE_REVIEW.includes(runCount)) {
|
||||
- setTimeout(function () {
|
||||
- try {
|
||||
- StoreReview.requestReview()
|
||||
- } catch (error) {
|
||||
- console.error(error)
|
||||
- }
|
||||
- }, 1000)
|
||||
- }
|
||||
}
|
||||
async getRunCount() {
|
||||
- const value = await this.device.getJsonParsedRawStorageValue('runCount')
|
||||
- return Number(value) || 0
|
||||
+ return 0
|
||||
}
|
||||
async setRunCount(runCount: number) {
|
||||
- return this.device.setRawStorageValue('runCount', runCount.toString())
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue