Skip to content

Commit

Permalink
fix: try apk with updated gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismaillat committed Oct 18, 2024
1 parent 5c7697f commit 28d6059
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import java.io.FileInputStream
import java.util.Properties

plugins {
alias(libs.plugins.androidApplication)
alias(libs.plugins.jetbrainsKotlinAndroid)
Expand All @@ -11,6 +14,15 @@ android {
namespace = "com.github.lookupgroup27.lookup"
compileSdk = 34

// Load the API key from local.properties
val localProperties = Properties()
val localPropertiesFile = rootProject.file("local.properties")
if (localPropertiesFile.exists()) {
localProperties.load(FileInputStream(localPropertiesFile))
}

//val mapsApiKey: String = localProperties.getProperty("MAPS_API_KEY") ?: ""

defaultConfig {
applicationId = "com.github.lookupgroup27.lookup"
minSdk = 29
Expand All @@ -24,13 +36,24 @@ android {
}
}

signingConfigs {
create("release") {
// Use environment variables or properties for signing config
storeFile = rootProject.file("upload-keystore.jks")
storePassword = localProperties.getProperty("RELEASE_STORE_PASSWORD")
keyAlias = localProperties.getProperty("RELEASE_KEY_ALIAS")
keyPassword = localProperties.getProperty("RELEASE_KEY_PASSWORD")
}
}

buildTypes {
release {
isMinifyEnabled = false
isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
signingConfig = signingConfigs.getByName("release")
}

debug {
Expand Down

0 comments on commit 28d6059

Please sign in to comment.