Skip to content

Commit 55f7508

Browse files
committed
Fix some deprecated methods not available in gradle 9.0
1 parent dc04bac commit 55f7508

File tree

7 files changed

+44
-44
lines changed

7 files changed

+44
-44
lines changed

core/platform/android/libaxmol/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ apply from: 'axmol.gradle'
44
def buildProfiles = AxmolUtils.resolveBasicBuildProfiles(project)
55

66
android {
7-
namespace "dev.axmol.lib"
7+
namespace = 'dev.axmol.lib'
88
def targetSdk = buildProfiles['targetSdk']
99
def minSdk = buildProfiles['minSdk']
10-
compileSdk targetSdk.toInteger()
10+
compileSdk = targetSdk.toInteger()
1111

1212
defaultConfig {
13-
minSdkVersion minSdk
14-
targetSdkVersion targetSdk
13+
minSdkVersion = minSdk
14+
targetSdkVersion = targetSdk
1515
versionCode 1
1616
versionName "1.0"
1717
}
@@ -29,7 +29,7 @@ android {
2929
}
3030
}
3131
buildFeatures {
32-
aidl true
32+
aidl = true
3333
}
3434
}
3535

templates/common/proj.android/app/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ android {
1212
def targetSdk = buildProfiles['targetSdk']
1313

1414
// Apply build profiles
15-
namespace packageName
16-
compileSdk targetSdk.toInteger()
15+
namespace = packageName
16+
compileSdk = targetSdk.toInteger()
1717
ndkVersion = buildProfiles['ndkVer']
1818
if(buildProfiles.containsKey('ndkPath')) {
1919
ndkPath = buildProfiles['ndkPath']
2020
}
2121

2222
defaultConfig {
23-
applicationId packageName
24-
minSdkVersion minSdk
25-
targetSdkVersion targetSdk
23+
applicationId = packageName
24+
minSdkVersion = minSdk
25+
targetSdkVersion = targetSdk
2626
versionCode 1
2727
versionName "1.0"
2828

@@ -48,7 +48,7 @@ android {
4848

4949
externalNativeBuild {
5050
cmake {
51-
version "$cmakeVer"
51+
version = cmakeVer
5252
path "../../CMakeLists.txt"
5353
}
5454
}
@@ -70,7 +70,7 @@ android {
7070
jniDebuggable false
7171
renderscriptDebuggable false
7272
minifyEnabled true
73-
shrinkResources true
73+
shrinkResources = true
7474
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
7575
proguardFile file(project(':libaxmol').projectDir.toString() + '/proguard-rules.pro')
7676
if (project.hasProperty("KEY_STORE_FILE")) {
@@ -90,7 +90,7 @@ android {
9090
}
9191

9292
buildFeatures {
93-
aidl true
93+
aidl = true
9494
}
9595
}
9696

tests/cpp-tests/proj.android/app/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ android {
1111
def targetSdk = buildProfiles['targetSdk']
1212

1313
// Apply build profiles
14-
namespace packageName
15-
compileSdk targetSdk.toInteger()
14+
namespace = packageName
15+
compileSdk = targetSdk.toInteger()
1616
ndkVersion = buildProfiles['ndkVer']
1717
if(buildProfiles.containsKey('ndkPath')) {
1818
ndkPath = buildProfiles['ndkPath']
1919
}
2020

2121
defaultConfig {
22-
applicationId packageName
23-
minSdkVersion minSdk
24-
targetSdkVersion targetSdk
22+
applicationId = packageName
23+
minSdkVersion = minSdk
24+
targetSdkVersion = targetSdk
2525
versionCode 1
2626
versionName "1.0"
2727

@@ -48,7 +48,7 @@ android {
4848

4949
externalNativeBuild {
5050
cmake {
51-
version "$cmakeVer"
51+
version = cmakeVer
5252
path "../../CMakeLists.txt"
5353
}
5454
}
@@ -70,7 +70,7 @@ android {
7070
jniDebuggable false
7171
renderscriptDebuggable false
7272
minifyEnabled true
73-
shrinkResources true
73+
shrinkResources = true
7474
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
7575
if (project.hasProperty("KEY_STORE_FILE")) {
7676
signingConfig signingConfigs.release

tests/fairygui-tests/proj.android/app/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ android {
1111
def targetSdk = buildProfiles['targetSdk']
1212

1313
// Apply build profiles
14-
namespace packageName
15-
compileSdk targetSdk.toInteger()
14+
namespace = packageName
15+
compileSdk = targetSdk.toInteger()
1616
ndkVersion = buildProfiles['ndkVer']
1717
if(buildProfiles.containsKey('ndkPath')) {
1818
ndkPath = buildProfiles['ndkPath']
1919
}
2020

2121
defaultConfig {
22-
applicationId packageName
23-
minSdkVersion minSdk
24-
targetSdkVersion targetSdk
22+
applicationId = packageName
23+
minSdkVersion = minSdk
24+
targetSdkVersion = targetSdk
2525
versionCode 1
2626
versionName "1.0"
2727

@@ -48,7 +48,7 @@ android {
4848

4949
externalNativeBuild {
5050
cmake {
51-
version "$cmakeVer"
51+
version = cmakeVer
5252
path "../../CMakeLists.txt"
5353
}
5454
}

tests/live2d-tests/proj.android/app/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ android {
1111
def targetSdk = buildProfiles['targetSdk']
1212

1313
// Apply build profiles
14-
namespace packageName
15-
compileSdk targetSdk.toInteger()
14+
namespace = packageName
15+
compileSdk = targetSdk.toInteger()
1616
ndkVersion = buildProfiles['ndkVer']
1717
if(buildProfiles.containsKey('ndkPath')) {
1818
ndkPath = buildProfiles['ndkPath']
1919
}
2020

2121
defaultConfig {
22-
applicationId packageName
23-
minSdkVersion minSdk
24-
targetSdkVersion targetSdk
22+
applicationId = packageName
23+
minSdkVersion = minSdk
24+
targetSdkVersion = targetSdk
2525
versionCode 1
2626
versionName "1.0"
2727

@@ -48,7 +48,7 @@ android {
4848

4949
externalNativeBuild {
5050
cmake {
51-
version "$cmakeVer"
51+
version cmakeVer
5252
path "../../CMakeLists.txt"
5353
}
5454
}

tests/lua-tests/proj.android/app/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ android {
1111
def targetSdk = buildProfiles['targetSdk']
1212

1313
// Apply build profiles
14-
namespace packageName
15-
compileSdk targetSdk.toInteger()
14+
namespace = packageName
15+
compileSdk = targetSdk.toInteger()
1616
ndkVersion = buildProfiles['ndkVer']
1717
if(buildProfiles.containsKey('ndkPath')) {
1818
ndkPath = buildProfiles['ndkPath']
1919
}
2020

2121
defaultConfig {
22-
applicationId packageName
23-
minSdkVersion minSdk
24-
targetSdkVersion targetSdk
22+
applicationId = packageName
23+
minSdkVersion = minSdk
24+
targetSdkVersion = targetSdk
2525
versionCode 1
2626
versionName "1.0"
2727

@@ -48,7 +48,7 @@ android {
4848

4949
externalNativeBuild {
5050
cmake {
51-
version "$cmakeVer"
51+
version cmakeVer
5252
path "../../CMakeLists.txt"
5353
}
5454
}

tests/unit-tests/proj.android/app/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ android {
1111
def targetSdk = buildProfiles['targetSdk']
1212

1313
// Apply build profiles
14-
namespace packageName
15-
compileSdk targetSdk.toInteger()
14+
namespace = packageName
15+
compileSdk = targetSdk.toInteger()
1616
ndkVersion = buildProfiles['ndkVer']
1717
if(buildProfiles.containsKey('ndkPath')) {
1818
ndkPath = buildProfiles['ndkPath']
1919
}
2020

2121
defaultConfig {
22-
applicationId packageName
23-
minSdkVersion minSdk
24-
targetSdkVersion targetSdk
22+
applicationId = packageName
23+
minSdkVersion = minSdk
24+
targetSdkVersion = targetSdk
2525
versionCode 1
2626
versionName "1.0"
2727

@@ -48,7 +48,7 @@ android {
4848

4949
externalNativeBuild {
5050
cmake {
51-
version "$cmakeVer"
51+
version cmakeVer
5252
path "../../CMakeLists.txt"
5353
}
5454
}

0 commit comments

Comments
 (0)