fix: signing issue (#279)
This commit is contained in:
parent
7c15943a81
commit
470fa0191b
|
@ -1,3 +1,6 @@
|
|||
import com.android.builder.model.v2.dsl.SigningConfig
|
||||
import java.util.Properties
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.kotlin.android)
|
||||
|
@ -11,7 +14,6 @@ plugins {
|
|||
android {
|
||||
namespace = Constants.APP_ID
|
||||
compileSdk = Constants.TARGET_SDK
|
||||
compileSdkPreview = "VanillaIceCream"
|
||||
|
||||
androidResources {
|
||||
generateLocaleConfig = true
|
||||
|
@ -49,16 +51,6 @@ android {
|
|||
listOf("libwg-go.so", "libwg-quick.so", "libwg.so"),
|
||||
)
|
||||
|
||||
applicationVariants.all {
|
||||
val variant = this
|
||||
variant.outputs
|
||||
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
|
||||
.forEach { output ->
|
||||
val outputFileName =
|
||||
"${Constants.APP_NAME}-${variant.flavorName}-${variant.buildType.name}-${variant.versionName}.apk"
|
||||
output.outputFileName = outputFileName
|
||||
}
|
||||
}
|
||||
release {
|
||||
isDebuggable = false
|
||||
isMinifyEnabled = true
|
||||
|
@ -72,10 +64,21 @@ android {
|
|||
debug { isDebuggable = true }
|
||||
|
||||
create(Constants.NIGHTLY) {
|
||||
initWith(getByName("release"))
|
||||
initWith(buildTypes.getByName(Constants.RELEASE))
|
||||
defaultConfig.versionName = nightlyVersionName()
|
||||
defaultConfig.versionCode = nightlyVersionCode()
|
||||
}
|
||||
|
||||
applicationVariants.all {
|
||||
val variant = this
|
||||
variant.outputs
|
||||
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
|
||||
.forEach { output ->
|
||||
val outputFileName =
|
||||
"${Constants.APP_NAME}-${variant.flavorName}-${variant.buildType.name}-${variant.versionName}.apk"
|
||||
output.outputFileName = outputFileName
|
||||
}
|
||||
}
|
||||
}
|
||||
flavorDimensions.add(Constants.TYPE)
|
||||
productFlavors {
|
||||
|
|
|
@ -111,7 +111,7 @@ constructor(
|
|||
}
|
||||
|
||||
fun getPackageLabel(packageInfo: PackageInfo): String {
|
||||
return packageInfo.applicationInfo.loadLabel(packageManager).toString()
|
||||
return packageInfo.applicationInfo?.loadLabel(packageManager).toString()
|
||||
}
|
||||
|
||||
private fun getAllInternetCapablePackages(): List<PackageInfo> {
|
||||
|
|
|
@ -2,7 +2,7 @@ object Constants {
|
|||
const val VERSION_NAME = "3.4.8"
|
||||
const val JVM_TARGET = "17"
|
||||
const val VERSION_CODE = 34800
|
||||
const val TARGET_SDK = 34
|
||||
const val TARGET_SDK = 35
|
||||
const val MIN_SDK = 26
|
||||
const val APP_ID = "com.zaneschepke.wireguardautotunnel"
|
||||
const val APP_NAME = "wgtunnel"
|
||||
|
|
|
@ -4,7 +4,7 @@ activityCompose = "1.9.1"
|
|||
amneziawgAndroid = "1.2.0"
|
||||
androidx-junit = "1.2.1"
|
||||
appcompat = "1.7.0"
|
||||
biometricKtx = "1.4.0-alpha01"
|
||||
biometricKtx = "1.2.0-alpha05"
|
||||
coreGoogleShortcuts = "1.1.0"
|
||||
coreKtx = "1.13.1"
|
||||
datastorePreferences = "1.1.1"
|
||||
|
|
|
@ -5,10 +5,10 @@ plugins {
|
|||
|
||||
android {
|
||||
namespace = "com.zaneschepke.logcatter"
|
||||
compileSdk = 34
|
||||
compileSdk = Constants.TARGET_SDK
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 26
|
||||
minSdk = Constants.MIN_SDK
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
consumerProguardFiles("consumer-rules.pro")
|
||||
|
|
Loading…
Reference in New Issue