CLI for android applications
$npm install android-cli -global
$acli --help
-h, --help output usage information -V, --version output the version number -g, --generate [name] generate component (e.g activity, fragment etc..) -p, --permission add uses-permission to manifest file(e.g INTERNET) -d, --dependency add dependency to build.gradle and sync gradle
Generate component (e.g activity, fragment etc..)
You can find all possible blueprints in the table below
Scaffold | Usage |
---|---|
Activity | acli -g activity my-new-activity |
Fragment | acli -g fragment my-new-fragment |
LoginActivity | acli -g login-acitivty my-new-login-activity |
TabbedActivity | acli -g tabbed-acitivty my-tabbed-activity |
FullScreenActivity | acli -g fullscreen-activity my-fullscreen-activity |
ScrollingActivity | acli -g scrolling-acitivty my-scrolling-activity |
If you contribute for other blueprints, please PR to this repository
Successful generated activity [ACTIVITY_NAME]Activity.java!
Successful generated activity layout file activity_[ACTIVITY_NAME].xml!
add uses-permission to manifest file(e.g INTERNET)
Permission | Usage |
---|---|
INTERNET | acli -p INTERNET |
Successful adding permission
add dependency to build.gradle and sync gradle
$acli -d "com.android.support:cardview-v7:+"
Successful adding Dependency
Syncing gradle.. <run ./gradlew build>
Milestone of this project
- Get packages at java src path by work module
- Parse AndroidManifest.xml and for add permission
- Connect travis.ci to stick green passing image-!
- Deploy this project to NPM (Node Package Manager)