apply from: configPath apply from: "$scriptPath/android_app.gradle" apply from: protobufNanoConfig android { namespace 'com.android.launcher3' defaultConfig { versionCode 27 versionName "8.1" } flavorDimensions = ["app"] productFlavors { aosp { dimension "app" } } sourceSets { main { res.srcDirs = ["$launcherCode/res"] java.srcDirs = ["$launcherCode/src", "$launcherCode/src_config"] manifest.srcFile "$launcherCode/AndroidManifest-common.xml" proto { srcDir "$launcherCode/protos/" srcDir "$launcherCode/proto_overrides/" } } aosp { java.srcDirs = ["$launcherCode/src_flags"] manifest.srcFile "$launcherCode/AndroidManifest.xml" } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } final String SUPPORT_LIBS_VERSION = '26.0.0' dependencies { implementation "com.android.support:support-v4:${SUPPORT_LIBS_VERSION}" implementation "com.android.support:recyclerview-v7:${SUPPORT_LIBS_VERSION}" implementation "com.android.support:palette-v7:${SUPPORT_LIBS_VERSION}" implementation "com.android.support:support-dynamic-animation:${SUPPORT_LIBS_VERSION}" } protobuf { generateProtoTasks { all().each { task -> task.builtins { javanano { option "java_package=launcher_log_extension.proto|com.android.launcher3.userevent.nano" option "java_package=launcher_log.proto|com.android.launcher3.userevent.nano" option "java_package=launcher_dump.proto|com.android.launcher3.model.nano" option "enum_style=java" } } } } }