Modify sdk_library to dist exportable api files by default
Currently, the "exportable" stubs are copied to the dist directory by default when building the java_sdk_library module. However, "everything" api files (current & removed) are copied to the dist directory, causing confusion to the developers. This change modifies the default behavior so that the "exportable" api files are copied to the dist directory and match the behavior of the stubs. Test: m nothing Bug: 325639165 Change-Id: I2e3b158bb638d30629120b32aa3e88bb26231020
This commit is contained in:
@@ -1997,8 +1997,10 @@ func (module *SdkLibrary) createStubsSourcesAndApi(mctx android.DefaultableHookC
|
||||
tag string
|
||||
pattern string
|
||||
}{
|
||||
{tag: ".api.txt", pattern: "%s.txt"},
|
||||
{tag: ".removed-api.txt", pattern: "%s-removed.txt"},
|
||||
// "exportable" api files are copied to the dist directory instead of the
|
||||
// "everything" api files.
|
||||
{tag: ".exportable.api.txt", pattern: "%s.txt"},
|
||||
{tag: ".exportable.removed-api.txt", pattern: "%s-removed.txt"},
|
||||
} {
|
||||
props.Dists = append(props.Dists, android.Dist{
|
||||
Targets: []string{"sdk", "win_sdk"},
|
||||
|
Reference in New Issue
Block a user