71 lines
2.0 KiB
Groovy
71 lines
2.0 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace 'com.example.bdkipoc'
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
applicationId "com.example.bdkipoc"
|
|
minSdk 21
|
|
targetSdk 34
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
// Exclude duplicate packages to resolve conflicts
|
|
packagingOptions {
|
|
pickFirst '**/libc++_shared.so'
|
|
pickFirst '**/libjsc.so'
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
exclude 'META-INF/LICENSE'
|
|
exclude 'META-INF/LICENSE.txt'
|
|
exclude 'META-INF/NOTICE'
|
|
exclude 'META-INF/NOTICE.txt'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation 'com.google.android.material:material:1.11.0'
|
|
implementation 'androidx.activity:activity:1.8.2'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
|
|
// Sunmi Pay SDK - ONLY use ONE method to avoid duplicates
|
|
implementation(name: 'PayLib-release-2.0.17', ext: 'aar')
|
|
// REMOVE these lines that cause duplicates:
|
|
// implementation files('libs/PayLib-release-2.0.17.aar')
|
|
// implementation fileTree(dir: 'libs', include: ['*.aar'])
|
|
|
|
// Dependencies yang mungkin dibutuhkan SDK
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
implementation 'androidx.annotation:annotation:1.7.1'
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
} |