支援
- JAVA JDK 11
- Android Gradle Plugin 7.0.4(Android Studio Arctic Fox (2023.3.1) Patch 4)
- minSdkVersion 21 (Android 5.0)
- targetSdkVersion 33 (Android 13.0)
安裝
- ECPay Payment SDK公開於Maven Central來源庫。請於app/build.gradle檔案加上dataBinding設定
android {
dataBinding {
enabled = true
}
}
- app/build.gradle 檔案新增dependencies
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'com.google.zxing:core:3.3.0'
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
// ECPay Payment SDK
implementation 'tw.com.ecpay:ECPayPaymentGatewayKit:1.6.0'
}
- project/build.gradle 檔案加入Maven Central
buildscript {
repositories {
google()
mavenCentral()
}
}