123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- apply plugin: 'com.android.library'
- android {
- compileSdkVersion 28
- defaultConfig {
- minSdkVersion 16
- targetSdkVersion 28
- versionCode 1
- versionName "1.0"
- //指定room.schemaLocation生成的文件路径
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
- }
- }
- }
- lintOptions {
- checkReleaseBuilds false
- abortOnError false
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- }
- dependencies {
- implementation fileTree(dir: "libs", include: ["*.jar"])
- implementation 'androidx.appcompat:appcompat:1.2.0'
- api project(path: ':mylibrary')
- // Room
- def room_version = "2.2.6"
- api "androidx.room:room-runtime:$room_version"
- annotationProcessor "androidx.room:room-compiler:$room_version"
- // optional - RxJava support for Room
- // api "androidx.room:room-rxjava2:$room_version"
- // optional - Guava support for Room, including Optional and ListenableFuture
- // api "androidx.room:room-guava:$room_version"
- // optional - Test helpers
- // api "androidx.room:room-testing:$room_version"
- }
|