Merge "java_sdk_library: Stop disabling copy to dist when sdk_version: none"

This commit is contained in:
Paul Duffin 2020-11-20 12:48:11 +00:00 committed by Gerrit Code Review
commit 05c2f3e29a
1 changed files with 0 additions and 6 deletions

View File

@ -1514,12 +1514,6 @@ func (module *SdkLibrary) CreateInternalModules(mctx android.DefaultableHookCont
hasSystemAndTestApis := sdkDep.hasStandardLibs()
module.sdkLibraryProperties.Generate_system_and_test_apis = hasSystemAndTestApis
// Unless explicitly specified assume that any module that does not provide system
// and test APIs should not contribute to the dist build.
if module.sdkLibraryProperties.No_dist == nil {
module.sdkLibraryProperties.No_dist = proptools.BoolPtr(!hasSystemAndTestApis)
}
missing_current_api := false
generatedScopes := module.getGeneratedApiScopes(mctx)