docs: update some documentation according to latest learnings
This commit is contained in:
@@ -361,6 +361,9 @@ npm install
|
||||
# Build Vue 3 app
|
||||
npm run build
|
||||
|
||||
# Add Capacitor
|
||||
npm install @capacitor/android
|
||||
|
||||
# Sync with Capacitor
|
||||
npx cap sync android
|
||||
|
||||
|
||||
5
package-lock.json
generated
5
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@timesafari/daily-notification-plugin",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.11",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@timesafari/daily-notification-plugin",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.11",
|
||||
"license": "MIT",
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -607,7 +607,6 @@
|
||||
"resolved": "https://registry.npmjs.org/@capacitor/android/-/android-6.2.1.tgz",
|
||||
"integrity": "sha512-8gd4CIiQO5LAIlPIfd5mCuodBRxMMdZZEdj8qG8m+dQ1sQ2xyemVpzHmRK8qSCHorsBUCg3D62j2cp6bEBAkdw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"@capacitor/core": "^6.2.0"
|
||||
}
|
||||
|
||||
@@ -43,22 +43,42 @@ dependencies {
|
||||
|
||||
### Build Commands
|
||||
|
||||
Note that these require Java > 22.12
|
||||
|
||||
This set is for the most basic Android app:
|
||||
|
||||
```bash
|
||||
cd test-apps/android-test-app
|
||||
cd android-test-app
|
||||
|
||||
# Build debug APK (builds plugin automatically)
|
||||
./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
|
||||
./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
|
||||
|
||||
- ✅ Gradle wrapper present (`gradlew`, `gradlew.bat`, `gradle/wrapper/`)
|
||||
|
||||
Reference in New Issue
Block a user