1 /** 2 * This is an adaptation of the build.gradle found in external/setupdesign. There are certain 3 * classes that must be modified in order to work with the sysui studio build. 4 */ <lambda>null5plugins { 6 id("com.android.library") 7 id("org.jetbrains.kotlin.android") 8 } 9 10 val top = extra["ANDROID_TOP"].toString() 11 <lambda>null12android { 13 namespace = "com.google.android.setupdesign" 14 defaultConfig { 15 vectorDrawables.useSupportLibrary = true 16 } 17 18 buildTypes { 19 release { 20 isMinifyEnabled = false 21 proguardFiles(getDefaultProguardFile("proguard-android.txt"), "$top/external/setupdesign/proguard.flags") 22 } 23 } 24 25 sourceSets { 26 sourceSets.getByName("main") { 27 manifest.srcFile("$top/external/setupdesign/main/AndroidManifest.xml") 28 java.srcDirs(listOf("src", "$top/external/setupdesign/main/src")) 29 res.srcDirs(listOf("$top/external/setupdesign/main/res")) 30 } 31 } 32 kotlinOptions { 33 jvmTarget = "17" 34 } 35 } 36 37 dependencies { 38 api(libs.androidx.annotation) 39 api(libs.androidx.appcompat) 40 api(libs.androidx.core) 41 api(libs.androidx.legacy.support.core.ui) 42 api(libs.androidx.recyclerview) 43 api(libs.androidx.window) 44 api(libs.com.google.android.material) 45 api(libs.errorprone.annotations) 46 api(project(":setupcompat")) 47 api(project(":setupdesign-strings")) 48 implementation("androidx.core:core-ktx:+") 49 }