2018-05-21 06:06:59 +00:00
|
|
|
load("//ReactNative:DEFS.bzl", "KEYSTORE_TARGET", "react_native_dep", "react_native_target", "rn_android_binary", "rn_android_library", "rn_android_resource")
|
2016-04-12 20:03:54 +00:00
|
|
|
|
2018-01-22 05:54:01 +00:00
|
|
|
rn_android_binary(
|
2017-02-25 05:40:45 +00:00
|
|
|
name = "app",
|
2018-01-25 17:05:16 +00:00
|
|
|
keystore = KEYSTORE_TARGET,
|
2017-02-25 05:40:45 +00:00
|
|
|
manifest = "src/main/AndroidManifest.xml",
|
|
|
|
deps = [
|
2017-05-06 03:50:47 +00:00
|
|
|
":rntester-lib",
|
2017-02-25 05:40:45 +00:00
|
|
|
],
|
2016-04-12 20:03:54 +00:00
|
|
|
)
|
|
|
|
|
2018-01-22 05:54:01 +00:00
|
|
|
rn_android_library(
|
2017-05-06 03:50:47 +00:00
|
|
|
name = "rntester-lib",
|
2017-02-25 05:40:45 +00:00
|
|
|
srcs = glob(["src/main/java/**/*.java"]),
|
|
|
|
deps = [
|
|
|
|
":res",
|
|
|
|
react_native_dep("third-party/android/support/v4:lib-support-v4"),
|
2017-07-12 14:39:01 +00:00
|
|
|
react_native_dep("third-party/android/support/v7/appcompat-orig:appcompat"),
|
2017-02-25 05:40:45 +00:00
|
|
|
react_native_dep("third-party/java/jsr-305:jsr-305"),
|
|
|
|
react_native_target("java/com/facebook/react:react"),
|
|
|
|
react_native_target("java/com/facebook/react/modules/core:core"),
|
|
|
|
react_native_target("java/com/facebook/react/shell:shell"),
|
|
|
|
react_native_target("jni/prebuilt:android-jsc"),
|
|
|
|
# .so files are prebuilt by Gradle with `./gradlew :ReactAndroid:packageReactNdkLibsForBuck`
|
|
|
|
react_native_target("jni/prebuilt:reactnative-libs"),
|
|
|
|
],
|
2016-04-12 20:03:54 +00:00
|
|
|
)
|
|
|
|
|
2018-01-22 05:54:01 +00:00
|
|
|
rn_android_resource(
|
2017-02-25 05:40:45 +00:00
|
|
|
name = "res",
|
|
|
|
package = "com.facebook.react.uiapp",
|
|
|
|
res = "src/main/res",
|
2016-04-12 20:03:54 +00:00
|
|
|
)
|