KBZ-POS/baselib/build.gradle

134 lines
4.0 KiB
Groovy
Raw Permalink Normal View History

2025-11-08 05:50:06 +00:00
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.hilt.android)
alias(libs.plugins.kotlin.kapt)
}
android {
namespace 'com.utsmyanmar.baselib'
compileSdk 34
defaultConfig {
minSdk 24
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
// Room compiler options
javaCompileOptions {
annotationProcessorOptions {
arguments += [
"room.schemaLocation" : "$projectDir/schemas".toString(),
"room.incremental" : "true",
"room.expandProjection": "true"
]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
}
dataBinding {
enabled = true
}
buildFeatures {
buildConfig = true
}
lint {
abortOnError false
checkReleaseBuilds false
}
}
// Configure kapt to handle Room issues on Apple Silicon
kapt {
correctErrorTypes true
arguments {
arg("room.schemaLocation", "$projectDir/schemas")
arg("room.incremental", "true")
arg("room.expandProjection", "true")
}
}
dependencies {
def lottieVersion = "3.5.0"
def roomVersion = "2.4.3"
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
// implementation files('libs/mpulib-1.0.aar')
implementation project(path: ':paylibs')
// implementation project(path: ':mpu-lib')
implementation project(path: ':mpulib')
// implementation project(path: ':ecr')
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.70'
// implementation 'com.sunmi:sunmiui:1.1.27'
// implementation project(path: ':PayLib-release-1.4.58')
implementation project(path: ':paysdk-lib')
implementation project(path: ':nexsdk-lib')
implementation project(path: ':xpay')
// implementation 'com.sunmi:printerlibrary:1.0.9'
implementation 'com.sunmi:printerlibrary:1.0.23'
//RxJava
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation 'io.reactivex.rxjava3:rxjava:3.0.0'
//lottie
implementation "com.airbnb.android:lottie:$lottieVersion"
// Hilt Dependencies
implementation libs.hilt.android
kapt libs.hilt.compiler
// Basic DI support for @Inject annotations
implementation 'javax.inject:javax.inject:1'
// Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation "com.github.akarnokd:rxjava3-retrofit-adapter:3.0.0"
// Okhttp
implementation("com.squareup.okhttp3:logging-interceptor:4.8.1")
implementation("com.squareup.okhttp3:okhttp:4.8.1")
// Room dependencies - Updated version with better Apple Silicon support
implementation "androidx.room:room-runtime:$roomVersion"
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
// Re-enable kapt for Room
kapt "androidx.room:room-compiler:$roomVersion"
implementation "androidx.room:room-rxjava3:$roomVersion"
//navigation component
implementation 'androidx.navigation:navigation-fragment:2.3.2'
implementation 'androidx.navigation:navigation-ui:2.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}