build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. apply from: configPath
  2. apply from: "$scriptPath/android_app.gradle"
  3. apply from: protobufNanoConfig
  4. android {
  5. namespace 'com.android.launcher3'
  6. defaultConfig {
  7. versionCode 25
  8. versionName "7.1"
  9. }
  10. flavorDimensions = ["app"]
  11. productFlavors {
  12. aosp {
  13. dimension "app"
  14. }
  15. }
  16. sourceSets {
  17. main {
  18. res.srcDirs = ["$launcherCode/res"]
  19. java.srcDirs = ["$launcherCode/src", "$launcherCode/src_config"]
  20. manifest.srcFile "$launcherCode/AndroidManifest-common.xml"
  21. proto.srcDirs "$launcherCode/protos/"
  22. }
  23. aosp {
  24. manifest.srcFile "$launcherCode/AndroidManifest.xml"
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. }
  32. dependencies {
  33. implementation 'com.android.support:support-v4:23.1.1'
  34. implementation 'com.android.support:recyclerview-v7:23.1.1'
  35. implementation 'com.android.support:palette-v7:23.2.0'
  36. }
  37. protobuf {
  38. generateProtoTasks {
  39. all().each { task ->
  40. task.builtins {
  41. javanano {
  42. option "java_package=launcher_log.proto|com.android.launcher3.userevent.nano"
  43. }
  44. }
  45. }
  46. }
  47. }