|  |  | 
 |  |  |  | 
 |  |  |         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | 
 |  |  |         consumerProguardFiles "consumer-rules.pro" | 
 |  |  |          | 
 |  |  |         // 添加Room数据库的导出schema选项 | 
 |  |  |         javaCompileOptions { | 
 |  |  |             annotationProcessorOptions { | 
 |  |  |                 arguments += ["room.schemaLocation": "$projectDir/schemas".toString()] | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     buildTypes { | 
 |  |  | 
 |  |  |  | 
 |  |  |     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") | 
 |  |  |     kapt "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' | 
 |  |  | 
 |  |  |         exclude group: 'com.google.code.gson'; | 
 |  |  |     } | 
 |  |  |     implementation 'com.squareup.retrofit2:adapter-rxjava3:2.9.0' | 
 |  |  |     implementation 'io.reactivex.rxjava3:rxjava:3.1.5' | 
 |  |  |     implementation 'io.reactivex.rxjava3:rxandroid:3.0.0' | 
 |  |  |     implementation 'com.squareup.okhttp3:logging-interceptor:4.11.0' | 
 |  |  |     compileOnly 'com.google.code.gson:gson:2.10.1' |