Gr

Gradle-less APK builds on Android

Hacker News

Gradle-less APK builds on Android

without access to a pc, i still wanted to build android apps on my phone. this meant i needed to find a way to do it without android studio, on a cli. the internet said that was easy, use gradle with android sdk cli tools. turns out gradle and android sdk relies on official x86 binaries from google servers. maybe there is way to override that, and use our own cross compiled binaries, but i dont know how to do that. also i wanted as much as control as possible over the build process. this led me to create my own build script for usage in termux. it uses a combination of ninja files and shell scripts. all the tools necessary for building the apk has already been cross compiled and remains as a package in the termux repos(thanks). the shell scripts act as a meta build system, as that builds ninja files dynamically if files have changed. this gives me free parallelism and incremental compilation (i think so). this is definetely not a general build script for all android apps. if it needs to be built by my method, there are a lot of implicit hardcoded file paths, and the biggest issue being that the apps should rely only on platform apis(the ones available in android.jar). do note that if it wasnt obvious from my tone or my profile, i am a beginner, who has no idea what is going on, so instead of doing push requests or bug reports, i would much appreciate if you just voiced your reasons down below and start a discussion, instead of doing technical stuff on github, i am still learning on how to use all of that. this is the first project that i am showcasing on the internet(only because of my friends forced me to).

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: google, apps, code · Missing: mac, agents, macos
88%88% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
87%87% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: apps, google, way · Missing: mobile apps, ios, personal
47%47% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
46%46% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: platform · Missing: plus, intuitive, reviews
42%42% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
20%20% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Android APK
Android APK24%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Android APK

Indie Hackers
Tekken 3 APK
Tekken 3 APK24%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Relive the legendary Tekken 3 on Android

Indie Hackers
Snaptroid APK for Android
Snaptroid APK for Android32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Snaptroid APK for Android is specially designed to work seam

Indie Hackers
MO
MOLEHEAD beta android apk32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MOLEHEAD beta android apk

Hacker News1
apk-goobet
apk-goobet14%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

apk-goobet

Indie Hackers
Diego
Diego14%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Apk Roja

Indie Hackerscommitment-full-time
harrywince12
harrywince1233%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

apk

Indie Hackers1advertising
InstaPro APK
InstaPro APK14%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

InstaPro APK

Indie Hackers
Stardew Valley APK
Stardew Valley APK52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Stardew Valley APK

Indie Hackerscommitment-full-time
Ji
Jidoteki – Offload VM builds45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Jidoteki – Offload VM builds

Hacker News2