To address the warning below (which will be disallowed): bootable/recovery/updater_sample/tests/Android.mk: warning: SystemUpdaterSampleTests (java:system) should not link to android.test.runner (java:platform) (See b/69899800 or the commit message in [1] for detailed discussions.) [1]: https://android-review.googlesource.com/c/platform/frameworks/ml/+/666428 Test: `mmma -j bootable/recovery` gives no warning. Test: Install and run SystemUpdaterSampleTests on device. Change-Id: I12a1556d572d9f332fcf43dc84cbe8fd1b6df89b
33 lines
1.0 KiB
Makefile
33 lines
1.0 KiB
Makefile
#
|
|
# Copyright (C) 2018 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.
|
|
#
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_PACKAGE_NAME := SystemUpdaterSampleTests
|
|
LOCAL_SDK_VERSION := system_current
|
|
LOCAL_MODULE_TAGS := tests
|
|
LOCAL_JAVA_LIBRARIES := \
|
|
android.test.base.stubs \
|
|
android.test.runner.stubs
|
|
LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
|
|
LOCAL_INSTRUMENTATION_FOR := SystemUpdaterSample
|
|
LOCAL_PROGUARD_ENABLED := disabled
|
|
|
|
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
|
|
include $(BUILD_PACKAGE)
|