Paul Duffin bedfae9801 Remove repackaged.android.test.mock
The repackaged.android.test.mock uses internal APIs so cannot be built
against the SDK which means that anything that depends on it cannot
guarantee to run if those internal APIs change.

That library was built because the classes in
repackaged.android.test.runner depend on them. However, the
repackaged.android.test.runner library is only used by the
cts-api-signature-test target and it does not use any android.test.mock
classes directly, or indirectly. Therefore, this simply excludes any
classes from repackaged.android.test.runner that depend on
android.test.mock classes so that repackaged.android.test.mock can be
removed altogether.

Bug: 69899800
Bug: 30188076
Test: make checkbuild
Change-Id: If4528e6a4ec2b08faffd6d413672c5004d85e0a9
2018-02-26 11:57:26 +00:00

79 lines
2.3 KiB
Plaintext

//
// Copyright (C) 2008 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Build the android.test.runner library
// =====================================
java_library {
name: "android.test.runner",
// Needs to be consistent with the repackaged version of this make target.
java_version: "1.8",
srcs: ["src/**/*.java"],
errorprone: {
javacflags: ["-Xep:DepAnn:ERROR"],
},
sdk_version: "current",
libs: [
"android.test.base",
"android.test.mock",
],
}
// Build the android.test.runner-minus-junit library
// =================================================
// This is only intended for inclusion in the legacy-android-test static
// library and must not be used elsewhere.
java_library {
name: "android.test.runner-minus-junit",
srcs: ["src/android/**/*.java"],
sdk_version: "current",
libs: [
"android.test.base",
"android.test.mock",
"junit",
],
}
// Build the repackaged.android.test.runner library
// ================================================
java_library_static {
name: "repackaged.android.test.runner",
srcs: ["src/**/*.java"],
exclude_srcs: [
"src/android/test/ActivityUnitTestCase.java",
"src/android/test/ApplicationTestCase.java",
"src/android/test/IsolatedContext.java",
"src/android/test/ProviderTestCase.java",
"src/android/test/ProviderTestCase2.java",
"src/android/test/RenamingDelegatingContext.java",
"src/android/test/ServiceTestCase.java",
],
sdk_version: "current",
libs: [
"android.test.base",
],
jarjar_rules: "jarjar-rules.txt",
// Pin java_version until jarjar is certified to support later versions. http://b/72703434
java_version: "1.8",
}