1// Copyright (C) 2013 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14// 15// 16 17java_library_static { 18 name: "objenesis", 19 host_supported: true, 20 hostdex: true, 21 srcs: ["main/src/main/java/**/*.java"], 22 sdk_version: "core_current", 23 24 // Pin to Java language level 8. It is loaded by an OpenJDK 8 runtime from 25 // prebuilts/studio/jdk in frameworks/layoutlib/bridge/tests/run_tests.sh. 26 // See b/141970724. 27 java_version: "1.8", 28} 29 30// Compatibility library for old name of host target 31java_library_host { 32 name: "objenesis-host", 33 static_libs: ["objenesis"], 34} 35 36//-------------------------------- 37// Builds the Objenesis TCK as a device-targeted library 38 39java_library_static { 40 name: "objenesis-tck", 41 sdk_version: "core_current", 42 43 static_libs: ["objenesis"], 44 srcs: ["tck/src/main/java/**/*.java"], 45 java_resource_dirs: ["tck/src/main/resources"], 46} 47