Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonnie-Dev committed Mar 31, 2024
2 parents 701a984 + 507d86d commit aac6b4d
Show file tree
Hide file tree
Showing 55 changed files with 78,716 additions and 512 deletions.
27 changes: 27 additions & 0 deletions .idea/androidTestResultsUserPreferences.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions .idea/appInsightsSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 33 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 {
id("naveenapps.plugin.android.app")
id("naveenapps.plugin.kotlin.basic")
Expand All @@ -11,6 +14,30 @@ plugins {
id("jacoco")
}

val credentialFilePath = "${rootDir.absolutePath}/keys/credentials.properties"
println(credentialFilePath)
val credentials = File(credentialFilePath)
if (credentials.exists()) {
println("----- Credentials available -----")
val properties = Properties().apply {
load(FileInputStream(credentials))
}

android {
signingConfigs {
create("release") {
keyAlias = properties.getProperty("KEY_ALIAS")
storePassword = properties.getProperty("KEY_STORE_PASSWORD")
keyPassword = properties.getProperty("KEY_PASSWORD")
storeFile = File("${rootDir.absolutePath}/keys/android_keystore.jks")
println("Credentials release created")
}
}
}
} else {
println("----- Credentials not available -----")
}

android {

namespace = "com.naveenapps.expensemanager"
Expand All @@ -32,12 +59,17 @@ android {
isDebuggable = false
}
release {
isShrinkResources = true
isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
signingConfig = signingConfigs.getByName("debug")

val keyStore = runCatching { signingConfigs.getByName("release") }.getOrNull() ?:
signingConfigs.getByName("debug")

signingConfig = keyStore
}
}

Expand Down
20 changes: 20 additions & 0 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.naveenapps.expensemanager",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 12,
"versionName": "1.0.12",
"outputFile": "app-release.apk"
}
],
"elementType": "File"
}
Loading

0 comments on commit aac6b4d

Please sign in to comment.