docs: update some documentation according to latest learnings

This commit is contained in:
2025-11-11 18:51:23 -07:00
parent ed8900275e
commit e16c55ac1d
3 changed files with 32 additions and 10 deletions

View File

@@ -361,6 +361,9 @@ npm install
# Build Vue 3 app # Build Vue 3 app
npm run build npm run build
# Add Capacitor
npm install @capacitor/android
# Sync with Capacitor # Sync with Capacitor
npx cap sync android npx cap sync android

5
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@timesafari/daily-notification-plugin", "name": "@timesafari/daily-notification-plugin",
"version": "1.0.0", "version": "1.0.11",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@timesafari/daily-notification-plugin", "name": "@timesafari/daily-notification-plugin",
"version": "1.0.0", "version": "1.0.11",
"license": "MIT", "license": "MIT",
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
@@ -607,7 +607,6 @@
"resolved": "https://registry.npmjs.org/@capacitor/android/-/android-6.2.1.tgz", "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-6.2.1.tgz",
"integrity": "sha512-8gd4CIiQO5LAIlPIfd5mCuodBRxMMdZZEdj8qG8m+dQ1sQ2xyemVpzHmRK8qSCHorsBUCg3D62j2cp6bEBAkdw==", "integrity": "sha512-8gd4CIiQO5LAIlPIfd5mCuodBRxMMdZZEdj8qG8m+dQ1sQ2xyemVpzHmRK8qSCHorsBUCg3D62j2cp6bEBAkdw==",
"dev": true, "dev": true,
"license": "MIT",
"peerDependencies": { "peerDependencies": {
"@capacitor/core": "^6.2.0" "@capacitor/core": "^6.2.0"
} }

View File

@@ -43,22 +43,42 @@ dependencies {
### Build Commands ### Build Commands
Note that these require Java > 22.12
This set is for the most basic Android app:
```bash ```bash
cd test-apps/android-test-app cd android-test-app
# Build debug APK (builds plugin automatically) # Build debug APK (builds plugin automatically)
./gradlew assembleDebug ./gradlew assembleDebug
# Get the full list of available AVDs
avdmanager list avd
# Run one
emulator -avd AVD_NAME
# Check that one is running
adb devices
# Now install on the emulator
adb install -r ./app/build/outputs/apk/debug/app-debug.apk
# Now start the app
adb shell am start -n com.timesafari.dailynotification/.MainActivity
# Build release APK # Build release APK
./gradlew assembleRelease ./gradlew assembleRelease
# Clean build
./gradlew clean
# List tasks
./gradlew tasks
``` ```
This set is for the Vue app (closer to Time Safari):
- `cd daily-notification-test`
- install on Vue app, build
### Prerequisites ### Prerequisites
- ✅ Gradle wrapper present (`gradlew`, `gradlew.bat`, `gradle/wrapper/`) - ✅ Gradle wrapper present (`gradlew`, `gradlew.bat`, `gradle/wrapper/`)