Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2008 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
| 17 | android_app { |
| 18 | name: "framework-res", |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 19 | sdk_version: "core_platform", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 20 | certificate: "platform", |
| 21 | |
| 22 | // Soong special-cases framework-res to install this alongside |
| 23 | // the libraries at /system/framework/framework-res.apk. |
| 24 | |
| 25 | // Generate private symbols into the com.android.internal.R class |
| 26 | // so they are not accessible to 3rd party apps. |
| 27 | aaptflags: [ |
| 28 | "--private-symbols", |
| 29 | "com.android.internal", |
| 30 | |
| 31 | // Framework doesn't need versioning since it IS the platform. |
| 32 | "--no-auto-version", |
| 33 | |
| 34 | // Allow overlay to add resource |
| 35 | "--auto-add-overlay", |
| 36 | ], |
| 37 | |
| 38 | // Create package-export.apk, which other packages can use to get |
| 39 | // PRODUCT-agnostic resource data like IDs and type definitions. |
| 40 | export_package_resources: true, |
| 41 | } |
Colin Cross | 8eb5b16 | 2019-04-02 22:58:28 -0700 | [diff] [blame] | 42 | |
| 43 | // This logic can be removed once robolectric's transition to binary resources is complete |
| 44 | filegroup { |
| 45 | name: "robolectric_framework_raw_res_files", |
| 46 | srcs: [ |
| 47 | "assets/**/*", |
| 48 | "res/**/*", |
| 49 | ], |
| 50 | } |