Skip to content

Commit 96ed341

Browse files
committed
chore: set compileOptions
- set source and target compatibility as Java 8 - set Kotlin jvmTarget as Java 8 - enable desugaring to enable support for the new language APIs - enable multi dex to increase compatibility
1 parent 129b90b commit 96ed341

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

app/build.gradle

+15
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ android {
1111
targetSdkVersion 29
1212
versionCode 20220901
1313
versionName "3.2.8"
14+
15+
multiDexEnabled true
1416
setProperty("archivesBaseName", "trime-$versionName")
1517
resValue "string", "trime_url", getGitUrl()
1618
buildConfigField 'String', 'BUILD_INFO' , '"' + getBuildInfo() + '"'
@@ -60,6 +62,18 @@ android {
6062
viewBinding true
6163
}
6264

65+
compileOptions {
66+
sourceCompatibility JavaVersion.VERSION_1_8
67+
targetCompatibility JavaVersion.VERSION_1_8
68+
69+
// Flag to enable support for the new language APIs
70+
coreLibraryDesugaringEnabled true
71+
}
72+
73+
kotlinOptions {
74+
jvmTarget = '1.8'
75+
}
76+
6377
externalNativeBuild {
6478
cmake {
6579
// TODO: upgrade to 3.18
@@ -90,6 +104,7 @@ android {
90104
}
91105

92106
dependencies {
107+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
93108
implementation "com.blankj:utilcodex:1.30.6"
94109
implementation "com.jakewharton.timber:timber:5.0.1"
95110
implementation "cat.ereza:customactivityoncrash:2.4.0"

0 commit comments

Comments
 (0)