Add attribute to disable last-api compat tracking
Setting this to true by default is dangerous as it can mask bugs. Create a dedicated attribute for java_sdk_library to enable this behavior instead. The default will be flipped in a future CL when all the current offenders have been fixed. Fix all the tests to have the right API files. Bug: 176092454 Test: m nothing Change-Id: Ieab94bcb74abf8d018365a56fb447fe3dbd46957
This commit is contained in:
@@ -44,6 +44,14 @@ func testSdkWithJava(t *testing.T, bp string) *testSdkResult {
|
||||
"api/system-server-removed.txt": nil,
|
||||
"build/soong/scripts/gen-java-current-api-files.sh": nil,
|
||||
"docs/known_doctags": nil,
|
||||
"100/public/api/myjavalib.txt": nil,
|
||||
"100/public/api/myjavalib-removed.txt": nil,
|
||||
"100/system/api/myjavalib.txt": nil,
|
||||
"100/system/api/myjavalib-removed.txt": nil,
|
||||
"100/module-lib/api/myjavalib.txt": nil,
|
||||
"100/module-lib/api/myjavalib-removed.txt": nil,
|
||||
"100/system-server/api/myjavalib.txt": nil,
|
||||
"100/system-server/api/myjavalib-removed.txt": nil,
|
||||
}
|
||||
|
||||
// for java_sdk_library tests
|
||||
@@ -84,6 +92,10 @@ java_import {
|
||||
name: "framework",
|
||||
sdk_version: "none",
|
||||
}
|
||||
prebuilt_apis {
|
||||
name: "sdk",
|
||||
api_dirs: ["100"],
|
||||
}
|
||||
` + bp
|
||||
|
||||
return testSdkWithFs(t, bp, fs)
|
||||
|
Reference in New Issue
Block a user