Android app (Kotlin / Jetpack Compose) that scans a project folder or archive and extracts a structured summary of its code. This repository is configured to build a Release APK and AAB automatically on GitHub Actions with no Android Studio required.
| Item | Value |
|---|---|
| Language | Kotlin (org.jetbrains.kotlin.android 2.2.21) |
| Android Gradle Plugin | 8.10.1 |
| Gradle (wrapper) | 8.11.1 (gradle/wrapper/gradle-wrapper.properties) |
| JDK | 17 (set in app/build.gradle.kts and the CI workflow) |
compileSdk / targetSdk |
36 |
minSdk |
24 |
buildToolsVersion |
36.0.0 |
| Application module | :app |
namespace |
com.agon.app |
applicationId |
com.mohammedalbukhaiti.aiprojectextractorpro |
| App name | AI Project Extractor Pro |
| Main entry | app/src/main/java/com/agon/app/MainActivity.kt |
Requirements: JDK 17 and the Android SDK (platform 36 + build-tools 36.0.0).
# 1. Generate a debug/release build
./gradlew assembleRelease # Release APK
./gradlew bundleRelease # Release AAB (App Bundle)Outputs are written to:
- Release APK:
app/build/outputs/apk/release/app-release.apk - Release AAB:
app/build/outputs/bundle/release/app-release.aab
local.properties is machine-specific and is not committed (gitignored).
The workflow lives at .github/workflows/build-release.yml. It:
- Checks out the code.
- Installs JDK 17 and the Android SDK (platform 36 + build-tools 36.0.0).
- Runs Gradle (with caching) to produce
assembleRelease+bundleRelease. - Signs the release if you provide a keystore via Secrets; otherwise it falls back to the debug key so the build always succeeds.
- Fails with a clear
::error::message if the expected outputs are not produced. - Uploads the APK and AAB as downloadable artifacts.
- Manual: open the Actions tab → select "Build Release" on the left → click "Run workflow" → Run workflow.
- Automatic: on push/merge to
main, or on any tag likev1.0.0.
After a successful run, open the run page → scroll to the Artifacts section →
download release-apk and release-aab.
If you don't set these Secrets, the release is still built and installable (signed with the debug key). For a Play Store release you must sign with your own keystore.
Add these Secrets (Settings → Secrets and variables → Actions → New repository secret):
| Secret | Description | Example / how to fill |
|---|---|---|
RELEASE_KEYSTORE_BASE64 |
Your .jks keystore file encoded as base64 |
base64 -w0 your-key.jks → paste output |
RELEASE_STORE_PASSWORD |
Keystore password | the password you used with keytool |
RELEASE_KEY_ALIAS |
The key alias | e.g. mykey |
RELEASE_KEY_PASSWORD |
Key password | the key's password |
No real passwords or keystores are stored in this repository — they are only referenced as GitHub Secrets and injected into the build as environment variables at runtime. Never commit your
.jksfile or passwords (they are gitignored).
Generate a keystore locally if you don't have one:
keytool -genkey -v -keystore release.jks -alias mykey \
-keyalg RSA -keysize 2048 -validity 10000
# Then:
base64 -w0 release.jks # copy the output into RELEASE_KEYSTORE_BASE64- Create an empty repository on GitHub (do not add a README/license there).
- From this folder:
(or push your
git remote add origin https://github.com/<USER>/<REPO>.git git push -u origin arena/01a029dd-extractor-prpro
mainbranch:git push -u origin main) - Push the current branch's commits (including
.github/workflows/build-release.yml). - Go to the Actions tab → the workflow appears. Click Run workflow.
Ensure the build outputs (
.gradle,build/,local.properties) are not committed — they are covered by the.gitignorein this repository.
- Bump versions only in
app/build.gradle.kts,gradle/wrapper/gradle-wrapper.properties, and keep the AGP/Gradle/JDK compatibility (AGP 8.10.x ↔ Gradle 8.11.x ↔ JDK 17). - Regenerate the Gradle wrapper with
./gradlew wrapper --gradle-version <V>after changing the wrapper version.