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

rn_android_library(
    name = "asm",
    exported_deps = [
        ":asm-analysis",
        ":asm-commons",
        ":asm-core",
        ":asm-tree",
        ":asm-util",
    ],
    visibility = ["//ReactAndroid/..."],
)

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

remote_file(
    name = "download-asm",
    sha1 = "2fd56467a018aafe6ec6a73ccba520be4a7e1565",
    url = "mvn:org.ow2.asm:asm:jar:5.0.1",
)

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

remote_file(
    name = "download-asm-commons",
    sha1 = "7b7147a390a93a14d2edfdcf3f7b0e87a0939c3e",
    url = "mvn:org.ow2.asm:asm-commons:jar:5.0.1",
)

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

remote_file(
    name = "download-asm-tree",
    sha1 = "1b1e6e9d869acd704056d0a4223071a511c619e6",
    url = "mvn:org.ow2.asm:asm-tree:jar:5.0.1",
)

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

remote_file(
    name = "download-asm-util",
    sha1 = "7c8caddfbd0b2d7b844f8fcc75175b9cb9cf4724",
    url = "mvn:org.ow2.asm:asm-util:jar:5.0.1",
)

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

remote_file(
    name = "download-asm-analysis",
    sha1 = "e286fbee48efacb4e7c175f7948d9d8b2ab52352",
    url = "mvn:org.ow2.asm:asm-analysis:jar:5.0.1",
)
