//
// Copyright (C) 2022 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 {
    // See: http://go/android-license-faq
    default_applicable_licenses: ["Android-Apache-2.0"],
}

// Build tool used to generate jarjar rules for all classes in a jar, except those that are
// API, UnsupportedAppUsage or otherwise excluded.
python_binary_host {
    name: "jarjar-rules-generator",
    srcs: [
        "gen_jarjar.py",
    ],
    main: "gen_jarjar.py",
    visibility: ["//packages/modules/Connectivity:__subpackages__"],
}

genrule_defaults {
    name: "jarjar-rules-combine-defaults",
    // Concat files with a line break in the middle
    cmd: "for src in $(in); do cat $${src}; echo; done > $(out)",
    defaults_visibility: ["//packages/modules/Connectivity:__subpackages__"],
}

java_library {
    name: "jarjar-rules-generator-testjavalib",
    srcs: ["testdata/java/**/*.java"],
    libs: ["unsupportedappusage"],
    visibility: ["//visibility:private"],
}

// TODO(b/233723405) - Remove this workaround.
// Temporary work around of b/233723405. Using the module_lib stub directly
// in the test causes it to sometimes get the dex jar and sometimes get the
// classes jar due to b/233111644. Statically including it here instead
// ensures that it will always get the classes jar.
java_library {
    name: "framework-connectivity.stubs.module_lib-for-test",
    visibility: ["//visibility:private"],
    static_libs: [
        "framework-connectivity.stubs.module_lib",
    ],
    // Not strictly necessary but specified as this MUST not have generate
    // a dex jar as that will break the tests.
    compile_dex: false,
}

java_library {
    name: "framework-connectivity-t.stubs.module_lib-for-test",
    visibility: ["//visibility:private"],
    static_libs: [
        "framework-connectivity-t.stubs.module_lib",
    ],
    // Not strictly necessary but specified as this MUST not have generate
    // a dex jar as that will break the tests.
    compile_dex: false,
}

python_test_host {
    name: "jarjar-rules-generator-test",
    srcs: [
        "gen_jarjar.py",
        "gen_jarjar_test.py",
    ],
    data: [
        "testdata/test-jarjar-excludes.txt",
        // two unsupportedappusage lists with different classes to test using multiple lists
        "testdata/test-unsupportedappusage.txt",
        "testdata/test-other-unsupportedappusage.txt",
        ":framework-connectivity.stubs.module_lib-for-test",
        ":framework-connectivity-t.stubs.module_lib-for-test",
        ":jarjar-rules-generator-testjavalib",
    ],
    main: "gen_jarjar_test.py",
}
