2026-05-07 16:00:47 +00:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
namespace = 'com.utsmyanmar.baselib'
|
|
|
|
|
compileSdk = 34
|
|
|
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
|
cmake {
|
|
|
|
|
path = file("src/cpp/CMakeLists.txt")
|
|
|
|
|
version = "3.22.1"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
minSdk = 24
|
|
|
|
|
//noinspection ExpiredTargetSdkVersion
|
|
|
|
|
targetSdk = 30
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
buildFeatures {
|
|
|
|
|
dataBinding = true
|
|
|
|
|
buildConfig = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ndkVersion '25.1.8937393'
|
|
|
|
|
|
|
|
|
|
lint {
|
|
|
|
|
abortOnError false
|
|
|
|
|
checkReleaseBuilds false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
|
|
|
|
|
def lottieVersion = "3.5.0"
|
2026-05-31 13:22:29 +00:00
|
|
|
def roomVersion = "2.8.4"
|
2026-05-07 16:00:47 +00:00
|
|
|
|
|
|
|
|
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 project(path: ':PayLib-release-1.4.58')
|
|
|
|
|
implementation project(path: ':paysdk-lib')
|
|
|
|
|
implementation project(path: ':sunmiui-lib')
|
|
|
|
|
// implementation 'com.sunmi:printerlibrary:1.0.9'
|
|
|
|
|
implementation 'com.sunmi:printerlibrary:1.0.23'
|
2026-05-13 16:08:35 +00:00
|
|
|
implementation 'com.sunmi:printerx:1.0.17'
|
2026-05-07 16:00:47 +00:00
|
|
|
|
|
|
|
|
//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
|
|
|
|
|
implementation libs.hilt.android
|
|
|
|
|
annotationProcessor 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
|
|
|
|
|
annotationProcessor "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'
|
|
|
|
|
}
|