upgrade agp 8.0
This commit is contained in:
+13
-16
@@ -17,11 +17,10 @@ def gitCommits = Integer.parseInt('git rev-list HEAD --count'.execute().text.tri
|
||||
|
||||
android {
|
||||
compileSdk = compile_sdk_version
|
||||
buildToolsVersion = build_tool_version
|
||||
namespace 'io.legado.app'
|
||||
kotlin {
|
||||
jvmToolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of("11"))
|
||||
languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,16 +86,7 @@ android {
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
android.applicationVariants.all { variant ->
|
||||
variant.outputs.all {
|
||||
def flavor = variant.productFlavors[0].name
|
||||
outputFileName = "${name}_${flavor}_${defaultConfig.versionName}.apk"
|
||||
}
|
||||
}
|
||||
|
||||
flavorDimensions.add("mode")
|
||||
|
||||
flavorDimensions = ['mode']
|
||||
productFlavors {
|
||||
app {
|
||||
dimension "mode"
|
||||
@@ -114,14 +104,21 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
android.applicationVariants.all { variant ->
|
||||
variant.outputs.all {
|
||||
def flavor = variant.productFlavors[0].name
|
||||
outputFileName = "${name}_${flavor}_${defaultConfig.versionName}.apk"
|
||||
}
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
// Flag to enable support for the new language APIs
|
||||
coreLibraryDesugaringEnabled true
|
||||
// Sets Java compatibility to Java 11
|
||||
sourceCompatibility JavaVersion.VERSION_11
|
||||
targetCompatibility JavaVersion.VERSION_11
|
||||
sourceCompatibility JavaVersion.VERSION_17
|
||||
targetCompatibility JavaVersion.VERSION_17
|
||||
}
|
||||
packagingOptions {
|
||||
packaging {
|
||||
resources.excludes.add('META-INF/*')
|
||||
}
|
||||
|
||||
@@ -231,7 +228,7 @@ dependencies {
|
||||
implementation("org.nanohttpd:nanohttpd-websocket:$nanoHttpdVersion")
|
||||
|
||||
//二维码
|
||||
implementation('com.github.jenly1314:zxing-lite:2.3.1')
|
||||
implementation('com.github.jenly1314:zxing-lite:2.4.0')
|
||||
|
||||
//颜色选择
|
||||
implementation('com.jaredrummler:colorpicker:1.1.0')
|
||||
|
||||
Reference in New Issue
Block a user