A ready-to-use CI/CD Pipeline for your Android projects.
Run the following command:
fluentci run android_pipeline
Or, if you want to use it as a template:
fluentci init -t android
This will create a .fluentci
folder in your project.
Now you can run the pipeline with:
fluentci run .
Use as a Dagger module:
dagger install github.com/fluent-ci-templates/android-pipeline@main
Call a function from the module:
dagger call assemble-release --src .
dagger call bundle-release --src .
Job | Description |
---|---|
lintDebug | Lint your code |
assembleDebug | generate apk (debug) |
debugTests | Run your tests |
assembleRelease | generate apk (release) |
bundleRelease | generate aab (release) |
lintDebug(
src?: string | Directory
): Promise<string>
assembleDebug(
src?: string | Directory
): Promise<File | string>
assembleRelease(
src?: string | Directory
): Promise<File | string>
bundleRelease(
src?: string | Directory
): Promise<File | string>
debugTests(
src?: string | Directory
): Promise<string>
You can also use this pipeline programmatically:
import { lintDebug, assembleDebug, debugTests } from "jsr:@fluentci/android";
await lintDebug();
await debugTests();
await assembleDebug();
See example for a working example.