左晓为主开发手持机充值管理机
zuoxiao
4 天以前 b8ed2b19e0aaf3c357e2f601d8304acdc525f4f9
generallibrary/build.gradle
@@ -1,17 +1,25 @@
plugins {
    id 'com.android.library'
    id 'org.jetbrains.kotlin.android'
    id 'kotlin-kapt'
}
android {
    namespace 'com.dayu.general'
    compileSdk 34
    ndkVersion '21.0.6113669'
    defaultConfig {
        minSdk 23
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        consumerProguardFiles "consumer-rules.pro"
        // 添加Room数据库的导出schema选项
        javaCompileOptions {
            annotationProcessorOptions {
                arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
            }
        }
    }
    buildTypes {
@@ -46,16 +54,19 @@
    implementation 'androidx.core:core-ktx:1.12.0'
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'com.google.android.material:material:1.11.0'
    implementation "androidx.activity:activity-ktx:1.8.2"
    implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0"
    implementation "androidx.fragment:fragment-ktx:1.6.2"
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.2.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
    compileOnly project(':pickerviewlibrary')
    //数据库
    implementation "androidx.room:room-runtime:2.3.0"
    implementation "androidx.room:room-ktx:2.3.0"
    runtimeOnly("androidx.room:room-common:2.3.0")
    annotationProcessor "androidx.room:room-compiler:2.3.0"
    //数据库 - 更新版本以更好支持协程
    implementation "androidx.room:room-runtime:2.6.1"
    implementation "androidx.room:room-ktx:2.6.1"
    kapt "androidx.room:room-compiler:2.6.1"
    //权限申请
    compileOnly 'com.github.getActivity:XXPermissions:18.5'
@@ -80,7 +91,7 @@
    //建议添加 ViewPager2 的明确依赖
    implementation "androidx.viewpager2:viewpager2:1.1.0-beta01"
    implementation "androidx.fragment:fragment:1.6.2"
    implementation files('../baselibrary/libs/avi.library-2.1.3.aar')
    implementation 'com.tencent.bugly:crashreport:4.1.9.3'
}