| package { | |
| // See: http://go/android-license-faq | |
| // A large-scale-change added 'default_applicable_licenses' to import | |
| // all of the 'license_kinds' from "frameworks_base_license" | |
| // to get the below license kinds: | |
| // SPDX-license-identifier-Apache-2.0 | |
| default_applicable_licenses: ["frameworks_base_license"], | |
| } | |
| android_test { | |
| name: "CodegenTests", | |
| srcs: [ | |
| "**/*.java", | |
| ], | |
| platform_apis: true, | |
| test_suites: ["device-tests"], | |
| certificate: "platform", | |
| optimize: { | |
| enabled: false, | |
| }, | |
| plugins: [ | |
| "staledataclass-annotation-processor", | |
| ], | |
| // Exports needed for staledataclass-annotation-processor, see b/139342589. | |
| javacflags: [ | |
| "-J--add-modules=jdk.compiler", | |
| "-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED", | |
| "-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED", | |
| "-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", | |
| "-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", | |
| ], | |
| static_libs: [ | |
| "junit", | |
| "hamcrest", | |
| "hamcrest-library", | |
| "androidx.test.runner", | |
| "androidx.test.rules", | |
| ], | |
| } |