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

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

rn_prebuilt_jar(
    name = "mockito-core",
    binary_jar = ":mockito-binary-jar",
    visibility = ["//ReactAndroid/..."],
)

remote_file(
    name = "mockito-binary-jar",
    sha1 = "e8546f5bef4e061d8dd73895b4e8f40e3fe6effe",
    url = "mvn:org.mockito:mockito-core:jar:1.10.19",
)

rn_prebuilt_jar(
    name = "objenesis",
    binary_jar = ":objenesis-binary-jar",
    visibility = ["//ReactAndroid/..."],
)

remote_file(
    name = "objenesis-binary-jar",
    sha1 = "87c0ea803b69252868d09308b4618f766f135a96",
    url = "mvn:org.objenesis:objenesis:jar:2.1",
)
