1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "frameworks_base_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_base_license"], 8} 9 10filegroup { 11 name: "services.permission-sources", 12 srcs: [ 13 "java/**/*.java", 14 "java/**/*.kt", 15 ], 16 path: "java", 17 visibility: ["//frameworks/base/services"], 18} 19 20java_library { 21 name: "services.permission-pre-jarjar", 22 defaults: ["platform_service_defaults"], 23 srcs: [":services.permission-sources"], 24 libs: [ 25 "services.core", 26 // Soong fails to automatically add this dependency because all the 27 // *.kt sources are inside a filegroup. 28 "kotlin-annotations", 29 ], 30 static_libs: [ 31 "kotlin-stdlib", 32 // Adds reflection-less suppressed exceptions and AutoCloseable.use(). 33 "kotlin-stdlib-jdk7", 34 ], 35 kotlincflags: [ 36 "-Xjvm-default=all", 37 "-Xno-call-assertions", 38 "-Xno-param-assertions", 39 "-Xno-receiver-assertions", 40 ], 41} 42 43java_library { 44 name: "services.permission", 45 static_libs: ["services.permission-pre-jarjar"], 46 jarjar_rules: "jarjar-rules.txt", 47} 48