blob: 7223c96cfbac588ae7c00db3002d1badadff378f [file] [log] [blame]
Andrew Vuong6a309582023-03-13 22:54:17 +00001// Copyright (C) 2023 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
15package {
16 default_applicable_licenses: ["my_external_owasp_java_encoder_license"],
17}
18
19license {
20 name: "my_external_owasp_java_encoder_license",
21 visibility: [":__subpackages__"],
22 license_kinds: [
23 "SPDX-license-identifier-BSD",
24 ],
25 license_text: [
26 "LICENSE",
27 ],
28}
29
30java_library {
31 name: "owasp-java-encoder",
32 srcs: ["core/src/main/java/**/*.java"],
33 sdk_version: "current",
34 min_sdk_version: "33",
35 java_version: "1.8",
36 apex_available: [
37 "//apex_available:platform",
38 "com.android.ondevicepersonalization",
39 ],
40 visibility: [
41 "//packages/modules/OnDevicePersonalization:__subpackages__",
42 ],
43}
Andrew Vuong616fc402023-03-14 16:35:21 +000044
45android_test {
46 name: "OwaspJavaEncoderTestCases",
47 srcs: [
48 "core/src/test/**/*.java",
49 ],
50 java_resource_dirs: ["core/src/test/resources"],
51 static_libs: [
52 "androidx.test.rules",
53 "owasp-java-encoder",
54 ],
55 libs: [
56 "android.test.base",
57 ],
58 min_sdk_version: "33",
59 sdk_version: "test_current",
60 test_suites: [
61 "general-tests",
62 "mts-ondevicepersonalization",
63 ],
64 visibility: ["//visibility:private"],
65}