diff options
| author | 2023-09-18 22:24:51 +0000 | |
|---|---|---|
| committer | 2023-09-18 22:24:51 +0000 | |
| commit | 18a33e51c63fc8f7220f1babceb303b7360fe9e2 (patch) | |
| tree | 886765ad11c8210ce7fc1fbf6f31f9c7f7a6d4b4 /java/sdk_library_test.go | |
| parent | e50b0f55583123471ef00d0d148c5079837a41d4 (diff) | |
| parent | 71c868340ea2dac17e71fd998ed5ddd01e754e92 (diff) | |
Merge "Create java_api_contribution_import from sdk_library_import" into main
Diffstat (limited to 'java/sdk_library_test.go')
| -rw-r--r-- | java/sdk_library_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/sdk_library_test.go b/java/sdk_library_test.go index 868d697ce..0b46919d2 100644 --- a/java/sdk_library_test.go +++ b/java/sdk_library_test.go @@ -74,6 +74,8 @@ func TestJavaSdkLibrary(t *testing.T) { name: "quuz", public: { jars: ["c.jar"], + current_api: "api/current.txt", + removed_api: "api/removed.txt", }, } java_sdk_library_import { @@ -173,6 +175,9 @@ func TestJavaSdkLibrary(t *testing.T) { android.AssertDeepEquals(t, "qux exports (optional)", []string{}, optionalSdkLibs) } + // test if quuz have created the api_contribution module + result.ModuleForTests(apiScopePublic.stubsSourceModuleName("quuz")+".api.contribution", "") + fooDexJar := result.ModuleForTests("foo", "android_common").Rule("d8") // tests if kotlinc generated files are NOT excluded from output of foo. android.AssertStringDoesNotContain(t, "foo dex", fooDexJar.BuildParams.Args["mergeZipsFlags"], "-stripFile META-INF/*.kotlin_module") |