apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' android { compileSdkVersion 30 buildToolsVersion "30.0.2" defaultConfig { applicationId "com.zww.sample" minSdkVersion 21 targetSdkVersion 30 versionCode 139 versionName "$libVersion" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } debug { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } 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.1' implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.1' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' //权限 implementation 'com.yanzhenjie:permission:2.0.3' implementation 'androidx.recyclerview:recyclerview:1.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 'com.zwy.nsfw:nsfw_initializer:1.3.9' // implementation 'com.zwy.nsfw:nsfw:1.3.9' implementation 'org.tensorflow:tensorflow-lite:2.1.0' implementation 'org.tensorflow:tensorflow-lite-gpu:2.1.0' // implementation project(path: ':nsfw_initializer') implementation project(path: ':nsfw') // implementation 'io.github.devzwy:nsfw:1.5.0' }