优化
This commit is contained in:
+6
-6
@@ -25,7 +25,7 @@ def gitCommits = Integer.parseInt('git rev-list HEAD --count'.execute().text.tri
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdk = compile_sdk_version
|
compileSdk = compile_sdk_version
|
||||||
namespace 'io.legado.app'
|
namespace = 'io.legado.app'
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain {
|
jvmToolchain {
|
||||||
languageVersion.set(JavaLanguageVersion.of(17))
|
languageVersion.set(JavaLanguageVersion.of(17))
|
||||||
@@ -69,8 +69,8 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
buildConfig true
|
buildConfig = true
|
||||||
viewBinding true
|
viewBinding = true
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
@@ -85,7 +85,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
shrinkResources true
|
shrinkResources = true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro', 'cronet-proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro', 'cronet-proguard-rules.pro'
|
||||||
}
|
}
|
||||||
debug {
|
debug {
|
||||||
@@ -131,7 +131,7 @@ android {
|
|||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
// Flag to enable support for the new language APIs
|
// Flag to enable support for the new language APIs
|
||||||
coreLibraryDesugaringEnabled true
|
coreLibraryDesugaringEnabled = true
|
||||||
// Sets Java compatibility
|
// Sets Java compatibility
|
||||||
sourceCompatibility JavaVersion.VERSION_17
|
sourceCompatibility JavaVersion.VERSION_17
|
||||||
targetCompatibility JavaVersion.VERSION_17
|
targetCompatibility JavaVersion.VERSION_17
|
||||||
@@ -145,7 +145,7 @@ android {
|
|||||||
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
|
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
|
||||||
}
|
}
|
||||||
lint {
|
lint {
|
||||||
checkDependencies true
|
checkDependencies = true
|
||||||
}
|
}
|
||||||
tasks.withType(JavaCompile).tap {
|
tasks.withType(JavaCompile).tap {
|
||||||
configureEach {
|
configureEach {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ plugins {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdk = compile_sdk_version
|
compileSdk = compile_sdk_version
|
||||||
namespace 'me.ag2s'
|
namespace = 'me.ag2s'
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain {
|
jvmToolchain {
|
||||||
languageVersion.set(JavaLanguageVersion.of(17))
|
languageVersion.set(JavaLanguageVersion.of(17))
|
||||||
@@ -24,7 +24,7 @@ android {
|
|||||||
targetCompatibility JavaVersion.VERSION_17
|
targetCompatibility JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
lint {
|
lint {
|
||||||
checkDependencies true
|
checkDependencies = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ plugins {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdk = compile_sdk_version
|
compileSdk = compile_sdk_version
|
||||||
namespace 'com.script'
|
namespace = 'com.script'
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain {
|
jvmToolchain {
|
||||||
languageVersion.set(JavaLanguageVersion.of(17))
|
languageVersion.set(JavaLanguageVersion.of(17))
|
||||||
@@ -25,7 +25,7 @@ android {
|
|||||||
targetCompatibility JavaVersion.VERSION_17
|
targetCompatibility JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
lint {
|
lint {
|
||||||
checkDependencies true
|
checkDependencies = true
|
||||||
}
|
}
|
||||||
tasks.withType(JavaCompile).tap {
|
tasks.withType(JavaCompile).tap {
|
||||||
configureEach {
|
configureEach {
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ dependencyResolutionManagement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
maven {
|
maven {
|
||||||
url 'https://jitpack.io'
|
url = 'https://jitpack.io'
|
||||||
content {
|
content {
|
||||||
includeGroupByRegex("com\\.github.*")
|
includeGroupByRegex("com\\.github.*")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user