Move java.sdkSpec to the android package
... in preparation for making the handling of sdk versions consistent across java and cc modules. Bug: 175678607 Test: m Change-Id: I598f0454bce9b7320621022115412fbe97403945
This commit is contained in:
18
java/rro.go
18
java/rro.go
@@ -91,7 +91,7 @@ type RuntimeResourceOverlayModule interface {
|
||||
}
|
||||
|
||||
func (r *RuntimeResourceOverlay) DepsMutator(ctx android.BottomUpMutatorContext) {
|
||||
sdkDep := decodeSdkDep(ctx, sdkContext(r))
|
||||
sdkDep := decodeSdkDep(ctx, android.SdkContext(r))
|
||||
if sdkDep.hasFrameworkLibs() {
|
||||
r.aapt.deps(ctx, sdkDep)
|
||||
}
|
||||
@@ -141,23 +141,23 @@ func (r *RuntimeResourceOverlay) GenerateAndroidBuildActions(ctx android.ModuleC
|
||||
ctx.InstallFile(r.installDir, r.outputFile.Base(), r.outputFile)
|
||||
}
|
||||
|
||||
func (r *RuntimeResourceOverlay) sdkVersion() sdkSpec {
|
||||
return sdkSpecFrom(String(r.properties.Sdk_version))
|
||||
func (r *RuntimeResourceOverlay) SdkVersion() android.SdkSpec {
|
||||
return android.SdkSpecFrom(String(r.properties.Sdk_version))
|
||||
}
|
||||
|
||||
func (r *RuntimeResourceOverlay) systemModules() string {
|
||||
func (r *RuntimeResourceOverlay) SystemModules() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (r *RuntimeResourceOverlay) minSdkVersion() sdkSpec {
|
||||
func (r *RuntimeResourceOverlay) MinSdkVersion() android.SdkSpec {
|
||||
if r.properties.Min_sdk_version != nil {
|
||||
return sdkSpecFrom(*r.properties.Min_sdk_version)
|
||||
return android.SdkSpecFrom(*r.properties.Min_sdk_version)
|
||||
}
|
||||
return r.sdkVersion()
|
||||
return r.SdkVersion()
|
||||
}
|
||||
|
||||
func (r *RuntimeResourceOverlay) targetSdkVersion() sdkSpec {
|
||||
return r.sdkVersion()
|
||||
func (r *RuntimeResourceOverlay) TargetSdkVersion() android.SdkSpec {
|
||||
return r.SdkVersion()
|
||||
}
|
||||
|
||||
func (r *RuntimeResourceOverlay) Certificate() Certificate {
|
||||
|
Reference in New Issue
Block a user