Merge "Add stubs and an sdk definition for sdkext"

This commit is contained in:
Anton Hansson 2019-12-16 16:00:43 +00:00 committed by Gerrit Code Review
commit 4c1f4c2bc6
3 changed files with 38 additions and 1 deletions

View File

@ -459,7 +459,8 @@ java_library {
installable: false, // this lib is a build-only library
static_libs: [
"framework-minus-apex",
// TODO(jiyong): add stubs for APEXes here
"framework-sdkext-stubs-systemapi",
// TODO(jiyong): add more stubs for APEXes here
],
sdk_version: "core_platform",
}

View File

@ -25,6 +25,11 @@ apex {
certificate: ":com.android.sdkext.certificate",
}
sdk {
name: "sdkext-sdk",
java_libs: [ "framework-sdkext-stubs-systemapi" ],
}
apex_key {
name: "com.android.sdkext.key",
public_key: "com.android.sdkext.avbpubkey",

View File

@ -28,3 +28,34 @@ java_library {
permitted_packages: [ "android.os.ext" ],
installable: true,
}
droidstubs {
name: "framework-sdkext-droidstubs-publicapi",
defaults: [
"framework-sdkext-stubs-defaults",
"framework-module-stubs-defaults-publicapi",
]
}
droidstubs {
name: "framework-sdkext-droidstubs-systemapi",
defaults: [
"framework-sdkext-stubs-defaults",
"framework-module-stubs-defaults-systemapi",
]
}
stubs_defaults {
name: "framework-sdkext-stubs-defaults",
srcs: [
":framework-sdkext-sources",
":framework-annotations",
],
sdk_version: "system_current",
}
java_library {
name: "framework-sdkext-stubs-systemapi",
srcs: [":framework-sdkext-droidstubs-systemapi"],
sdk_version: "system_current",
}