Skip to content

fluent-ci-templates/android-pipeline

Repository files navigation

Android Pipeline

fluentci pipeline deno module deno compatibility dagger-min-version ci

A ready-to-use CI/CD Pipeline for your Android projects.

🚀 Usage

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 .

🧩 Dagger Module

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 .

✨ Jobs

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>

👨‍💻 Programmatic usage

You can also use this pipeline programmatically:

import { lintDebug, assembleDebug, debugTests } from "jsr:@fluentci/android";

await lintDebug();
await debugTests();
await assembleDebug();

📚 Example

See example for a working example.