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

rn_android_library(
    name = "textlayoutbuilder",
    exported_deps = [
        ":staticlayoutproxy",
        ":textlayoutbuilder-base",
    ],
    visibility = ["//ReactAndroid/..."],
)

rn_android_prebuilt_aar(
    name = "textlayoutbuilder-base",
    aar = ":textlayoutbuilder-base-aar",
    visibility = ["//ReactAndroid/..."],
)

remote_file(
    name = "textlayoutbuilder-base-aar",
    sha1 = "29bc8e5a1e2b33944b88277652ee83092ae1dbc0",
    url = "mvn:com.facebook.fbui.textlayoutbuilder:textlayoutbuilder:aar:1.0.0",
)

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

remote_file(
    name = "staticlayoutproxy-jar",
    sha1 = "f162442a19fff13995fbd51ba414d9ee05579080",
    url = "mvn:com.facebook.fbui.textlayoutbuilder:staticlayout-proxy:jar:1.0",
)
