{"id":27610636,"url":"https://github.com/callstackincubator/android","last_synced_at":"2026-01-24T03:14:05.381Z","repository":{"id":282925243,"uuid":"950117992","full_name":"callstackincubator/android","owner":"callstackincubator","description":"GitHub Action for remote build cache for Android with Rock","archived":false,"fork":false,"pushed_at":"2026-01-20T08:19:54.000Z","size":58,"stargazers_count":4,"open_issues_count":4,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-20T18:08:47.181Z","etag":null,"topics":["react-native"],"latest_commit_sha":null,"homepage":"https://rockjs.dev","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/callstackincubator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-17T16:54:12.000Z","updated_at":"2026-01-20T08:19:58.000Z","dependencies_parsed_at":"2025-07-10T17:33:47.108Z","dependency_job_id":"31755739-2556-4d3f-a5cc-f051cdcd4e2f","html_url":"https://github.com/callstackincubator/android","commit_stats":null,"previous_names":["callstackincubator/android"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/callstackincubator/android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callstackincubator%2Fandroid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callstackincubator%2Fandroid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callstackincubator%2Fandroid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callstackincubator%2Fandroid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/callstackincubator","download_url":"https://codeload.github.com/callstackincubator/android/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callstackincubator%2Fandroid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28709657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T23:51:44.727Z","status":"online","status_checked_at":"2026-01-24T02:00:06.909Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react-native"],"created_at":"2025-04-22T23:29:50.778Z","updated_at":"2026-01-24T03:14:05.375Z","avatar_url":"https://github.com/callstackincubator.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rock Android GitHub Action\n\nThis GitHub Action enables remote building of Android applications using Rock. It supports both debug and release builds, with automatic artifact caching and code signing capabilities.\n\n## Features\n\n- Build Android apps in debug or release mode\n- Automatic artifact caching to speed up builds\n- Code signing support for release builds\n- Re-signing capability for PR builds\n- Native fingerprint-based caching\n- Configurable build parameters\n- Gradle wrapper validation\n\n## Usage\n\n```yaml\nname: Android Build\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: ['**']\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n      - name: Build Android\n        uses: callstackincubator/android@v3 # replace with latest commit hash\n        with:\n          variant: 'debug' # or else\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          # For release builds, add these:\n          # sign: true\n          # Option 1: Use keystore file directly\n          # keystore-file: 'path/to/your-keystore.jks'\n          # Option 2: Use base64 encoded keystore (alternative to keystore-file)\n          # keystore-base64: ${{ secrets.KEYSTORE_BASE64 }}\n          # keystore-store-file: 'your-keystore.jks'\n          # keystore-store-password: ${{ secrets.KEYSTORE_STORE_PASSWORD }}\n          # keystore-key-alias: 'your-key-alias'\n          # keystore-key-password: ${{ secrets.KEYSTORE_KEY_PASSWORD }}\n          # keystore-path: 'tools/buildtools/upload-key.keystore' # Optional: for custom keystore locations\n```\n\n## Inputs\n\n| Input                     | Description                              | Required | Default            |\n| ------------------------- | ---------------------------------------- | -------- | ------------------ |\n| `github-token`            | GitHub Token                             | Yes      | -                  |\n| `working-directory`       | Working directory for the build command  | No       | `.`                |\n| `validate-gradle-wrapper` | Whether to validate the Gradle wrapper   | No       | `true`             |\n| `setup-java`              | Whether to run actions/setup-java action | No       | `true`             |\n| `variant`                 | Build variant (debug/release)            | No       | `debug`            |\n| `sign`                    | Whether to sign the build with keystore  | No       | -                  |\n| `re-sign`                 | Re-sign the APK with new JS bundle       | No       | `false`            |\n| `keystore-file`           | Path to the keystore file                | No       | -                  |\n| `keystore-base64`         | Base64 encoded keystore file             | No       | -                  |\n| `keystore-store-file`     | Keystore store file name                 | No       | -                  |\n| `keystore-store-password` | Keystore store password                  | No       | -                  |\n| `keystore-key-alias`      | Keystore key alias                       | No       | -                  |\n| `keystore-key-password`   | Keystore key password                    | No       | -                  |\n| `keystore-path`           | where the keystore should be placed      | No       | `release.keystore` |\n| `rock-build-extra-params` | Extra parameters for rock build:android  | No       | -                  |\n| `comment-bot`             | Whether to comment PR with build link    | No       | `true`             |\n\n## Outputs\n\n| Output         | Description               |\n| -------------- | ------------------------- |\n| `artifact-url` | URL of the build artifact |\n| `artifact-id`  | ID of the build artifact  |\n\n## Code Signing\n\nWhen `sign: true` is enabled, this action configures Android code signing by setting Gradle properties. It supports **two property conventions** for maximum compatibility:\n\n### Android injected properties\n\n(this is an undocumented feature used by Fastlane and AGP)\n\nThe action automatically sets `android.injected.signing.*` properties which are natively recognized by the Android Gradle Plugin. These properties work with any standard `build.gradle` configuration without modifications:\n\n```gradle\nsigningConfigs {\n    release {\n        // These hardcoded values will be automatically overridden\n        storeFile file('path/to/keystore.jks')\n        keyAlias 'placeholder'\n        storePassword 'placeholder'\n        keyPassword 'placeholder'\n    }\n}\n```\n\n### Custom ROCK Properties\n\nFor apps that explicitly read custom properties in their `build.gradle`, the action also sets `ROCK_UPLOAD_*` properties:\n\n```gradle\nsigningConfigs {\n    release {\n        storeFile file('path/to/keystore.jks')\n        keyAlias project.findProperty('ROCK_UPLOAD_KEY_ALIAS') ?: 'placeholder'\n        storePassword project.findProperty('ROCK_UPLOAD_STORE_PASSWORD') ?: 'placeholder'\n        keyPassword project.findProperty('ROCK_UPLOAD_KEY_PASSWORD') ?: 'placeholder'\n    }\n}\n```\n\nThe following mappings are set:\n\n- `ROCK_UPLOAD_KEY_ALIAS` ← `inputs.keystore-key-alias`\n- `ROCK_UPLOAD_STORE_FILE` ← `inputs.keystore-store-file`\n- `ROCK_UPLOAD_STORE_PASSWORD` ← `inputs.keystore-store-password`\n- `ROCK_UPLOAD_KEY_PASSWORD` ← `inputs.keystore-key-password`\n\nBoth conventions are set simultaneously, so the action works with any existing build configuration.\n\n## Prerequisites\n\n- Ubuntu runner\n- Rock CLI installed in your project\n- For release builds:\n  - Valid Android keystore file\n  - Proper code signing setup\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallstackincubator%2Fandroid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcallstackincubator%2Fandroid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallstackincubator%2Fandroid/lists"}