76 lines
2.1 KiB
Groovy
76 lines
2.1 KiB
Groovy
plugins {
|
|
alias(libs.plugins.android.application)
|
|
}
|
|
|
|
android {
|
|
namespace 'com.test.cardreadtest'
|
|
compileSdk 35
|
|
|
|
signingConfigs {
|
|
release {
|
|
storeFile file('new-keystore.jks')
|
|
storePassword 'MPOS73356xDp'
|
|
keyPassword 'MPOS73356xDp'
|
|
keyAlias 'mulberrypos'
|
|
}
|
|
debug {
|
|
storeFile file('new-keystore.jks')
|
|
storePassword 'MPOS73356xDp'
|
|
keyPassword 'MPOS73356xDp'
|
|
keyAlias 'mulberrypos'
|
|
}
|
|
}
|
|
|
|
|
|
defaultConfig {
|
|
applicationId "com.test.cardreadtest"
|
|
minSdk 26
|
|
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_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
viewBinding {
|
|
enabled = true
|
|
}
|
|
dataBinding {
|
|
enabled = true
|
|
}
|
|
packagingOptions {
|
|
doNotStrip '**/lib/*.so' // 保留所有SO文件
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
|
|
|
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.3.1' // Use the latest version
|
|
implementation 'androidx.viewpager2:viewpager2:1.0.0' // Use the latest version
|
|
implementation 'androidx.databinding:databinding-runtime:8.0.0'
|
|
|
|
implementation 'me.tatarka.bindingcollectionadapter2:bindingcollectionadapter:4.0.0'
|
|
implementation 'me.tatarka.bindingcollectionadapter2:bindingcollectionadapter-recyclerview:4.0.0'
|
|
implementation 'me.tatarka.bindingcollectionadapter2:bindingcollectionadapter-viewpager2:4.0.0'
|
|
|
|
implementation libs.appcompat
|
|
implementation libs.material
|
|
implementation libs.activity
|
|
implementation libs.constraintlayout
|
|
testImplementation libs.junit
|
|
androidTestImplementation libs.ext.junit
|
|
androidTestImplementation libs.espresso.core
|
|
} |