load("//ReactNative:DEFS.bzl", "rn_android_library", "rn_prebuilt_jar")

rn_android_library(
    name = "junit",
    exported_deps = [
        ":hamcrest",
        ":junit-core",
    ],
    visibility = ["//ReactAndroid/..."],
)

rn_prebuilt_jar(
    name = "junit-core",
    binary_jar = ":download-junit",
    visibility = ["//ReactAndroid/..."],
)

remote_file(
    name = "download-junit",
    sha1 = "2973d150c0dc1fefe998f834810d68f278ea58ec",
    url = "mvn:junit:junit:jar:4.12",
)

rn_prebuilt_jar(
    name = "hamcrest",
    binary_jar = ":download-hamcrest",
    visibility = ["//ReactAndroid/..."],
)

remote_file(
    name = "download-hamcrest",
    sha1 = "63a21ebc981131004ad02e0434e799fd7f3a8d5a",
    url = "mvn:org.hamcrest:hamcrest-all:jar:1.3",
)
