f8d22dec87
BUG: None Test: I solemnly swear I tested this conflict resolution. Change-Id: Ide3c4e229b47e4242cacafc04b70d8b392712cc8
111 lines
3.1 KiB
Plaintext
111 lines
3.1 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.mock library
|
|
// ===================================
|
|
java_library {
|
|
name: "android.test.mock",
|
|
installable: true,
|
|
|
|
java_version: "1.8",
|
|
srcs: ["src/**/*.java"],
|
|
|
|
no_framework_libs: true,
|
|
libs: [
|
|
"framework",
|
|
],
|
|
}
|
|
|
|
doc_defaults {
|
|
name:"android.test.mock.docs-defaults",
|
|
srcs: ["src/android/test/mock/**/*.java"],
|
|
|
|
// Includes the main framework source to ensure that doclava has access to the
|
|
// visibility information for the base classes of the mock classes. Without it
|
|
// otherwise hidden methods could be visible.
|
|
srcs_lib: "framework",
|
|
srcs_lib_whitelist_dirs: ["core/java"],
|
|
srcs_lib_whitelist_pkgs: ["android"],
|
|
libs: [
|
|
"core-oj",
|
|
"core-libart",
|
|
"framework",
|
|
"conscrypt",
|
|
"okhttp",
|
|
"bouncycastle",
|
|
"ext",
|
|
],
|
|
local_sourcepaths: ["src/android/test/mock"],
|
|
custom_template: "droiddoc-templates-sdk",
|
|
installable: false,
|
|
}
|
|
|
|
android_test_mock_docs_args =
|
|
"-hide 110 -hide 111 -hide 113 -hide 121 -hide 125 -hide 126 -hide 127 -hide 128 " +
|
|
"-stubpackages android.test.mock " +
|
|
"-nodocs "
|
|
|
|
droiddoc {
|
|
name: "android.test.mock.docs",
|
|
defaults: ["android.test.mock.docs-defaults"],
|
|
|
|
api_tag_name: "ANDROID_TEST_MOCK",
|
|
api_filename: "api/android-test-mock-current.txt",
|
|
removed_api_filename: "api/android-test-mock-removed.txt",
|
|
|
|
args: android_test_mock_docs_args,
|
|
}
|
|
|
|
droiddoc {
|
|
name: "android.test.mock.docs-system",
|
|
defaults: ["android.test.mock.docs-defaults"],
|
|
|
|
api_tag_name: "ANDROID_TEST_MOCK_SYSTEM",
|
|
api_filename: "api/android-test-mock-system-current.txt",
|
|
removed_api_filename: "api/android-test-mock-system-removed.txt",
|
|
|
|
args: android_test_mock_docs_args +
|
|
"-showAnnotation android.annotation.SystemApi ",
|
|
}
|
|
|
|
java_library_static {
|
|
name: "android.test.mock.stubs",
|
|
srcs: [":android.test.mock.docs"],
|
|
sdk_version: "current",
|
|
product_variables: {
|
|
unbundled_build: {
|
|
// Unbundled apps will use the prebuilt one
|
|
// prebuilts/sdk/current
|
|
enabled: false,
|
|
},
|
|
},
|
|
compile_dex: true,
|
|
}
|
|
|
|
java_library_static {
|
|
name: "android.test.mock.stubs-system",
|
|
srcs: [":android.test.mock.docs-system"],
|
|
sdk_version: "system_current",
|
|
product_variables: {
|
|
unbundled_build: {
|
|
// Unbundled apps will use the prebuilt one
|
|
// prebuilts/sdk/system_current
|
|
enabled: false,
|
|
},
|
|
},
|
|
compile_dex: true,
|
|
}
|