Setting Config
This commit is contained in:
parent
448dfd9835
commit
93fc410e37
@ -6,6 +6,13 @@ android {
|
||||
namespace 'com.example.bdkipoc'
|
||||
compileSdk 35
|
||||
|
||||
// Tambahkan lint options
|
||||
lint {
|
||||
abortOnError false
|
||||
disable 'GoogleAppIndexingWarning'
|
||||
disable 'NonConstantResourceId'
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.example.bdkipoc"
|
||||
minSdk 21
|
||||
@ -22,23 +29,38 @@ android {
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
// Keep Java 11 - lebih modern dari referensi
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_11
|
||||
targetCompatibility JavaVersion.VERSION_11
|
||||
}
|
||||
|
||||
// Tambahkan sourceSets untuk native libs jika diperlukan
|
||||
sourceSets {
|
||||
main {
|
||||
jniLibs.srcDirs = ['libs']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
implementation libs.appcompat
|
||||
implementation libs.material
|
||||
implementation libs.activity
|
||||
implementation libs.constraintlayout
|
||||
implementation libs.cardview
|
||||
implementation 'androidx.recyclerview:recyclerview:1.3.0'
|
||||
|
||||
// Existing PayLib
|
||||
// implementation(name: 'PayLib-release-2.0.17', ext: 'aar')
|
||||
|
||||
// Tambahkan dependencies yang kompatibel dari referensi
|
||||
implementation 'com.sunmi:printerlibrary:1.0.15'
|
||||
implementation 'org.bouncycastle:bcpkix-jdk15on:1.70'
|
||||
|
||||
// Test dependencies
|
||||
testImplementation libs.junit
|
||||
androidTestImplementation libs.ext.junit
|
||||
androidTestImplementation libs.espresso.core
|
||||
|
||||
implementation(name: 'PayLib-release-2.0.17', ext: 'aar')
|
||||
}
|
BIN
app/libs/PayLib-release-2.0.17-sources.jar
Normal file
BIN
app/libs/PayLib-release-2.0.17-sources.jar
Normal file
Binary file not shown.
@ -7,6 +7,18 @@
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
|
||||
<uses-permission android:name="com.sunmi.perm.LED" />
|
||||
<uses-permission android:name="com.sunmi.perm.MSR" />
|
||||
<uses-permission android:name="com.sunmi.perm.ICC" />
|
||||
<uses-permission android:name="com.sunmi.perm.PINPAD" />
|
||||
<uses-permission android:name="com.sunmi.perm.SECURITY" />
|
||||
<uses-permission android:name="com.sunmi.perm.CONTACTLESS_CARD" />
|
||||
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
|
||||
<uses-permission
|
||||
android:name="android.permission.QUERY_ALL_PACKAGES"
|
||||
tools:ignore="QueryAllPackagesPermission" />
|
||||
|
@ -16,10 +16,13 @@ dependencyResolutionManagement {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
repositories {
|
||||
flatDir {
|
||||
dirs 'app/libs'
|
||||
}
|
||||
// Tambahkan repositories Sunmi
|
||||
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots" }
|
||||
maven { url "https://s01.oss.sonatype.org/content/groups/public/" }
|
||||
maven { url "https://jcenter.bintray.com" }
|
||||
maven { url "https://repo.spring.io/libs-milestone" }
|
||||
flatDir {
|
||||
dirs 'app/libs'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user