build.gradle 701 B

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