Skip to main content

Android

🚀 Usage​

Add the following command to your CI configuration file:

fluentci run --wasm android debug_tests
fluentci run --wasm android assemble_release

Commands​

NameDescription
setupInstall the Android SDK and other dependencies
debug_testsRun tests for the project in debug mode
lint_debugLint the project in debug mode
assemble_debugCompile and assemble the project into an APK file in debug mode
assemble_releaseCompile and assemble the project into an APK file
bundle_releaseCompile and bundle the project into an AAB file

Code examples​

Add fluentci-pdk crate to your Cargo.toml:

[dependencies]
fluentci-pdk = "0.2.1"

Use the following code to call a module function:

use fluentci_pdk::dag;

// ...

dag().call(
"https://pkg.fluentci.io/[email protected]?wasm=1",
"debug_tests",
vec![],
);
dag().call(
"https://pkg.fluentci.io/[email protected]?wasm=1",
"assemble_release",
vec![],
);

CI/CD pipeline integrations​

The following examples show how to integrate FluentCI with popular CI providers to build and test Android projects:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: test
run: fluentci run --wasm android debug_tests
- name: build
run: fluentci run --wasm android assemble_release