| micky387 | 9850641 | 2023-10-23 16:33:47 +0200 | [diff] [blame] | 1 | android_app { | 
 | 2 |     name: "omnirom-res", | 
 | 3 |     sdk_version: "core_platform", | 
 | 4 |     certificate: "platform", | 
 | 5 |     manifest: "AndroidManifest.xml", | 
 | 6 |  | 
| Vachounet | b669cc8 | 2020-10-14 16:25:09 +0200 | [diff] [blame] | 7 |     resource_dirs: ["res"], | 
| micky387 | 9850641 | 2023-10-23 16:33:47 +0200 | [diff] [blame] | 8 |     export_package_resources: true, | 
 | 9 |  | 
 | 10 |     // Disable dexpreopt and verify_uses_libraries check as the app | 
 | 11 |     // contains no Java code to be dexpreopted. | 
 | 12 |     enforce_uses_libs: false, | 
 | 13 |     dex_preopt: { | 
 | 14 |         enabled: false, | 
 | 15 |     }, | 
 | 16 |  | 
 | 17 |     // Soong special-cases omnirom-res to install this alongside | 
 | 18 |     // the libraries at /system/framework/omnirom-res.apk. | 
 | 19 |  | 
 | 20 |     // Generate private symbols into the org.omnirom.omnilib.R class | 
 | 21 |     // so they are not accessible to 3rd party apps. | 
 | 22 |     aaptflags: [ | 
 | 23 |         "--private-symbols", | 
 | 24 |         "org.omnirom.omnilib", | 
 | 25 |  | 
 | 26 |         // Framework doesn't need versioning since it IS the platform. | 
 | 27 |         "--no-auto-version", | 
 | 28 |  | 
 | 29 |         // Allow overlay to add resource | 
 | 30 |         "--auto-add-overlay", | 
 | 31 |  | 
 | 32 |         // Tell aapt to create "extending (non-application)" resource IDs, | 
 | 33 |         // since these resources will be used by many apps. | 
 | 34 |         "--allow-reserved-package-id", | 
 | 35 |         // Use id 0x3f (one less than app id). | 
 | 36 |         "--package-id", | 
 | 37 |         "63", | 
 | 38 |     ], | 
| Vachounet | b669cc8 | 2020-10-14 16:25:09 +0200 | [diff] [blame] | 39 | } | 
| micky387 | 31a81aa | 2022-08-31 14:13:50 +0200 | [diff] [blame] | 40 |  | 
| micky387 | d8df754 | 2023-10-25 13:51:23 +0200 | [diff] [blame] | 41 | filegroup { | 
 | 42 |     name: "omnirom-internal", | 
 | 43 |     srcs: [ | 
 | 44 |         "src/org/omnirom/omnilib/utils/OmniSettings.java", | 
 | 45 |     ], | 
 | 46 |     path: "src", | 
 | 47 | } | 
 | 48 |  | 
| micky387 | 9850641 | 2023-10-23 16:33:47 +0200 | [diff] [blame] | 49 | java_library { | 
 | 50 |     name: "OmniLib", | 
 | 51 |     installable: true, | 
 | 52 |     sdk_version: "core_platform", | 
 | 53 |  | 
 | 54 |     srcs: [ | 
 | 55 |         "src/**/*.java", | 
 | 56 |  | 
 | 57 |         // For the generated R.java and Manifest.java | 
 | 58 |         ":omnirom-res{.aapt.srcjar}", | 
 | 59 |     ], | 
 | 60 |  | 
 | 61 |     libs: [ | 
 | 62 |         "framework", | 
 | 63 |         "OmniPreference", | 
 | 64 |     ], | 
| micky387 | 31a81aa | 2022-08-31 14:13:50 +0200 | [diff] [blame] | 65 | } |