1*c73d2a95SAndroid Build Coastguard Worker// Copyright (C) 2008 The Android Open Source Project 2*c73d2a95SAndroid Build Coastguard Worker// 3*c73d2a95SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*c73d2a95SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*c73d2a95SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*c73d2a95SAndroid Build Coastguard Worker// 7*c73d2a95SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*c73d2a95SAndroid Build Coastguard Worker// 9*c73d2a95SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*c73d2a95SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*c73d2a95SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*c73d2a95SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*c73d2a95SAndroid Build Coastguard Worker// limitations under the License. 14*c73d2a95SAndroid Build Coastguard Worker 15*c73d2a95SAndroid Build Coastguard Workerpackage { 16*c73d2a95SAndroid Build Coastguard Worker // See: http://go/android-license-faq 17*c73d2a95SAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 18*c73d2a95SAndroid Build Coastguard Worker // all of the 'license_kinds' from "device_sample_license" 19*c73d2a95SAndroid Build Coastguard Worker // to get the below license kinds: 20*c73d2a95SAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 21*c73d2a95SAndroid Build Coastguard Worker default_applicable_licenses: ["device_sample_license"], 22*c73d2a95SAndroid Build Coastguard Worker} 23*c73d2a95SAndroid Build Coastguard Worker 24*c73d2a95SAndroid Build Coastguard Workerjavadoc { 25*c73d2a95SAndroid Build Coastguard Worker name: "platform_library-docs", 26*c73d2a95SAndroid Build Coastguard Worker srcs: [ 27*c73d2a95SAndroid Build Coastguard Worker "java/**/*.java", 28*c73d2a95SAndroid Build Coastguard Worker ], 29*c73d2a95SAndroid Build Coastguard Worker java_version: "1.8", 30*c73d2a95SAndroid Build Coastguard Worker} 31*c73d2a95SAndroid Build Coastguard Worker 32*c73d2a95SAndroid Build Coastguard Workerjava_sdk_library { 33*c73d2a95SAndroid Build Coastguard Worker name: "com.example.android.platform_library", 34*c73d2a95SAndroid Build Coastguard Worker 35*c73d2a95SAndroid Build Coastguard Worker // Users of this sample will likely want to leave out this flag and 36*c73d2a95SAndroid Build Coastguard Worker // instead follow the instructions here 37*c73d2a95SAndroid Build Coastguard Worker // https://source.android.com/devices/architecture/java-library#maintaining-backward-compatibility 38*c73d2a95SAndroid Build Coastguard Worker unsafe_ignore_missing_latest_api: true, 39*c73d2a95SAndroid Build Coastguard Worker 40*c73d2a95SAndroid Build Coastguard Worker api_packages: ["com.example.android.platform_library"], 41*c73d2a95SAndroid Build Coastguard Worker 42*c73d2a95SAndroid Build Coastguard Worker srcs: ["**/*.java"], 43*c73d2a95SAndroid Build Coastguard Worker 44*c73d2a95SAndroid Build Coastguard Worker dist_group: "samples", 45*c73d2a95SAndroid Build Coastguard Worker sdk_version: "current", 46*c73d2a95SAndroid Build Coastguard Worker} 47