mirror of
https://github.com/chiteroman/TrickyStore.git
synced 2025-07-17 15:29:32 +00:00
works now
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import com.android.build.gradle.AppExtension
|
||||
import com.android.build.gradle.LibraryExtension
|
||||
import java.io.ByteArrayOutputStream
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.agp.app) apply false
|
||||
alias(libs.plugins.jetbrains.kotlin.android) apply false
|
||||
alias(libs.plugins.android.library) apply false
|
||||
}
|
||||
|
||||
fun String.execute(currentWorkingDir: File = file("./")): String {
|
||||
@@ -24,7 +27,7 @@ val moduleName by extra("Tricky Store")
|
||||
val verName by extra("v1")
|
||||
val verCode by extra(gitCommitCount)
|
||||
val commitHash by extra(gitCommitHash)
|
||||
val abiList by extra(listOf("arm64-v8a", "armeabi-v7a", "x86", "x86_64"))
|
||||
val abiList by extra(listOf("arm64-v8a", "x86_64"))
|
||||
|
||||
val androidMinSdkVersion by extra(26)
|
||||
val androidTargetSdkVersion by extra(34)
|
||||
@@ -47,6 +50,9 @@ fun Project.configureBaseExtension() {
|
||||
|
||||
defaultConfig {
|
||||
minSdk = androidMinSdkVersion
|
||||
targetSdk = androidCompileSdkVersion
|
||||
versionCode = verCode
|
||||
versionName = verName
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
@@ -55,12 +61,34 @@ fun Project.configureBaseExtension() {
|
||||
}
|
||||
}
|
||||
|
||||
extensions.findByType(LibraryExtension::class)?.run {
|
||||
namespace = "io.github.a13e300.tricky_store"
|
||||
compileSdk = androidCompileSdkVersion
|
||||
ndkVersion = androidCompileNdkVersion
|
||||
buildToolsVersion = androidBuildToolsVersion
|
||||
|
||||
defaultConfig {
|
||||
minSdk = androidMinSdkVersion
|
||||
}
|
||||
|
||||
lint {
|
||||
abortOnError = true
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = androidSourceCompatibility
|
||||
targetCompatibility = androidTargetCompatibility
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
plugins.withId("com.android.application") {
|
||||
configureBaseExtension()
|
||||
}
|
||||
plugins.withId("com.android.library") {
|
||||
configureBaseExtension()
|
||||
}
|
||||
plugins.withType(JavaPlugin::class.java) {
|
||||
extensions.configure(JavaPluginExtension::class.java) {
|
||||
sourceCompatibility = androidSourceCompatibility
|
||||
|
||||
Reference in New Issue
Block a user