Add an Android target alongside the desktop bundles. Users download a signed
universal .apk and sideload it; minSdk 31 blocks Android < 12 at install time.
- tauri.conf.json: bundle.android (minSdkVersion 31, versionCode 10601)
- commit the generated src-tauri/gen/android Gradle project (source only; build
outputs + keystore stay gitignored) with release signing wired from a
gitignored keystore.properties (graceful unsigned fallback when absent)
- self-host fonts via @fontsource (drop Google Fonts <link>, tighten CSP) so the
app renders fully offline
- robust native file open: basenameFromPath() recovers a filename from Android
content:// URIs; the native-open path filters extensions leniently so opaque
MediaStore URIs the dialog already vetted are not wrongly rejected
- npm scripts tauri:android:{init,dev,build}; android job in release.yml signs
from secrets and uploads the APK to the same draft release
- docs: README/README.vi Android sections, TAURI-NOTES maintainer notes (incl.
the WebView Chromium >= 111 requirement), ROADMAP phase 7
Validated on emulators: signed APK installs on Android 12+, blocked on API < 31
(INSTALL_FAILED_OLDER_SDK), launches, renders, runs converters, reads files via
the SAF picker, fully offline. New unit tests for basenameFromPath + lenient
filterByExtension; full gate green (format/typecheck/lint/knip/215 tests).
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
56 lines
830 B
Plaintext
56 lines
830 B
Plaintext
# Logs
|
|
logs
|
|
*.log
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
pnpm-debug.log*
|
|
lerna-debug.log*
|
|
|
|
node_modules
|
|
dist
|
|
dist-ssr
|
|
*.local
|
|
|
|
# Editor directories and files
|
|
.vscode/*
|
|
!.vscode/settings.json
|
|
!.vscode/extensions.json
|
|
.idea
|
|
.DS_Store
|
|
*.suo
|
|
*.ntvs*
|
|
*.njsproj
|
|
*.sln
|
|
*.sw?
|
|
|
|
# Env
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
!.env.example
|
|
|
|
# Tauri (Phase 2C)
|
|
src-tauri/target
|
|
# gen/android is committed (source). Build outputs inside it are ignored by its own
|
|
# nested .gitignore files. Only the generated JSON schemas are ignored here.
|
|
src-tauri/gen/schemas
|
|
src-tauri/icons/*.png
|
|
src-tauri/icons/*.ico
|
|
src-tauri/icons/*.icns
|
|
src-tauri/icons/android/
|
|
src-tauri/icons/ios/
|
|
|
|
# Android signing keystore — never commit the keystore binary.
|
|
*.jks
|
|
*.keystore
|
|
|
|
# Test artifacts
|
|
coverage
|
|
.nyc_output
|
|
|
|
# TypeScript build info
|
|
*.tsbuildinfo
|
|
|
|
.claude/
|