build.gradle 696 B

12345678910111213141516171819202122232425262728293031323334
  1. apply from: configPath
  2. apply from: "$scriptPath/android_library.gradle"
  3. apply from: protobufConfig
  4. android {
  5. namespace 'android.stats.launcher'
  6. sourceSets {
  7. main {
  8. proto {
  9. srcDir "$launcherCode/protos"
  10. srcDir "$launcherCode/proto_overrides/"
  11. }
  12. }
  13. }
  14. compileOptions {
  15. sourceCompatibility JavaVersion.VERSION_1_8
  16. targetCompatibility JavaVersion.VERSION_1_8
  17. }
  18. }
  19. protobuf {
  20. generateProtoTasks {
  21. all().each { task ->
  22. task.builtins {
  23. remove java
  24. java {
  25. option "lite"
  26. }
  27. }
  28. }
  29. }
  30. }