Merge "runtime_resource_overlay can be included in APEXes" am: c869812b04
am: 765dbb0b83
Change-Id: Ia5f4e186891206912ae5cac5a7b29896a57ce1c6
This commit is contained in:
21
java/app.go
21
java/app.go
@@ -1424,6 +1424,15 @@ type RuntimeResourceOverlayProperties struct {
|
||||
Overrides []string
|
||||
}
|
||||
|
||||
// RuntimeResourceOverlayModule interface is used by the apex package to gather information from
|
||||
// a RuntimeResourceOverlay module.
|
||||
type RuntimeResourceOverlayModule interface {
|
||||
android.Module
|
||||
OutputFile() android.Path
|
||||
Certificate() Certificate
|
||||
Theme() string
|
||||
}
|
||||
|
||||
func (r *RuntimeResourceOverlay) DepsMutator(ctx android.BottomUpMutatorContext) {
|
||||
sdkDep := decodeSdkDep(ctx, sdkContext(r))
|
||||
if sdkDep.hasFrameworkLibs() {
|
||||
@@ -1476,6 +1485,18 @@ func (r *RuntimeResourceOverlay) targetSdkVersion() sdkSpec {
|
||||
return r.sdkVersion()
|
||||
}
|
||||
|
||||
func (r *RuntimeResourceOverlay) Certificate() Certificate {
|
||||
return r.certificate
|
||||
}
|
||||
|
||||
func (r *RuntimeResourceOverlay) OutputFile() android.Path {
|
||||
return r.outputFile
|
||||
}
|
||||
|
||||
func (r *RuntimeResourceOverlay) Theme() string {
|
||||
return String(r.properties.Theme)
|
||||
}
|
||||
|
||||
// runtime_resource_overlay generates a resource-only apk file that can overlay application and
|
||||
// system resources at run time.
|
||||
func RuntimeResourceOverlayFactory() android.Module {
|
||||
|
Reference in New Issue
Block a user