build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 24
  8. versionName "7.0"
  9. }
  10. sourceSets {
  11. main {
  12. res.srcDirs = ["$launcherCode/res", "$launcherCode/WallpaperPicker/res"]
  13. java.srcDirs = ["$launcherCode/src", "$launcherCode/WallpaperPicker/src"]
  14. manifest.srcFile "$launcherCode/AndroidManifest.xml"
  15. proto.srcDirs "$launcherCode/protos/"
  16. }
  17. }
  18. compileOptions {
  19. sourceCompatibility JavaVersion.VERSION_1_8
  20. targetCompatibility JavaVersion.VERSION_1_8
  21. }
  22. }
  23. dependencies {
  24. implementation 'com.android.support:support-v4:23.1.1'
  25. implementation 'com.android.support:recyclerview-v7:23.1.1'
  26. }
  27. protobuf {
  28. generateProtoTasks {
  29. all().each { task ->
  30. task.builtins {
  31. javanano {
  32. option "java_package=backup.proto|com.android.launcher3.backup.nano"
  33. }
  34. }
  35. }
  36. }
  37. }