1 /** 2 * This is an adaptation of the build.gradle found in external/android_onboarding. 3 * There are certain classes that must be modified in order to work with the sysui studio build. 4 */ <lambda>null5plugins { 6 id(libs.plugins.android.library.get().pluginId) 7 id(libs.plugins.kotlin.android.get().pluginId) 8 id(libs.plugins.kotlin.kapt.get().pluginId) 9 id(libs.plugins.hilt.get().pluginId) 10 } 11 12 val top = extra["ANDROID_TOP"].toString() 13 val moduleDir = "$top/external/android_onboarding/src/com/android/onboarding/flags" 14 <lambda>null15android { 16 namespace = "com.android.onboarding.flags" 17 defaultConfig { 18 vectorDrawables.useSupportLibrary = true 19 } 20 21 buildTypes { 22 release { 23 isMinifyEnabled = false 24 } 25 } 26 27 sourceSets { 28 named("main") { 29 java.srcDirs("src", symlinkedSources(moduleDir) { 30 include("OnboardingFlagsHiltModule.kt") 31 }) 32 } 33 } 34 } 35 36 dependencies { 37 api(project(":android_onboarding.flags")) 38 api(libs.dagger) 39 api(libs.dagger.android) 40 kapt(libs.dagger.compiler) 41 kapt(libs.dagger.android.processor) 42 43 api(libs.hilt.android) 44 kapt(libs.hilt.android.compiler) 45 }