load("@build_bazel_rules_android//android:rules.bzl", "android_binary") load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kt_android_library") load("@rules_jvm_external//:defs.bzl", "artifact") licenses(["notice"]) # Apache 2 android_binary( name = "hello_envoy", custom_package = "io.envoyproxy.envoymobile.helloenvoy", manifest = "AndroidManifest.xml", proguard_specs = ["//library:proguard_rules"], deps = [ "hello_envoy_java_lib", ], ) # We'll use the kotlin rule here to avoid having an explicit dependency on # kotlin runtime. kt_android_library( name = "hello_envoy_java_lib", srcs = [ "EmptyFile.kt", # Needed for the kotlin rule "MainActivity.java", ], custom_package = "io.envoyproxy.envoymobile.helloenvoy", manifest = "AndroidManifest.xml", resource_files = [ "res/layout/activity_main.xml", ], deps = [ "//dist:envoy_mobile_android", "//examples/kotlin/shared:hello_envoy_shared_lib", artifact("androidx.recyclerview:recyclerview"), artifact("androidx.annotation:annotation"), ], )