1 def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY');
2 def buildAsApplication = !buildAsLibrary
3 if (buildAsApplication) {
4 apply plugin: 'com.android.application'
7 apply plugin: 'com.android.library'
14 if (buildAsApplication) {
15 applicationId "org.artsoft.rocksndiamonds"
21 versionCode __VERSION_CODE__
22 versionName "__VERSION_NAME__"
26 arguments "APP_PLATFORM=android-17"
27 abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
35 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
39 if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) {
56 libraryVariants.all { variant ->
57 variant.outputs.each { output ->
58 def outputFile = output.outputFile
59 if (outputFile != null && outputFile.name.endsWith(".aar")) {
60 def fileName = "org.libsdl.app.aar";
61 output.outputFile = new File(outputFile.parent, fileName);
68 ignoreAssetsPattern ""
73 implementation fileTree(include: ['*.jar'], dir: 'libs')