From eb8f3e2660cc18b3165915562d0a1e0b9aec0c88 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Fri, 9 Feb 2024 00:53:51 +0800 Subject: [PATCH] try: use `ren.onetwo.mobile` instead of `fun.tidgi.mobile` --- .github/workflows/build-f-droid-apk.yml | 1 + app.json | 4 ++-- src/services/NativeService/index.ts | 2 +- src/services/NativeService/wikiOperations.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-f-droid-apk.yml b/.github/workflows/build-f-droid-apk.yml index b6c07f7..d22f36b 100644 --- a/.github/workflows/build-f-droid-apk.yml +++ b/.github/workflows/build-f-droid-apk.yml @@ -90,6 +90,7 @@ jobs: run: | cd android cat /home/runner/work/TidGi-Mobile/TidGi-Mobile/android/app/src/main/java/fun/tidgi/mobile/MainActivity.kt + ./gradlew clean ./gradlew -v ./gradlew assembleRelease --no-daemon --warning-mode all diff --git a/app.json b/app.json index 79121ab..6f24c22 100644 --- a/app.json +++ b/app.json @@ -25,7 +25,7 @@ "fetch" ] }, - "bundleIdentifier": "fun.tidgi.mobile" + "bundleIdentifier": "fren.onetwo.mobile" }, "android": { "adaptiveIcon": { @@ -35,7 +35,7 @@ "permissions": [ "android.permission.CAMERA" ], - "package": "fun.tidgi.mobile" + "package": "ren.onetwo.mobile" }, "web": { "favicon": "./assets/favicon.png" diff --git a/src/services/NativeService/index.ts b/src/services/NativeService/index.ts index ba4d467..a85fe57 100644 --- a/src/services/NativeService/index.ts +++ b/src/services/NativeService/index.ts @@ -109,7 +109,7 @@ export class NativeService { (error: Error) => { console.log(error); }, - 'fun.tidgi.mobile', // share url protocol (must be unique to your app, suggest using your apple bundle id) + 'ren.onetwo.mobile', // share url protocol (must be unique to your app, suggest using your apple bundle id) ); // Fully unregister Intents, actually it is not clearReceivedFiles // ReceiveSharingIntent.clearReceivedFiles(); diff --git a/src/services/NativeService/wikiOperations.ts b/src/services/NativeService/wikiOperations.ts index 1b9eafe..4da0dc3 100644 --- a/src/services/NativeService/wikiOperations.ts +++ b/src/services/NativeService/wikiOperations.ts @@ -2,7 +2,7 @@ import { ISharedFile } from './types'; /** * We replace the text with filePath before calling this. - * @param files [{"contentUri": "content://com.google.android.apps.photos.contentprovider/0/1/content%3A%2F%2Fmedia%2Fexternal%2Fimages%2Fmedia%2F22483/ORIGINAL/NONE/image%2Fjpeg/1673810121", "fileName": "1694162284670.jpg", "filePath": "/data/user/0/fun.tidgi.mobile/cache/1694162284670.jpg", "mimeType": "image/jpeg", "subject": null, "text": null, "weblink": null}] + * @param files [{"contentUri": "content://com.google.android.apps.photos.contentprovider/0/1/content%3A%2F%2Fmedia%2Fexternal%2Fimages%2Fmedia%2F22483/ORIGINAL/NONE/image%2Fjpeg/1673810121", "fileName": "1694162284670.jpg", "filePath": "/data/user/0/ren.onetwo.mobile/cache/1694162284670.jpg", "mimeType": "image/jpeg", "subject": null, "text": null, "weblink": null}] * @returns */ export const importBinaryTiddlers = (files: ISharedFile[]) => {