|
|
@ -16,7 +16,7 @@ def version = "3." + releaseTime() |
|
|
|
def gitCommits = Integer.parseInt('git rev-list HEAD --count'.execute().text.trim()) |
|
|
|
def gitCommits = Integer.parseInt('git rev-list HEAD --count'.execute().text.trim()) |
|
|
|
|
|
|
|
|
|
|
|
android { |
|
|
|
android { |
|
|
|
compileSdkVersion 33 |
|
|
|
compileSdk 33 |
|
|
|
buildToolsVersion "33.0.0" |
|
|
|
buildToolsVersion "33.0.0" |
|
|
|
namespace 'io.legado.app' |
|
|
|
namespace 'io.legado.app' |
|
|
|
kotlinOptions { |
|
|
|
kotlinOptions { |
|
|
@ -47,6 +47,8 @@ android { |
|
|
|
project.ext.set("archivesBaseName", name + "_" + version) |
|
|
|
project.ext.set("archivesBaseName", name + "_" + version) |
|
|
|
multiDexEnabled true |
|
|
|
multiDexEnabled true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buildConfigField "String", "Cronet_Version", "\"$CronetVersion\"" |
|
|
|
|
|
|
|
|
|
|
|
javaCompileOptions { |
|
|
|
javaCompileOptions { |
|
|
|
annotationProcessorOptions { |
|
|
|
annotationProcessorOptions { |
|
|
|
arguments += [ |
|
|
|
arguments += [ |
|
|
@ -63,7 +65,6 @@ android { |
|
|
|
} |
|
|
|
} |
|
|
|
buildTypes { |
|
|
|
buildTypes { |
|
|
|
release { |
|
|
|
release { |
|
|
|
buildConfigField "String", "Cronet_Version", "\"$CronetVersion\"" |
|
|
|
|
|
|
|
if (project.hasProperty("RELEASE_STORE_FILE")) { |
|
|
|
if (project.hasProperty("RELEASE_STORE_FILE")) { |
|
|
|
signingConfig signingConfigs.myConfig |
|
|
|
signingConfig signingConfigs.myConfig |
|
|
|
} |
|
|
|
} |
|
|
@ -73,7 +74,7 @@ android { |
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
|
|
|
} |
|
|
|
} |
|
|
|
debug { |
|
|
|
debug { |
|
|
|
buildConfigField "String", "Cronet_Version", "\"$CronetVersion\"" |
|
|
|
|
|
|
|
if (project.hasProperty("RELEASE_STORE_FILE")) { |
|
|
|
if (project.hasProperty("RELEASE_STORE_FILE")) { |
|
|
|
signingConfig signingConfigs.myConfig |
|
|
|
signingConfig signingConfigs.myConfig |
|
|
|
} |
|
|
|
} |
|
|
@ -82,13 +83,15 @@ android { |
|
|
|
minifyEnabled false |
|
|
|
minifyEnabled false |
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
|
|
|
} |
|
|
|
} |
|
|
|
android.applicationVariants.all { variant -> |
|
|
|
} |
|
|
|
variant.outputs.all { |
|
|
|
|
|
|
|
def flavor = variant.productFlavors[0].name |
|
|
|
android.applicationVariants.all { variant -> |
|
|
|
outputFileName = "${name}_${flavor}_${defaultConfig.versionName}.apk" |
|
|
|
variant.outputs.all { |
|
|
|
} |
|
|
|
def flavor = variant.productFlavors[0].name |
|
|
|
|
|
|
|
outputFileName = "${name}_${flavor}_${defaultConfig.versionName}.apk" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
flavorDimensions "mode" |
|
|
|
flavorDimensions "mode" |
|
|
|
productFlavors { |
|
|
|
productFlavors { |
|
|
|
app { |
|
|
|
app { |
|
|
@ -125,6 +128,7 @@ android { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
dependencies { |
|
|
|
dependencies { |
|
|
|
|
|
|
|
compileOnly "com.android.tools.build:gradle:$agp_version" |
|
|
|
//noinspection GradleDependency,GradlePackageUpdate |
|
|
|
//noinspection GradleDependency,GradlePackageUpdate |
|
|
|
coreLibraryDesugaring('com.android.tools:desugar_jdk_libs:1.2.2') |
|
|
|
coreLibraryDesugaring('com.android.tools:desugar_jdk_libs:1.2.2') |
|
|
|
testImplementation('junit:junit:4.13.2') |
|
|
|
testImplementation('junit:junit:4.13.2') |
|
|
|