Files
integraci-dagger-modules/mobile-flutter/README.md
T

27 lines
1.2 KiB
Markdown

# IntegraCI — Mobile Flutter Dagger Module
Build, test, sign and publish Flutter apps.
Separate from `mobile-android` on purpose: Flutter owns its own Gradle
invocation, puts artefacts under `build/app/outputs/flutter-apk/`, and tests
with the Dart runner. A Flutter repo handed the native Android module is given a
Gradle project it does not have at its root.
## Usage
```bash
dagger call build --source . --flutter-version 3.24.5 export --path ./mobile-out
dagger call test --source .
dagger call sign --artifact ./mobile-out/app.aab --keystore file:ks.jks \
--keystore-password env:KS --key-alias upload --key-password env:KP \
export --path ./mobile-out/signed-app.aab
dagger call publish-raw --artifact ./mobile-out/signed-app.aab \
--url http://nexus:8081 --repository mobile-artifacts \
--path acme/app/1.0.0/app.aab --username ci --password env:PW
```
`--flutter-version` is a property of the REPO. One application onboarded through
this platform is pinned to `sdk: ">=2.15.1 <3.0.0"` and cannot build on a modern
stable channel at all; pinning here is what lets that be stated rather than
discovered.