Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(mobile): address requested changes
Elian Doran706a75b86746
diff --git a/apps/mobile/README.md b/apps/mobile/README.mdindex 46697de679..20b3808ab9 100644--- a/apps/mobile/README.md+++ b/apps/mobile/README.md@@ -27,9 +27,3 @@ pnpm --filter @triliumnext/mobile run:android # launch on emulator/device# orpnpm --filter @triliumnext/mobile open:android # open Android Studio```--## Known caveats (first milestone)--- **iOS is not wired up yet.** Android only.-- **Persistence is in-memory.** SharedArrayBuffer / OPFS requires `Cross-Origin-Opener-Policy` + `Cross-Origin-Embedder-Policy` headers, which Capacitor's Android server does not set by default. The SQLite-WASM provider falls back to in-memory, so data is lost when the app process is killed. Fixing this is a follow-up.-- **Service worker dependency.** The standalone intercepts `/api/*`, `/bootstrap`, `/sync/*`, `/search/*` via a service worker. Android WebView supports SWs on `https://localhost`; if this ever breaks, the fallback is to patch the frontend's request layer to route through `local-bridge` directly on the main thread.diff --git a/apps/mobile/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java b/apps/mobile/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.javadeleted file mode 100644index f2c2217efa..0000000000--- a/apps/mobile/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java+++ /dev/null@@ -1,26 +0,0 @@-package com.getcapacitor.myapp;--import static org.junit.Assert.*;--import android.content.Context;-import androidx.test.ext.junit.runners.AndroidJUnit4;-import androidx.test.platform.app.InstrumentationRegistry;-import org.junit.Test;-import org.junit.runner.RunWith;--/**- * Instrumented test, which will execute on an Android device.- *- * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>- */-@RunWith(AndroidJUnit4.class)-public class ExampleInstrumentedTest {-- @Test- public void useAppContext() throws Exception {- // Context of the app under test.- Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();-- assertEquals("com.getcapacitor.app", appContext.getPackageName());- }-}diff --git a/apps/mobile/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java b/apps/mobile/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.javadeleted file mode 100644index 0297327842..0000000000--- a/apps/mobile/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java+++ /dev/null@@ -1,18 +0,0 @@-package com.getcapacitor.myapp;--import static org.junit.Assert.*;--import org.junit.Test;--/**- * Example local unit test, which will execute on the development machine (host).- *- * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>- */-public class ExampleUnitTest {-- @Test- public void addition_isCorrect() throws Exception {- assertEquals(4, 2 + 2);- }-}diff --git a/apps/mobile/package.json b/apps/mobile/package.jsonindex b492ec88f5..79681ad71d 100644--- a/apps/mobile/package.json+++ b/apps/mobile/package.json@@ -12,11 +12,11 @@"run:android": "cap run android"},"dependencies": {- "@capacitor/android": "latest",- "@capacitor/core": "latest",- "@capacitor/splash-screen": "latest"+ "@capacitor/android": "8.3.1",+ "@capacitor/core": "8.3.1",+ "@capacitor/splash-screen": "8.3.1"},"devDependencies": {- "@capacitor/cli": "latest"+ "@capacitor/cli": "8.3.1"}}