package { // See: http://go/android-license-faq // A large-scale-change added 'default_applicable_licenses' to import // all of the 'license_kinds' from "system_bt_license" // to get the below license kinds: // SPDX-license-identifier-Apache-2.0 default_applicable_licenses: ["system_bt_license"], } android_test_helper_app { name: "BumbleBluetoothTestsApp", defaults: ["framework-bluetooth-tests-defaults"], min_sdk_version: "current", target_sdk_version: "current", libs: [ "android.test.base", "libprotobuf-java-micro", ], static_libs: [ "TestParameterInjector", "androidx.core_core", "androidx.test.espresso.intents", "androidx.test.ext.junit", "androidx.test.ext.truth", "androidx.test.rules", "bluetooth-test-util-lib", "bluetooth_flags_java_lib", "compatibility-device-util-axt", "flag-junit", "grpc-java-lite", "grpc-java-okhttp-client-lite", "mockito-kotlin2", "opencensus-java-contrib-grpc-metrics", "pandora_experimental-grpc-java", "pandora_experimental-proto-java", "truth-java8-extension", ], // Include all test java and kotlin files. srcs: [ "src/**/*.java", "src/**/*.kt", ], } // This empty test host is needed for building required host binary // "bumble_pandora_server" and include it in test zip java_test_host { name: "BumbleBluetoothTests", libs: [ "tradefed", ], data: [ ":BumbleBluetoothTestsApp", "bumble_config.json", ], data_native_bins: [ "bumble_pandora_server", ], required: ["bumble_pandora_server"], test_suites: [ "general-tests", ], } // Runs the Bumble Bluetooth tests on a USB Bluetooth dongle. java_test_host { name: "BumbleBluetoothTestsPhy", test_config: "AndroidPhyTest.xml", libs: [ "tradefed", ], data: [ ":BumbleBluetoothTestsApp", "bumble_config.json", ], data_native_bins: [ "bumble_pandora_server", ], required: ["bumble_pandora_server"], test_suites: [ "general-tests", ], } python_binary_host { name: "bumble_pandora_server", main: "src/bumble_server.py", srcs: [ "src/bumble_server.py", ], version: { py3: { embedded_launcher: false, }, }, libs: [ "bumble-pandora", "bumble_services_experimental-python", "pandora-python", "pandora_experimental-python", ], }