blob: f9b0368523ec0cc1c52c977d8f62b0541452023e [file] [log] [blame]
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@rules_android//android:rules.bzl", "android_binary")
# An app that consumes android-kt deps
android_binary(
name = "app",
custom_package = "examples.android.app",
incremental_dexing = 0,
manifest = "src/main/AndroidManifest.xml",
manifest_values = {
"lib_name": "lib",
},
multidex = "native",
deps = [
"//libKtAndroid:my_kt",
],
)
# An app that consumes jvm-kt libs
android_binary(
name = "app2",
custom_package = "examples.android.app2",
incremental_dexing = 0,
manifest = "src/main/AndroidManifest.xml",
manifest_values = {
"lib_name": "lib2",
},
multidex = "native",
deps = [
"//libAndroid:my_android",
],
)
# An app that consumes android-kt deps, and does incremental dexing.
android_binary(
name = "app3",
custom_package = "examples.android.app3",
incremental_dexing = 1,
manifest = "src/main/AndroidManifest.xml",
manifest_values = {
"lib_name": "lib",
},
multidex = "native",
deps = [
"//libKtAndroid:my_kt",
],
)
build_test(
name = "force_build_apks_test",
targets = [
":app.apk",
":app2.apk",
":app3.apk",
],
)