- Add Android project (Capacitor-generated, app ID com.paarrot.app) - Add capacitor.config.json at repo root (webDir: cinny/dist) - Add overlay/ directory with mobile-specific source patches: - tauri.ts: Capacitor native detection, LocalNotifications, permission APIs - matrix.ts / useAuthenticatedMediaUrl.ts: legacy /_matrix/media/ URL support - SystemNotification.tsx: Capacitor permission request flow - ClientNonUIFeatures.tsx: Capacitor notification routing - tsconfig.json: moduleResolution bundler, rootDir set - package-additions.json: @capacitor/* deps to merge at build time - Add scripts/apply-overlay.mjs: applies overlay onto clean cinny submodule before build - Update android:prepare script to run apply-overlay before build + cap sync
28 lines
950 B
JSON
28 lines
950 B
JSON
{
|
|
"name": "paarrot",
|
|
"version": "4.11.66",
|
|
"description": "Paarrot - A Matrix client based on Cinny",
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"scripts": {
|
|
"android:prepare": "node scripts/apply-overlay.mjs && cd cinny && npm install && npm run build && npx cap sync android",
|
|
"android:open": "cd cinny && npx cap open android",
|
|
"android:run": "cd cinny && npx cap run android",
|
|
"android:apk": "npm run android:prepare && cd cinny/android && gradlew.bat assembleDebug",
|
|
"android:apk:release": "npm run android:prepare && cd cinny/android && gradlew.bat assembleRelease",
|
|
"android:aab": "npm run android:prepare && cd cinny/android && gradlew.bat bundleRelease"
|
|
},
|
|
"keywords": [],
|
|
"author": {
|
|
"name": "Mates.Media",
|
|
"email": "mates.media@users.noreply.github.com"
|
|
},
|
|
"license": "AGPL-3.0-only",
|
|
"devDependencies": {
|
|
"node-fetch": "3.3.2",
|
|
"png2icons": "2.0.1",
|
|
"sharp": "0.34.5"
|
|
}
|
|
}
|