1. Convert ApiDemos/Android.mk to ApiDemos/Android.bp; 2. Convert ApiDemos/tests/Android.mk to ApiDemos/tests/Android.bp Bug: 186778349 Test: compared the apk files built by Make and Soong Test: TreeHugger Change-Id: I7b72a998b56804e647d0908be5a118f9bf2cd896 Merged-In: I7b72a998b56804e647d0908be5a118f9bf2cd896
22 lines
679 B
Plaintext
22 lines
679 B
Plaintext
package {
|
|
// See: http://go/android-license-faq
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
android_test {
|
|
name: "ApiDemosTests",
|
|
// We only want this apk build for tests.
|
|
libs: [
|
|
"android.test.runner.stubs",
|
|
"android.test.base.stubs",
|
|
],
|
|
static_libs: ["junit"],
|
|
// Include all test java files.
|
|
srcs: ["src/**/*.java"],
|
|
// Notice that we don't have to include the src files of ApiDemos because, by
|
|
// running the tests using an instrumentation targeting ApiDemos, we
|
|
// automatically get all of its classes loaded into our environment.
|
|
instrumentation_for: "ApiDemos",
|
|
sdk_version: "current",
|
|
}
|