PHP Android CLI create/generate Scaffold Android-Studio Gradle project with:
Java
orKotlin
language,legacy
or standard package- Modules (application/library)
- Variants with Dimensions
- Scaffold project & application/library level
build.gradle
with package name &dimensions
&variants
- Manage
settings.gradle
- Generate
manifest
file &res
with defaulticon
,color
,style
&values
- ...
- Language select
java
orkotlin
- Version
legacy
or standard
androidX
selection,jetifier
selection,
You can also:
- set
targetSdk
- set
buildToolsVersion
- set
minSdk
&maxSdk
JAVA
orKOTLIN
legacy
PHP Android CLI uses:
- Symfony Console - ...
And of course PHP Android CLI
itself is open source with a public repository on GitHub.
PHP Android CLI requires PHP v5+ to run.
Just download the phpandroid
and start scaffolding.
$ phpandroid create <PROJECT_NAME> <PACKAGE> [OPTIONS]
Create HelloWorld
project with com.example.helloworld
package name:
phpandroid create HelloWorld com.example.helloworld
Create HelloWorld
project with sdk
library & admin
application
phpandroid create HelloWorld com.example.helloworld --modules=sdk:library,admin
phpandroid create HelloWorld com.example.helloworld --variants=free:type,paid:type
here type
is the dimension
PHP Android CLI is currently using default values for latest Android. These are:
OPTIONS | Usage | DEFAULT |
---|---|---|
--type /-t |
set type |
kotlin |
--legacy /-l |
set legacy |
false |
--compileSdk /-cs |
set targetSdk |
31 |
--buildTools /-bt |
set buildToolsVersion |
31.0.0 |
--minSdk /-ms |
set minSdk |
21 |
--targetSdk /-ts |
set maxSdk |
31 |
Use --force
to re-write existing project.
- Create/Scaffold
activity
- Create/Scaffold
variants
source - ...
MIT
Free Software, Hell Yeah!