1*7181e266SAndroid Build Coastguard Worker// Copyright (C) 2017 The Android Open Source Project 2*7181e266SAndroid Build Coastguard Worker// 3*7181e266SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*7181e266SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*7181e266SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*7181e266SAndroid Build Coastguard Worker// 7*7181e266SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*7181e266SAndroid Build Coastguard Worker// 9*7181e266SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*7181e266SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*7181e266SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*7181e266SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*7181e266SAndroid Build Coastguard Worker// limitations under the License. 14*7181e266SAndroid Build Coastguard Worker// 15*7181e266SAndroid Build Coastguard Worker// 16*7181e266SAndroid Build Coastguard Worker 17*7181e266SAndroid Build Coastguard Worker// ------------------------------- 18*7181e266SAndroid Build Coastguard Worker// Builds the deployable Objenesis TCK for Android 19*7181e266SAndroid Build Coastguard Worker// To build and run: 20*7181e266SAndroid Build Coastguard Worker// make ObjenesisTck 21*7181e266SAndroid Build Coastguard Worker// adb install -r ${ANDROID_PRODUCT_OUT}/data/app/ObjenesisTck/ObjenesisTck.apk 22*7181e266SAndroid Build Coastguard Worker// adb shell am instrument -w org.objenesis.tck.android/.TckInstrumentation 23*7181e266SAndroid Build Coastguard Worker 24*7181e266SAndroid Build Coastguard Workerpackage { 25*7181e266SAndroid Build Coastguard Worker // See: http://go/android-license-faq 26*7181e266SAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 27*7181e266SAndroid Build Coastguard Worker // all of the 'license_kinds' from "external_objenesis_license" 28*7181e266SAndroid Build Coastguard Worker // to get the below license kinds: 29*7181e266SAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 30*7181e266SAndroid Build Coastguard Worker default_applicable_licenses: ["external_objenesis_license"], 31*7181e266SAndroid Build Coastguard Worker} 32*7181e266SAndroid Build Coastguard Worker 33*7181e266SAndroid Build Coastguard Workerandroid_test { 34*7181e266SAndroid Build Coastguard Worker name: "ObjenesisTck", 35*7181e266SAndroid Build Coastguard Worker sdk_version: "current", 36*7181e266SAndroid Build Coastguard Worker certificate: "platform", 37*7181e266SAndroid Build Coastguard Worker static_libs: [ 38*7181e266SAndroid Build Coastguard Worker "objenesis-tck", 39*7181e266SAndroid Build Coastguard Worker "junit", 40*7181e266SAndroid Build Coastguard Worker "androidx.test.rules", 41*7181e266SAndroid Build Coastguard Worker ], 42*7181e266SAndroid Build Coastguard Worker libs: ["android.test.base.stubs"], 43*7181e266SAndroid Build Coastguard Worker srcs: ["src/main/java/**/*.java"], 44*7181e266SAndroid Build Coastguard Worker} 45