Tools and libraries for building android apps on jphp
Plugin for jppm create compiled jar file from your php sources and dependencies. This jar file gets into gralde dependencies and gradle build your apk file.
Install the lasted version of jppm and JDK 8.
Before install execute command jppm build
Install the lasted version of Android SDK. Create new directory and execute commands:
jppm init # adding app plugin
jppm remove jphp-core && jppm remove jphp-zend-ext # remove not working dependencies
jppm add jppm-android-plugin --dev # add android plugin
jppm android:init # init new android project
To build your project use jppm android:compile --packageDebug
command.
You can find apk
file in build\outputs\apk
dir.
- .venity/
- compiler.jar # jphp compiler
- src/
- main/ # sources dir
- jphp/ # php sources dir
- index.php # bootstrap php file
- res/
- ...
- AndroidManifest.xml # android manifest (see android docs)
- vendor/ # jppm dependencies
- ....
- package.php.yml # jppm project file
- build.gradle # gradle build script
- gradlew
- gradlew.bat # gradle starters