mirror of
https://github.com/love2d/love-android.git
synced 2026-08-21 05:00:22 +02:00
Generate 3 different flavors: normal, playstore, embed.
This commit is contained in:
@@ -13,6 +13,7 @@ android {
|
||||
compileSdkVersion 28
|
||||
buildToolsVersion "28.0.3"
|
||||
minSdkVersion 14
|
||||
resValue "bool", "embed", "false"
|
||||
externalNativeBuild {
|
||||
ndkBuild {
|
||||
arguments "-j4"
|
||||
@@ -30,12 +31,31 @@ android {
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
flavorDimensions 'mode'
|
||||
productFlavors {
|
||||
normal {
|
||||
dimension 'mode'
|
||||
}
|
||||
playstore {
|
||||
dimension 'mode'
|
||||
}
|
||||
embed {
|
||||
dimension 'mode'
|
||||
resValue "bool", "embed", "true"
|
||||
}
|
||||
}
|
||||
sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDirs('src/main/java', 'src/jni/SDL2/android-project/app/src/main/java')
|
||||
}
|
||||
}
|
||||
embed {
|
||||
java {
|
||||
exclude '**/DownloadActivity.java'
|
||||
exclude '**/DownloadService.java'
|
||||
}
|
||||
}
|
||||
}
|
||||
externalNativeBuild {
|
||||
ndkBuild {
|
||||
|
||||
Reference in New Issue
Block a user