ci(android): use explicit flavor debug tasks
This commit is contained in:
parent
f09f98532c
commit
0c2e6fe97f
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -972,10 +972,14 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- task: test
|
- task: test-play
|
||||||
command: ./gradlew --no-daemon :app:testDebugUnitTest
|
command: ./gradlew --no-daemon :app:testPlayDebugUnitTest
|
||||||
- task: build
|
- task: test-third-party
|
||||||
command: ./gradlew --no-daemon :app:assembleDebug
|
command: ./gradlew --no-daemon :app:testThirdPartyDebugUnitTest
|
||||||
|
- task: build-play
|
||||||
|
command: ./gradlew --no-daemon :app:assemblePlayDebug
|
||||||
|
- task: build-third-party
|
||||||
|
command: ./gradlew --no-daemon :app:assembleThirdPartyDebug
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|||||||
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
@ -116,7 +116,7 @@ jobs:
|
|||||||
- name: Build Android for CodeQL
|
- name: Build Android for CodeQL
|
||||||
if: matrix.language == 'java-kotlin'
|
if: matrix.language == 'java-kotlin'
|
||||||
working-directory: apps/android
|
working-directory: apps/android
|
||||||
run: ./gradlew --no-daemon :app:assembleDebug
|
run: ./gradlew --no-daemon :app:assemblePlayDebug
|
||||||
|
|
||||||
- name: Build Swift for CodeQL
|
- name: Build Swift for CodeQL
|
||||||
if: matrix.language == 'swift'
|
if: matrix.language == 'swift'
|
||||||
|
|||||||
@ -27,13 +27,22 @@ Status: **extremely alpha**. The app is actively being rebuilt from the ground u
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd apps/android
|
cd apps/android
|
||||||
./gradlew :app:assembleDebug
|
./gradlew :app:assemblePlayDebug
|
||||||
./gradlew :app:installDebug
|
./gradlew :app:installPlayDebug
|
||||||
./gradlew :app:testDebugUnitTest
|
./gradlew :app:testPlayDebugUnitTest
|
||||||
cd ../..
|
cd ../..
|
||||||
bun run android:bundle:release
|
bun run android:bundle:release
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Third-party debug flavor:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd apps/android
|
||||||
|
./gradlew :app:assembleThirdPartyDebug
|
||||||
|
./gradlew :app:installThirdPartyDebug
|
||||||
|
./gradlew :app:testThirdPartyDebugUnitTest
|
||||||
|
```
|
||||||
|
|
||||||
`bun run android:bundle:release` auto-bumps Android `versionName`/`versionCode` in `apps/android/app/build.gradle.kts`, then builds two signed release bundles:
|
`bun run android:bundle:release` auto-bumps Android `versionName`/`versionCode` in `apps/android/app/build.gradle.kts`, then builds two signed release bundles:
|
||||||
|
|
||||||
- Play build: `apps/android/build/release-bundles/openclaw-<version>-play-release.aab`
|
- Play build: `apps/android/build/release-bundles/openclaw-<version>-play-release.aab`
|
||||||
|
|||||||
@ -9,7 +9,7 @@ title: "Android App"
|
|||||||
|
|
||||||
# Android App (Node)
|
# Android App (Node)
|
||||||
|
|
||||||
> **Note:** The Android app has not been publicly released yet. The source code is available in the [OpenClaw repository](https://github.com/openclaw/openclaw) under `apps/android`. You can build it yourself using Java 17 and the Android SDK (`./gradlew :app:assembleDebug`). See [apps/android/README.md](https://github.com/openclaw/openclaw/blob/main/apps/android/README.md) for build instructions.
|
> **Note:** The Android app has not been publicly released yet. The source code is available in the [OpenClaw repository](https://github.com/openclaw/openclaw) under `apps/android`. You can build it yourself using Java 17 and the Android SDK (`./gradlew :app:assemblePlayDebug`). See [apps/android/README.md](https://github.com/openclaw/openclaw/blob/main/apps/android/README.md) for build instructions.
|
||||||
|
|
||||||
## Support snapshot
|
## Support snapshot
|
||||||
|
|
||||||
|
|||||||
12
package.json
12
package.json
@ -528,15 +528,19 @@
|
|||||||
"./cli-entry": "./openclaw.mjs"
|
"./cli-entry": "./openclaw.mjs"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"android:assemble": "cd apps/android && ./gradlew :app:assembleDebug",
|
"android:assemble": "cd apps/android && ./gradlew :app:assemblePlayDebug",
|
||||||
|
"android:assemble:third-party": "cd apps/android && ./gradlew :app:assembleThirdPartyDebug",
|
||||||
"android:bundle:release": "bun apps/android/scripts/build-release-aab.ts",
|
"android:bundle:release": "bun apps/android/scripts/build-release-aab.ts",
|
||||||
"android:format": "cd apps/android && ./gradlew :app:ktlintFormat :benchmark:ktlintFormat",
|
"android:format": "cd apps/android && ./gradlew :app:ktlintFormat :benchmark:ktlintFormat",
|
||||||
"android:install": "cd apps/android && ./gradlew :app:installDebug",
|
"android:install": "cd apps/android && ./gradlew :app:installPlayDebug",
|
||||||
|
"android:install:third-party": "cd apps/android && ./gradlew :app:installThirdPartyDebug",
|
||||||
"android:lint": "cd apps/android && ./gradlew :app:ktlintCheck :benchmark:ktlintCheck",
|
"android:lint": "cd apps/android && ./gradlew :app:ktlintCheck :benchmark:ktlintCheck",
|
||||||
"android:lint:android": "cd apps/android && ./gradlew :app:lintDebug",
|
"android:lint:android": "cd apps/android && ./gradlew :app:lintDebug",
|
||||||
"android:run": "cd apps/android && ./gradlew :app:installDebug && adb shell am start -n ai.openclaw.app/.MainActivity",
|
"android:run": "cd apps/android && ./gradlew :app:installPlayDebug && adb shell am start -n ai.openclaw.app/.MainActivity",
|
||||||
"android:test": "cd apps/android && ./gradlew :app:testDebugUnitTest",
|
"android:run:third-party": "cd apps/android && ./gradlew :app:installThirdPartyDebug && adb shell am start -n ai.openclaw.app/.MainActivity",
|
||||||
|
"android:test": "cd apps/android && ./gradlew :app:testPlayDebugUnitTest",
|
||||||
"android:test:integration": "OPENCLAW_LIVE_TEST=1 OPENCLAW_LIVE_ANDROID_NODE=1 vitest run --config vitest.live.config.ts src/gateway/android-node.capabilities.live.test.ts",
|
"android:test:integration": "OPENCLAW_LIVE_TEST=1 OPENCLAW_LIVE_ANDROID_NODE=1 vitest run --config vitest.live.config.ts src/gateway/android-node.capabilities.live.test.ts",
|
||||||
|
"android:test:third-party": "cd apps/android && ./gradlew :app:testThirdPartyDebugUnitTest",
|
||||||
"build": "pnpm canvas:a2ui:bundle && node scripts/tsdown-build.mjs && node scripts/runtime-postbuild.mjs && pnpm build:plugin-sdk:dts && node --import tsx scripts/write-plugin-sdk-entry-dts.ts && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/copy-export-html-templates.ts && node --import tsx scripts/write-build-info.ts && node --import tsx scripts/write-cli-startup-metadata.ts && node --import tsx scripts/write-cli-compat.ts",
|
"build": "pnpm canvas:a2ui:bundle && node scripts/tsdown-build.mjs && node scripts/runtime-postbuild.mjs && pnpm build:plugin-sdk:dts && node --import tsx scripts/write-plugin-sdk-entry-dts.ts && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/copy-export-html-templates.ts && node --import tsx scripts/write-build-info.ts && node --import tsx scripts/write-cli-startup-metadata.ts && node --import tsx scripts/write-cli-compat.ts",
|
||||||
"build:docker": "node scripts/tsdown-build.mjs && node scripts/runtime-postbuild.mjs && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/copy-export-html-templates.ts && node --import tsx scripts/write-build-info.ts && node --import tsx scripts/write-cli-startup-metadata.ts && node --import tsx scripts/write-cli-compat.ts",
|
"build:docker": "node scripts/tsdown-build.mjs && node scripts/runtime-postbuild.mjs && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/copy-export-html-templates.ts && node --import tsx scripts/write-build-info.ts && node --import tsx scripts/write-cli-startup-metadata.ts && node --import tsx scripts/write-cli-compat.ts",
|
||||||
"build:plugin-sdk:dts": "tsc -p tsconfig.plugin-sdk.dts.json",
|
"build:plugin-sdk:dts": "tsc -p tsconfig.plugin-sdk.dts.json",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user