Açıklama Yok

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # To learn about Buck see [Docs](https://buckbuild.com/).
  2. # To run your application with Buck:
  3. # - install Buck
  4. # - `npm start` - to start the packager
  5. # - `cd android`
  6. # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
  7. # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
  8. # - `buck install -r android/app` - compile, install and run application
  9. #
  10. load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
  11. lib_deps = []
  12. create_aar_targets(glob(["libs/*.aar"]))
  13. create_jar_targets(glob(["libs/*.jar"]))
  14. android_library(
  15. name = "all-libs",
  16. exported_deps = lib_deps,
  17. )
  18. android_library(
  19. name = "app-code",
  20. srcs = glob([
  21. "src/main/java/**/*.java",
  22. ]),
  23. deps = [
  24. ":all-libs",
  25. ":build_config",
  26. ":res",
  27. ],
  28. )
  29. android_build_config(
  30. name = "build_config",
  31. package = "com.test",
  32. )
  33. android_resource(
  34. name = "res",
  35. package = "com.test",
  36. res = "src/main/res",
  37. )
  38. android_binary(
  39. name = "app",
  40. keystore = "//android/keystores:debug",
  41. manifest = "src/main/AndroidManifest.xml",
  42. package_type = "debug",
  43. deps = [
  44. ":app-code",
  45. ],
  46. )