build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 22
  8. versionName "5.1"
  9. }
  10. flavorDimensions = ["app"]
  11. productFlavors {
  12. aosp {
  13. dimension "app"
  14. }
  15. }
  16. sourceSets {
  17. main {
  18. manifest.srcFile "$launcherCode/AndroidManifest.xml"
  19. res.srcDir "$launcherCode/res"
  20. java.srcDir "$launcherCode/src"
  21. proto {
  22. srcDirs = ["$launcherCode/protos"]
  23. }
  24. }
  25. aosp {
  26. res.srcDir "$launcherCode/WallpaperPicker/res"
  27. java.srcDir "$launcherCode/WallpaperPicker/src"
  28. }
  29. }
  30. compileOptions {
  31. sourceCompatibility JavaVersion.VERSION_1_8
  32. targetCompatibility JavaVersion.VERSION_1_8
  33. }
  34. }
  35. dependencies {
  36. implementation 'com.android.support:support-v13:24.2.0'
  37. }
  38. protobuf {
  39. generateProtoTasks {
  40. all().each { task ->
  41. task.builtins {
  42. javanano {
  43. option "java_package=backup.proto|com.android.launcher3.backup"
  44. }
  45. }
  46. }
  47. }
  48. }