Skip to content

Commit 0cdd0b6

Browse files
authored
Unity 6 compatibility (#35)
* Fixed android build fails on Unity 6 * compileSdkVersion 36
1 parent c9da841 commit 0cdd0b6

13 files changed

Lines changed: 220 additions & 143 deletions

File tree

Android/app/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ plugins {
33
}
44

55
android {
6-
compileSdk 31
6+
compileSdkVersion 36
77

88
defaultConfig {
99
applicationId "jp.co.cyberagent.unitysupport.app"
1010
minSdk 21
11-
targetSdk 31
11+
targetSdk 36
1212
versionCode 1
1313
versionName "1.0"
1414

@@ -25,6 +25,7 @@ android {
2525
sourceCompatibility JavaVersion.VERSION_1_8
2626
targetCompatibility JavaVersion.VERSION_1_8
2727
}
28+
namespace 'jp.co.cyberagent.unitysupport.app'
2829
}
2930

3031
dependencies {

Android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="jp.co.cyberagent.unitysupport.app">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<application
65
android:allowBackup="true"

Android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
plugins {
3-
id 'com.android.application' version '7.1.1' apply false
4-
id 'com.android.library' version '7.1.1' apply false
3+
id 'com.android.application' version '8.13.0' apply false
4+
id 'com.android.library' version '8.13.0' apply false
55
}
66

77
task clean(type: Delete) {
88
delete rootProject.buildDir
9-
}
9+
}

Android/gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ android.useAndroidX=true
1818
# Enables namespacing of each library's R class so that its R class includes only the
1919
# resources declared in the library itself and none from the library's dependencies,
2020
# thereby reducing the size of the R class for that library
21-
android.nonTransitiveRClass=true
21+
android.nonTransitiveRClass=true
22+
android.defaults.buildfeatures.buildconfig=true
23+
android.nonFinalResIds=false
-15.3 KB
Binary file not shown.
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Fri Mar 04 15:30:30 JST 2022
21
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
42
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)