Make the default java_sdk_library dist_group "unknown"
Change the default dist_group from "android" to "unknown" to prevent
accidentally including java_sdk_library stubs that do not set
dist_group or owner in the public SDK.
Bug: 186723288
Test: TestJavaSdkLibraryDist
Change-Id: I9aae2a16254ac1a8d444acfa63bc571d1ef4b045
Merged-In: I9aae2a16254ac1a8d444acfa63bc571d1ef4b045
(cherry picked from commit 3dd662509d
)
This commit is contained in:
@@ -458,7 +458,7 @@ type sdkLibraryProperties struct {
|
||||
Dist_stem *string
|
||||
|
||||
// The subdirectory for the artifacts that are copied to the dist directory. If not specified
|
||||
// then defaults to "android". Should be set to "android" for anything that should be published
|
||||
// then defaults to "unknown". Should be set to "android" for anything that should be published
|
||||
// in the public Android SDK.
|
||||
Dist_group *string
|
||||
|
||||
@@ -1240,8 +1240,7 @@ func (module *SdkLibrary) distGroup() string {
|
||||
if owner := module.ModuleBase.Owner(); owner != "" {
|
||||
return owner
|
||||
}
|
||||
// TODO(b/186723288): Make this "unknown".
|
||||
return "android"
|
||||
return "unknown"
|
||||
}
|
||||
|
||||
func (module *SdkLibrary) latestApiFilegroupName(apiScope *apiScope) string {
|
||||
|
Reference in New Issue
Block a user