apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' apply plugin: 'org.greenrobot.greendao' android { compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.zwy.demo" minSdkVersion 19 targetSdkVersion 29 versionCode 1 versionName "1.3.2" multiDexEnabled true testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } buildFeatures{ dataBinding = true } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } greendao { schemaVersion 1 daoPackage 'com.zwy.demo.db' targetGenDir 'src/main/java' } aaptOptions { noCompress "tflite" } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.3.0' implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.recyclerview:recyclerview:1.1.0' implementation 'androidx.cardview:cardview:1.0.0' testImplementation 'junit:junit:4.13' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation "org.koin:koin-android:2.1.5" implementation "org.koin:koin-androidx-viewmodel:2.1.5" implementation "org.koin:koin-androidx-ext:2.1.5" implementation "com.squareup.okhttp3:logging-interceptor:4.7.2" //retrofit implementation "io.reactivex.rxjava2:rxandroid:2.1.1" implementation 'com.squareup.retrofit2:retrofit:2.8.2' implementation 'com.squareup.retrofit2:converter-gson:2.7.2' implementation 'com.squareup.retrofit2:adapter-rxjava2:2.7.2' //沉浸式状态栏 implementation 'com.gyf.immersionbar:immersionbar:3.0.0' //适配器快速实现 implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4' //图片加载框架 implementation 'com.github.bumptech.glide:glide:4.11.0' kapt 'com.github.bumptech.glide:compiler:4.11.0' implementation 'org.greenrobot:greendao:3.3.0' implementation 'org.greenrobot:greendao-generator:3.3.0' implementation 'com.android.support:multidex:1.0.3' implementation "org.jetbrains.anko:anko:0.10.5" //NSFW鉴黄库 implementation 'com.github.devzwy:open_nsfw_android:1.3.2' // implementation project(path: ':OpenNSFW') implementation 'pub.devrel:easypermissions:3.0.0' implementation 'com.github.LuckSiege.PictureSelector:picture_library:2.2.5' }