diff options
Diffstat (limited to 'java/droidstubs.go')
-rw-r--r-- | java/droidstubs.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/droidstubs.go b/java/droidstubs.go index fa1fb8649..17c39fcaa 100644 --- a/java/droidstubs.go +++ b/java/droidstubs.go @@ -20,6 +20,7 @@ import ( "regexp" "strings" + "github.com/google/blueprint" "github.com/google/blueprint/proptools" "android/soong/android" @@ -27,6 +28,12 @@ import ( "android/soong/remoteexec" ) +type DroidStubsInfo struct { + CurrentApiTimestamp android.Path +} + +var DroidStubsInfoProvider = blueprint.NewProvider[DroidStubsInfo]() + // The values allowed for Droidstubs' Api_levels_sdk_type var allowedApiLevelSdkTypes = []string{"public", "system", "module-lib", "system-server"} @@ -1340,6 +1347,10 @@ func (d *Droidstubs) GenerateAndroidBuildActions(ctx android.ModuleContext) { rule.Build("nullabilityWarningsCheck", "nullability warnings check") } + android.SetProvider(ctx, DroidStubsInfoProvider, DroidStubsInfo{ + CurrentApiTimestamp: d.CurrentApiTimestamp(), + }) + d.setOutputFiles(ctx) } |