Recently Written · git

scan-subread

PDF reader that follows an audiobook with the SubRead suite

git clone https://github.com/equwal/scan-subread

Log | Files | Refs


commit cd2f49e0fc921fd201cc5e383f03fe88bb184fbe
truex <truex@equwal.com>
2026-09-26 14:38:17 -0700

Add the Capacitor App plugin

@capacitor/app 8.1.1 goes with @capacitor/core 8.5.2. It gives the
Android back button, the app state (active or not active) and the
minimize of the app, so the reader needs no native code of its own for
them. The next change of main.ts uses it.

cap sync adds the module :capacitor-app to capacitor.settings.gradle
and to app/capacitor.build.gradle, with the relative node_modules path.

 android/app/capacitor.build.gradle |  2 +-
 android/capacitor.settings.gradle  |  3 +++
 package-lock.json                  | 10 ++++++++++
 package.json                       |  1 +
 4 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/android/app/capacitor.build.gradle b/android/app/capacitor.build.gradle
index bbfb44f..1005ebc 100644
--- a/android/app/capacitor.build.gradle
+++ b/android/app/capacitor.build.gradle
@@ -9,7 +9,7 @@ android {
 
 apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
 dependencies {
-
+    implementation project(':capacitor-app')
 
 }
 
diff --git a/android/capacitor.settings.gradle b/android/capacitor.settings.gradle
index 9a5fa87..2085c86 100644
--- a/android/capacitor.settings.gradle
+++ b/android/capacitor.settings.gradle
@@ -1,3 +1,6 @@
 // DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
 include ':capacitor-android'
 project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
+
+include ':capacitor-app'
+project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android')
diff --git a/package-lock.json b/package-lock.json
index 71577dd..d5c53cf 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,6 +9,7 @@
       "version": "0.1.0",
       "dependencies": {
         "@capacitor/android": "^8.5.2",
+        "@capacitor/app": "^8.1.1",
         "@capacitor/core": "^8.5.2",
         "fast-diff": "^1.3.0",
         "idb": "^8.0.3",
@@ -40,6 +41,15 @@
         "@capacitor/core": "^8.5.0"
       }
     },
+    "node_modules/@capacitor/app": {
+      "version": "8.1.1",
+      "resolved": "https://registry.npmjs.org/@capacitor/app/-/app-8.1.1.tgz",
+      "integrity": "sha512-xM2ZTX5jK60tFtmjsmJv+Cdj1Qsb6NcavkqmdEnCPQBeya9oKhamZJxYOnQNj1ZvcJM7sWfG6BEtSLx42pisbA==",
+      "license": "MIT",
+      "peerDependencies": {
+        "@capacitor/core": ">=8.0.0"
+      }
+    },
     "node_modules/@capacitor/cli": {
       "version": "8.5.2",
       "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-8.5.2.tgz",
diff --git a/package.json b/package.json
index 4525023..c14651a 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,7 @@
   },
   "dependencies": {
     "@capacitor/android": "^8.5.2",
+    "@capacitor/app": "^8.1.1",
     "@capacitor/core": "^8.5.2",
     "fast-diff": "^1.3.0",
     "idb": "^8.0.3",