Skip to content

apk development on termux (ie. building)

License

Notifications You must be signed in to change notification settings

wmartinmimi/apk-devtool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apk-Devtool

apk development on the command line (no gradle or ant)

Description

A helper for developing android app.

Features

Currently supporting:

  • apk building
  • project creation
  • both java and kotlin code
  • some degree of maven jar download

If you want to change some variables, you can modify config file in apk-devtool directory.

Works on termux!

How to use (quick start)

cd ~
pkg install git
git clone https://github.com/wmartinmimi/apk-devtool
cd apk-devtool
./quick-setup
cd <android-project-root>
apkdev build

build/output.signed.apk will be produced, you can open it with

termux-open build/output.signed.apk

but requires allow-external-apps = true in ~/.termux/termux.properties

you can create a new project with apkdev, just do

apkdev new

it will prompt for basic details, and create a hello world project at <project-name>/.

the created project is ready to run on default.

for different builds, you can do

apkdev build release

or

apkdev build debug

to download maven jars, do

apkdev m d <groupid>:<id>:<version> <url>

examples:

apkdev m d androidx.core:core:1.9.0
apkdev m d org.mozilla.components:support-base:105.0.6 https://maven.mozilla.org/maven2

if you need the help manual, do

apkdev help

requests / issues

If you request a feature, I would try my best to add it.

We welcome any issues or contributions!