apply from: configPath apply from: "$scriptPath/android_app.gradle" apply from: protobufNanoConfig android { namespace 'com.android.launcher3' defaultConfig { versionCode 25 versionName "7.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.srcDirs "$launcherCode/protos/" } aosp { manifest.srcFile "$launcherCode/AndroidManifest.xml" } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { implementation 'com.android.support:support-v4:23.1.1' implementation 'com.android.support:recyclerview-v7:23.1.1' implementation 'com.android.support:palette-v7:23.2.0' } protobuf { generateProtoTasks { all().each { task -> task.builtins { javanano { option "java_package=launcher_log.proto|com.android.launcher3.userevent.nano" } } } } }