Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
proton:android_projects [2022/04/06 11:07] – seth | proton:android_projects [2022/08/01 07:41] (current) – [V3 style] seth |
---|
After a few more years, Seth created an Android Studio/Gradle based build. The preprocessor is no longer used and the build system is simplified quite a bit, you just change the package id in a single place (AndroidGradle/local.properties) and edit a CMakeLists.txt file to set which C/C++ files compile. Android Studio can load the project and run/debug on devices or emulated devices very easily. | After a few more years, Seth created an Android Studio/Gradle based build. The preprocessor is no longer used and the build system is simplified quite a bit, you just change the package id in a single place (AndroidGradle/local.properties) and edit a CMakeLists.txt file to set which C/C++ files compile. Android Studio can load the project and run/debug on devices or emulated devices very easily. |
| |
Android studio handles installing Gradle/NDK/etc by itself, much simpler than before. | Android Studio handles installing Gradle/NDK/etc by itself, much simpler than before. |
| |
| Note: I've ripped out built in support (on the Java side) for In App Billing, Chartbooost/Tapjoy/Etc as I assume they don't work anymore anyway as I haven't used them for years. |
| |
| It is possible to use third party libraries the "gradle way" or directly by linking files, I do this in Dink Smallwood HD android for FMOD support. |
| |
| IMPORTANT NOTE: The package ID set in App.cpp MUST match the one set in local.properties. Those are the only two places you need to worry about it. The RTAndroidApp name you see everywhere stays that way and shouldn't be changed. (it's used for internal bindings but won't affect the real build's package id etc) |
| |
==== Building ==== | ==== Building ==== |