Apply suggested changes by Android Studio (#3287)
* Upgrade Gradle plugin to 7.0.3 * Upgrade compileSdkVersion to 30 * Remove androidResources block
This commit is contained in:
parent
0dd3228ef4
commit
30afa525e5
2 changed files with 6 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY');
|
||||
def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY')
|
||||
def buildAsApplication = !buildAsLibrary
|
||||
if (buildAsApplication) {
|
||||
apply plugin: 'com.android.application'
|
||||
|
|
@ -7,16 +7,13 @@ if (buildAsApplication) {
|
|||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 29 // Upgrade to 30 after november 2021
|
||||
aaptOptions {
|
||||
noCompress 'mpq'
|
||||
}
|
||||
compileSdkVersion 30
|
||||
defaultConfig {
|
||||
if (buildAsApplication) {
|
||||
applicationId "org.diasurgical.devilutionx"
|
||||
}
|
||||
minSdkVersion 18
|
||||
targetSdkVersion 29 // Upgrade to 30 after november 2021
|
||||
targetSdkVersion 30
|
||||
versionCode 20
|
||||
versionName "1.3.0"
|
||||
externalNativeBuild {
|
||||
|
|
@ -50,8 +47,8 @@ android {
|
|||
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);
|
||||
def fileName = "org.diasurgical.devilutionx.aar"
|
||||
output.outputFile = new File(outputFile.parent, fileName)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ buildscript {
|
|||
google()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.0.0'
|
||||
classpath 'com.android.tools.build:gradle:7.0.3'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue