103 lines
3.0 KiB
Groovy
103 lines
3.0 KiB
Groovy
plugins {
|
|
alias libs.plugins.android.library
|
|
alias libs.plugins.hilt.android
|
|
alias libs.plugins.kotlin.android
|
|
alias libs.plugins.kotlin.compose
|
|
alias libs.plugins.kotlin.parcelize
|
|
alias libs.plugins.ksp
|
|
}
|
|
|
|
android {
|
|
namespace 'com.navi.bbps'
|
|
compileSdk 35
|
|
|
|
defaultConfig {
|
|
minSdk 24
|
|
targetSdk 34
|
|
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose true
|
|
dataBinding true
|
|
viewBinding true
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
benchmark {
|
|
initWith release
|
|
matchingFallbacks = ['release']
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
freeCompilerArgs += ["-Xstring-concat=inline"]
|
|
jvmTarget = '17'
|
|
}
|
|
lint {
|
|
disable 'NullSafeMutableLiveData'
|
|
}
|
|
flavorDimensions = ["app"]
|
|
productFlavors {
|
|
qa {
|
|
isDefault true
|
|
dimension "app"
|
|
buildConfigField 'String', 'OAUTH_WEB_CLIENT_ID', formatString('679085041776-n6juhqpcr8221cifb7051ipkk2se4tpt.apps.googleusercontent.com')
|
|
}
|
|
prod {
|
|
dimension "app"
|
|
if (project.hasProperty('OAUTH_WEB_CLIENT_ID')) {
|
|
buildConfigField 'String', 'OAUTH_WEB_CLIENT_ID', formatString("$OAUTH_WEB_CLIENT_ID")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
ksp {
|
|
arg("compose-destinations.codeGenPackageName", "com.navi.bbps.compose")
|
|
}
|
|
|
|
static def formatString(String value) {
|
|
return '"' + value + '"'
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(":navi-payments-shared")
|
|
implementation project(":navi-payment")
|
|
implementation project(":navi-rr")
|
|
implementation libs.accompanist.systemuicontroller
|
|
implementation libs.android.material
|
|
implementation libs.android.gms.playServicesAuth
|
|
implementation libs.androidx.appcompat
|
|
implementation libs.androidx.compose.material3
|
|
implementation libs.androidx.constraintlayout
|
|
implementation libs.androidx.core.google.shortcuts
|
|
implementation libs.androidx.core.ktx
|
|
implementation libs.androidx.lifecycle.viewmodel.ktx
|
|
implementation libs.androidx.paging.compose
|
|
implementation libs.androidx.room.paging
|
|
implementation libs.dagger.hiltAndroid
|
|
implementation libs.mvel2
|
|
implementation libs.raamcosta.composeDestinations.bottomSheet
|
|
implementation libs.raamcosta.composeDestinations.core
|
|
|
|
androidTestImplementation libs.androidx.test.junit
|
|
|
|
testImplementation libs.junit
|
|
testImplementation libs.kotlinx.coroutines.test
|
|
testImplementation libs.mockk
|
|
|
|
ksp libs.androidx.hilt.compiler
|
|
ksp libs.androidx.room.compiler
|
|
ksp libs.dagger.hiltCompiler
|
|
ksp libs.raamcosta.composeDestinations.ksp
|
|
}
|