mirror of
https://github.com/openMF/mifos-mobile.git
synced 2026-02-06 11:26:51 +00:00
154 lines
5.1 KiB
Plaintext
154 lines
5.1 KiB
Plaintext
/*
|
|
* Copyright 2024 Mifos Initiative
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*
|
|
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
|
|
*/
|
|
import org.mifos.mobile.MifosBuildType
|
|
import org.mifos.mobile.dynamicVersion
|
|
|
|
plugins {
|
|
alias(libs.plugins.mifos.android.application)
|
|
alias(libs.plugins.mifos.android.application.compose)
|
|
alias(libs.plugins.mifos.android.application.flavors)
|
|
id("com.google.android.gms.oss-licenses-plugin")
|
|
id("com.google.devtools.ksp")
|
|
}
|
|
|
|
val packageNameSpace: String = libs.versions.androidPackageName.get()
|
|
|
|
android {
|
|
namespace = "cmp.android.app"
|
|
|
|
defaultConfig {
|
|
applicationId = packageNameSpace
|
|
versionName = System.getenv("VERSION") ?: project.dynamicVersion
|
|
versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
|
|
vectorDrawables.useSupportLibrary = true
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
signingConfigs {
|
|
create("release") {
|
|
storeFile = file(System.getenv("KEYSTORE_PATH") ?: "../keystores/release_keystore.keystore")
|
|
storePassword = System.getenv("KEYSTORE_PASSWORD") ?: "mifos1234"
|
|
keyAlias = System.getenv("KEYSTORE_ALIAS") ?: "mifos-mobile"
|
|
keyPassword = System.getenv("KEYSTORE_ALIAS_PASSWORD") ?: "mifos1234"
|
|
enableV1Signing = true
|
|
enableV2Signing = true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
applicationIdSuffix = MifosBuildType.DEBUG.applicationIdSuffix
|
|
}
|
|
|
|
// Disabling proguard for now until
|
|
// https://github.com/openMF/mobile-wallet/issues/1815 this issue is resolved
|
|
release {
|
|
isMinifyEnabled = false
|
|
applicationIdSuffix = MifosBuildType.RELEASE.applicationIdSuffix
|
|
isShrinkResources = false
|
|
isDebuggable = false
|
|
isJniDebuggable = false
|
|
signingConfig = signingConfigs.getByName("release")
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
dataBinding = true
|
|
buildConfig = true
|
|
}
|
|
|
|
packaging {
|
|
resources {
|
|
excludes.add("/META-INF/{AL2.0,LGPL2.1}")
|
|
}
|
|
}
|
|
|
|
testOptions {
|
|
unitTests {
|
|
isIncludeAndroidResources = true
|
|
}
|
|
}
|
|
}
|
|
dependencyGuard {
|
|
configuration("demoDebugRuntimeClasspath")
|
|
configuration("demoReleaseRuntimeClasspath")
|
|
configuration("prodDebugRuntimeClasspath")
|
|
configuration("prodReleaseRuntimeClasspath")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.cmpShared)
|
|
|
|
implementation(projects.core.logs)
|
|
implementation(projects.core.common)
|
|
implementation(projects.core.model)
|
|
implementation(projects.core.data)
|
|
implementation(projects.core.database)
|
|
implementation(projects.core.ui)
|
|
implementation(projects.core.designsystem)
|
|
|
|
// implementation(projects.feature.loan)
|
|
// implementation(projects.feature.beneficiary)
|
|
// implementation(projects.feature.guarantor)
|
|
// implementation(projects.feature.savings)
|
|
// implementation(projects.feature.qr)
|
|
// implementation(projects.feature.transferProcess)
|
|
// implementation(projects.feature.account)
|
|
// implementation(projects.feature.clientCharge)
|
|
// implementation(projects.feature.recentTransaction)
|
|
// implementation(projects.feature.thirdPartyTransfer)
|
|
// implementation(projects.feature.help)
|
|
// implementation(projects.feature.notification)
|
|
// implementation(projects.feature.location)
|
|
// implementation(projects.feature.about)
|
|
// implementation(projects.feature.settings)
|
|
// implementation(projects.feature.updatePassword)
|
|
// implementation(projects.feature.home)
|
|
// implementation(projects.feature.auth)
|
|
// implementation(projects.feature.userProfile)
|
|
|
|
// implementation(projects.libs.mifosPasscode)
|
|
|
|
// Compose
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(libs.androidx.activity.ktx)
|
|
implementation(libs.androidx.core.splashscreen)
|
|
|
|
implementation(libs.androidx.profileinstaller)
|
|
implementation(libs.androidx.tracing.ktx)
|
|
|
|
implementation(libs.koin.core)
|
|
implementation(libs.koin.android)
|
|
implementation(libs.koin.compose)
|
|
implementation(libs.koin.compose.viewmodel)
|
|
|
|
runtimeOnly(libs.androidx.compose.runtime)
|
|
debugImplementation(libs.androidx.compose.ui.tooling)
|
|
|
|
testImplementation(libs.junit)
|
|
testImplementation(libs.androidx.compose.ui.test)
|
|
|
|
androidTestImplementation(libs.androidx.compose.ui.test)
|
|
androidTestImplementation(libs.androidx.test.ext.junit)
|
|
|
|
testImplementation(kotlin("test"))
|
|
testImplementation(libs.koin.test)
|
|
testImplementation(libs.koin.test.junit4)
|
|
}
|
|
|
|
dependencyGuard {
|
|
configuration("prodReleaseRuntimeClasspath") {
|
|
modules = true
|
|
tree = true
|
|
}
|
|
} |