@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22apply plugin : ' kotlin-android'
33apply plugin : ' kotlin-kapt'
44apply plugin : ' kotlin-parcelize'
5- apply plugin : ' com.hiya. jacoco-android'
5+ apply plugin : " com.mxalbert.gradle. jacoco-android"
66apply plugin : " com.starter.easylauncher"
77apply plugin : ' com.google.devtools.ksp'
88
@@ -11,11 +11,10 @@ android {
1111 compileSdk libs. versions. compileSdk. get(). toInteger()
1212 packagingOptions {
1313 resources {
14- excludes + = [' proguard-project.txt' , ' project.properties' , ' META-INF/LICENSE.txt' , ' META-INF/LICENSE' , ' META-INF/NOTICE.txt' , ' META-INF/NOTICE' , ' META-INF/DEPENDENCIES.txt' , ' META-INF/DEPENDENCIES' ]
14+ excludes + = [' proguard-project.txt' , ' project.properties' , ' META-INF/LICENSE.txt' , ' META-INF/LICENSE' , ' META-INF/NOTICE.txt' , ' META-INF/NOTICE' , ' META-INF/DEPENDENCIES.txt' , ' META-INF/DEPENDENCIES' , ' META-INF/versions/9/OSGI-INF/MANIFEST.MF ' ]
1515 }
1616 }
1717
18-
1918 defaultConfig {
2019 applicationId " com.amaze.filemanager"
2120 minSdkVersion libs. versions. minSdk. get(). toInteger()
@@ -95,12 +94,12 @@ android {
9594 }
9695
9796 compileOptions {
98- sourceCompatibility JavaVersion . VERSION_11
99- targetCompatibility JavaVersion . VERSION_11
97+ sourceCompatibility JavaVersion . VERSION_17
98+ targetCompatibility JavaVersion . VERSION_17
10099 }
101100
102101 kotlinOptions {
103- jvmTarget = ' 11 '
102+ jvmTarget = ' 17 '
104103 }
105104
106105 testOptions {
@@ -263,7 +262,7 @@ dependencies {
263262}
264263
265264kotlin {
266- jvmToolchain(11 )
265+ jvmToolchain(17 )
267266}
268267
269268configurations. configureEach {
@@ -292,6 +291,8 @@ tasks.register('supportOldLangCodes')
292291 include(' strings.xml' )
293292 }
294293 supportOldLangCodes. dependsOn copyTask
294+ rootProject. tasks. named(' spotlessJava' ). configure { dependsOn copyTask }
295+ rootProject. tasks. named(' spotlessKotlin' ). configure { dependsOn copyTask }
295296}
296297
297298project. afterEvaluate {
@@ -305,14 +306,6 @@ jacoco {
305306 toolVersion = libs. versions. jacoco. get()
306307}
307308
308- tasks. withType(JacocoReport ). configureEach {
309- reports {
310- csv. required. set(false )
311- html. required. set(true )
312- xml. required. set(true )
313- }
314- }
315-
316309tasks. withType(Test ). configureEach {
317310 jacoco. includeNoLocationClasses = true
318311 jacoco. excludes = [' jdk.internal.*' ]
@@ -342,5 +335,8 @@ if (propFile.canRead()) {
342335 android. buildTypes. release. signingConfig = null
343336}
344337repositories {
338+ google()
345339 mavenCentral()
340+ maven { url " https://jitpack.io" }
341+ maven { url " https://jcenter.bintray.com" }
346342}
0 commit comments