Convert NewProvider/NewMutatorProvider to generic providers API
Convert all of the callers to NewProvider and NewMutatorProvider to use a generic type parameter instead of an example object. Bug: 316410648 Test: builds Change-Id: Ic9cdafc87336e26730d3fd596df05de0e7267542
This commit is contained in:
@@ -52,7 +52,7 @@ func init() {
|
||||
pctx.SourcePathVariable("bloaty", "prebuilts/build-tools/${hostPrebuiltTag}/bin/bloaty")
|
||||
pctx.HostBinToolVariable("bloatyMerger", "bloaty_merger")
|
||||
android.RegisterParallelSingletonType("file_metrics", fileSizesSingleton)
|
||||
fileSizeMeasurerKey = blueprint.NewProvider(measuredFiles{})
|
||||
fileSizeMeasurerKey = blueprint.NewProvider[measuredFiles]()
|
||||
}
|
||||
|
||||
// measuredFiles contains the paths of the files measured by a module.
|
||||
|
Reference in New Issue
Block a user