// Copyright (C) 2025 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // package { default_applicable_licenses: ["external_tink_java_license"], } license { name: "external_tink_java_license", visibility: [":__subpackages__"], license_kinds: [ "SPDX-license-identifier-Apache-2.0", ], license_text: [ "LICENSE", ], } java_library { name: "tink_proto_lite", proto: { type: "lite", canonical_path_from_root: false, }, srcs: ["proto/*.proto"], visibility: ["//visibility:private"], } java_library_static { name: "tink-java", visibility: ["//vendor:__subpackages__"], srcs: [ "src_android/main/**/*.java", "src/main/**/*.java", ], exclude_srcs: [ "src_android/main/java/com/google/crypto/tink/internal/testing/**/*.java", "src/main/java/com/google/crypto/tink/config/internal/TinkFipsEnabled.java", // Disable fips "src/main/java/com/google/crypto/tink/internal/BuildDispatchedCode.java", // Default to src_android "src/main/java/com/google/crypto/tink/prf/internal/AesCmacPrfWycheproofTestUtil.java", "src/main/java/com/google/crypto/tink/testing/**/*.java", "src/main/java/com/google/crypto/tink/util/KeysDownloader.java", ], static_libs: [ "androidx.annotation_annotation", "error_prone_annotations", "gson", "jsr305", "tink_proto_lite", "truth", ], errorprone: { javacflags: [ "-Xep:FormatStringAnnotation:WARN", "-Xep:NoCanIgnoreReturnValueOnClasses:WARN", ], }, }