4 changed files with 92 additions and 93 deletions
@ -1,65 +1,64 @@
|
||||
def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY'); |
||||
def buildAsApplication = !buildAsLibrary |
||||
if (buildAsApplication) { |
||||
apply plugin: 'com.android.application' |
||||
} |
||||
else { |
||||
apply plugin: 'com.android.library' |
||||
} |
||||
|
||||
android { |
||||
compileSdkVersion 29 // Upgrade to 30 after november 2021 |
||||
aaptOptions { |
||||
noCompress 'mpq' |
||||
} |
||||
defaultConfig { |
||||
if (buildAsApplication) { |
||||
applicationId "org.diasurgical.devilutionx" |
||||
} |
||||
minSdkVersion 18 |
||||
targetSdkVersion 29 // Upgrade to 30 after november 2021 |
||||
versionCode 18 |
||||
versionName "1.2.1" |
||||
externalNativeBuild { |
||||
cmake { |
||||
arguments "-DANDROID_STL=c++_static" |
||||
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' |
||||
} |
||||
} |
||||
} |
||||
buildTypes { |
||||
release { |
||||
minifyEnabled false |
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
||||
} |
||||
} |
||||
if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) { |
||||
sourceSets.main { |
||||
jniLibs.srcDir 'libs' |
||||
} |
||||
externalNativeBuild { |
||||
cmake { |
||||
path '../../CMakeLists.txt' |
||||
version "3.13.0+" |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
if (buildAsLibrary) { |
||||
libraryVariants.all { variant -> |
||||
variant.outputs.each { output -> |
||||
def outputFile = output.outputFile |
||||
if (outputFile != null && outputFile.name.endsWith(".aar")) { |
||||
def fileName = "org.diasurgical.devilutionx.aar"; |
||||
output.outputFile = new File(outputFile.parent, fileName); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
dependencies { |
||||
implementation fileTree(include: ['*.jar'], dir: 'libs') |
||||
implementation 'com.android.support.constraint:constraint-layout:2.0.4' |
||||
} |
||||
def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY'); |
||||
def buildAsApplication = !buildAsLibrary |
||||
if (buildAsApplication) { |
||||
apply plugin: 'com.android.application' |
||||
} else { |
||||
apply plugin: 'com.android.library' |
||||
} |
||||
|
||||
android { |
||||
compileSdkVersion 29 // Upgrade to 30 after november 2021 |
||||
aaptOptions { |
||||
noCompress 'mpq' |
||||
} |
||||
defaultConfig { |
||||
if (buildAsApplication) { |
||||
applicationId "org.diasurgical.devilutionx" |
||||
} |
||||
minSdkVersion 18 |
||||
targetSdkVersion 29 // Upgrade to 30 after november 2021 |
||||
versionCode 18 |
||||
versionName "1.2.1" |
||||
externalNativeBuild { |
||||
cmake { |
||||
arguments "-DANDROID_STL=c++_static" |
||||
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' |
||||
} |
||||
} |
||||
} |
||||
buildTypes { |
||||
release { |
||||
minifyEnabled false |
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
||||
} |
||||
} |
||||
if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) { |
||||
sourceSets.main { |
||||
jniLibs.srcDir 'libs' |
||||
} |
||||
externalNativeBuild { |
||||
cmake { |
||||
path '../../CMakeLists.txt' |
||||
version "3.13.0+" |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
if (buildAsLibrary) { |
||||
libraryVariants.all { variant -> |
||||
variant.outputs.each { output -> |
||||
def outputFile = output.outputFile |
||||
if (outputFile != null && outputFile.name.endsWith(".aar")) { |
||||
def fileName = "org.diasurgical.devilutionx.aar"; |
||||
output.outputFile = new File(outputFile.parent, fileName); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
dependencies { |
||||
implementation fileTree(include: ['*.jar'], dir: 'libs') |
||||
implementation 'com.android.support.constraint:constraint-layout:2.0.4' |
||||
} |
||||
|
||||
@ -1,25 +1,25 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules. |
||||
|
||||
buildscript { |
||||
repositories { |
||||
mavenCentral() |
||||
google() |
||||
} |
||||
dependencies { |
||||
classpath 'com.android.tools.build:gradle:4.1.3' |
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong |
||||
// in the individual module build.gradle files |
||||
} |
||||
} |
||||
|
||||
allprojects { |
||||
repositories { |
||||
mavenCentral() |
||||
google() |
||||
} |
||||
} |
||||
|
||||
task clean(type: Delete) { |
||||
delete rootProject.buildDir |
||||
} |
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules. |
||||
|
||||
buildscript { |
||||
repositories { |
||||
mavenCentral() |
||||
google() |
||||
} |
||||
dependencies { |
||||
classpath 'com.android.tools.build:gradle:7.0.0' |
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong |
||||
// in the individual module build.gradle files |
||||
} |
||||
} |
||||
|
||||
allprojects { |
||||
repositories { |
||||
mavenCentral() |
||||
google() |
||||
} |
||||
} |
||||
|
||||
task clean(type: Delete) { |
||||
delete rootProject.buildDir |
||||
} |
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#Mon Jun 07 15:45:49 CEST 2021 |
||||
#Sat Jul 31 19:39:28 CEST 2021 |
||||
distributionBase=GRADLE_USER_HOME |
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip |
||||
distributionPath=wrapper/dists |
||||
zipStoreBase=GRADLE_USER_HOME |
||||
zipStorePath=wrapper/dists |
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip |
||||
zipStoreBase=GRADLE_USER_HOME |
||||
|
||||
Loading…
Reference in new issue