Skip to content

Commit 3597f40

Browse files
committed
fix: update Gradle configuration and Java compatibility
- Downgraded Gradle version from 8.1.4 to 3.6.4 in build.gradle for compatibility. - Changed Java source and target compatibility from 17 to 1.8 to align with the downgraded Gradle version. - Updated gradle-wrapper.properties to use Gradle 6.7.1 distribution. - Added gradlew script for easier Gradle command execution. - Removed unnecessary plugin management and dependency resolution management from settings.gradle. These changes ensure the project builds correctly with the specified Gradle version and Java compatibility.
1 parent a2bb457 commit 3597f40

13 files changed

Lines changed: 265 additions & 23 deletions

File tree

platform/android-app/build.gradle

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
mavenCentral()
55
}
66
dependencies {
7-
classpath "com.android.tools.build:gradle:8.1.4"
7+
classpath "com.android.tools.build:gradle:3.6.4"
88
}
99
}
1010

@@ -19,13 +19,12 @@ apply plugin: 'com.android.application'
1919

2020
android {
2121
compileSdkVersion 33
22-
namespace "com.idtech3"
23-
22+
2423
compileOptions {
25-
sourceCompatibility JavaVersion.VERSION_17
26-
targetCompatibility JavaVersion.VERSION_17
24+
sourceCompatibility JavaVersion.VERSION_1_8
25+
targetCompatibility JavaVersion.VERSION_1_8
2726
}
28-
27+
2928
defaultConfig {
3029
applicationId "com.idtech3"
3130
minSdkVersion 24 // Android 7.0 - required for Vulkan support
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
org.gradle.jvmargs=-Xmx2G -Dfile.encoding=UTF-8
2+
org.gradle.java.home=/usr/lib/jvm/java-8-openjdk-amd64
23
android.defaults.buildfeatures.buildconfig=true
34
android.nonTransitiveRClass=false
45
android.nonFinalResIds=false
60.2 KB
Binary file not shown.

platform/android-app/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

platform/android-app/gradlew

Lines changed: 258 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,2 @@
1-
pluginManagement {
2-
repositories {
3-
google()
4-
mavenCentral()
5-
gradlePluginPortal()
6-
}
7-
}
8-
9-
dependencyResolutionManagement {
10-
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11-
repositories {
12-
google()
13-
mavenCentral()
14-
}
15-
}
16-
171
rootProject.name = "idtech3"
182
include ':app'
Binary file not shown.
Binary file not shown.
23.5 KB
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)