Revert "Revert "Enable from-text stub generation in non-sdk java..."
Revert submission 3207397-revert-2982300-java_api_library_non_sdk-FIKZOSARQI Reason for revert: Post submit build breakage culprit fixed Reverted changes: /q/submissionid:3207397-revert-2982300-java_api_library_non_sdk-FIKZOSARQI Change-Id: Ic79b7fd074f02febba94183cb1479874efe044b5
This commit is contained in:
committed by
Gerrit Code Review
parent
a574cd28a8
commit
b0f4c0239d
@@ -41,7 +41,7 @@ java_defaults {
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "core.current.stubs.from-source",
|
||||
name: "core.current.stubs",
|
||||
defaults: [
|
||||
"core.current.stubs.defaults",
|
||||
],
|
||||
@@ -52,8 +52,12 @@ java_library {
|
||||
],
|
||||
}
|
||||
|
||||
// Used for bootstrapping ART system modules
|
||||
java_api_library {
|
||||
name: "core.current.stubs.from-text",
|
||||
defaults: [
|
||||
"core.current.stubs.defaults",
|
||||
],
|
||||
api_surface: "core",
|
||||
api_contributions: [
|
||||
"art.module.public.api.stubs.source.api.contribution",
|
||||
@@ -68,27 +72,7 @@ java_api_library {
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "core.current.stubs",
|
||||
defaults: [
|
||||
"core.current.stubs.defaults",
|
||||
],
|
||||
static_libs: [
|
||||
"core.current.stubs.from-source",
|
||||
],
|
||||
product_variables: {
|
||||
build_from_text_stub: {
|
||||
static_libs: [
|
||||
"core.current.stubs.from-text",
|
||||
],
|
||||
exclude_static_libs: [
|
||||
"core.current.stubs.from-source",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "core.current.stubs.exportable.from-source",
|
||||
name: "core.current.stubs.exportable",
|
||||
defaults: [
|
||||
"core.current.stubs.defaults",
|
||||
],
|
||||
@@ -103,16 +87,6 @@ java_library {
|
||||
},
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "core.current.stubs.exportable",
|
||||
defaults: [
|
||||
"core.current.stubs.defaults",
|
||||
],
|
||||
static_libs: [
|
||||
"core.current.stubs.exportable.from-source",
|
||||
],
|
||||
}
|
||||
|
||||
// Distributed with the SDK for turning into system modules to compile apps
|
||||
// against.
|
||||
//
|
||||
@@ -200,26 +174,6 @@ java_library {
|
||||
defaults: [
|
||||
"core.module_lib.stubs.defaults",
|
||||
],
|
||||
static_libs: [
|
||||
"core.module_lib.stubs.from-source",
|
||||
],
|
||||
product_variables: {
|
||||
build_from_text_stub: {
|
||||
static_libs: [
|
||||
"core.module_lib.stubs.from-text",
|
||||
],
|
||||
exclude_static_libs: [
|
||||
"core.module_lib.stubs.from-source",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "core.module_lib.stubs.from-source",
|
||||
defaults: [
|
||||
"core.module_lib.stubs.defaults",
|
||||
],
|
||||
static_libs: [
|
||||
"art.module.public.api.stubs.module_lib",
|
||||
|
||||
@@ -231,27 +185,6 @@ java_library {
|
||||
],
|
||||
}
|
||||
|
||||
java_api_library {
|
||||
name: "core.module_lib.stubs.from-text",
|
||||
api_surface: "module-lib",
|
||||
api_contributions: [
|
||||
"art.module.public.api.stubs.source.api.contribution",
|
||||
"art.module.public.api.stubs.source.system.api.contribution",
|
||||
"art.module.public.api.stubs.source.module_lib.api.contribution",
|
||||
|
||||
// Add the module-lib correspondence when Conscrypt or i18N module
|
||||
// provides @SystemApi(MODULE_LIBRARIES). Currently, assume that only ART module provides
|
||||
// @SystemApi(MODULE_LIBRARIES).
|
||||
"conscrypt.module.public.api.stubs.source.api.contribution",
|
||||
"i18n.module.public.api.stubs.source.api.contribution",
|
||||
],
|
||||
libs: [
|
||||
"stub-annotations",
|
||||
],
|
||||
visibility: ["//visibility:private"],
|
||||
stubs_type: "everything",
|
||||
}
|
||||
|
||||
// Produces a dist file that is used by the
|
||||
// prebuilts/sdk/update_prebuilts.py script to update the prebuilts/sdk
|
||||
// directory.
|
||||
@@ -311,7 +244,7 @@ core_platform_visibility = ["//visibility:public"]
|
||||
// API annotations are available to the dex tools that enable enforcement of runtime
|
||||
// accessibility. b/119068555
|
||||
java_library {
|
||||
name: "legacy.core.platform.api.stubs.from-source",
|
||||
name: "legacy.core.platform.api.stubs",
|
||||
visibility: core_platform_visibility,
|
||||
defaults: [
|
||||
"core.platform.api.stubs.defaults",
|
||||
@@ -324,7 +257,7 @@ java_library {
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "legacy.core.platform.api.stubs.exportable.from-source",
|
||||
name: "legacy.core.platform.api.stubs.exportable",
|
||||
visibility: core_platform_visibility,
|
||||
defaults: [
|
||||
"core.platform.api.stubs.defaults",
|
||||
@@ -348,53 +281,6 @@ java_defaults {
|
||||
],
|
||||
}
|
||||
|
||||
java_api_library {
|
||||
name: "legacy.core.platform.api.stubs.from-text",
|
||||
api_surface: "core_platform",
|
||||
defaults: [
|
||||
"android_core_platform_stubs_current_contributions",
|
||||
],
|
||||
api_contributions: [
|
||||
"legacy.i18n.module.platform.api.stubs.source.api.contribution",
|
||||
],
|
||||
libs: [
|
||||
"stub-annotations",
|
||||
],
|
||||
stubs_type: "everything",
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "legacy.core.platform.api.stubs",
|
||||
visibility: core_platform_visibility,
|
||||
defaults: [
|
||||
"core.platform.api.stubs.defaults",
|
||||
],
|
||||
static_libs: [
|
||||
"legacy.core.platform.api.stubs.from-source",
|
||||
],
|
||||
product_variables: {
|
||||
build_from_text_stub: {
|
||||
static_libs: [
|
||||
"legacy.core.platform.api.stubs.from-text",
|
||||
],
|
||||
exclude_static_libs: [
|
||||
"legacy.core.platform.api.stubs.from-source",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "legacy.core.platform.api.stubs.exportable",
|
||||
visibility: core_platform_visibility,
|
||||
defaults: [
|
||||
"core.platform.api.stubs.defaults",
|
||||
],
|
||||
static_libs: [
|
||||
"legacy.core.platform.api.stubs.exportable.from-source",
|
||||
],
|
||||
}
|
||||
|
||||
java_defaults {
|
||||
name: "core.platform.api.stubs.defaults",
|
||||
hostdex: true,
|
||||
@@ -424,7 +310,7 @@ java_library {
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "stable.core.platform.api.stubs.from-source",
|
||||
name: "stable.core.platform.api.stubs",
|
||||
visibility: core_platform_visibility,
|
||||
defaults: [
|
||||
"core.platform.api.stubs.defaults",
|
||||
@@ -437,42 +323,6 @@ java_library {
|
||||
],
|
||||
}
|
||||
|
||||
java_api_library {
|
||||
name: "stable.core.platform.api.stubs.from-text",
|
||||
api_surface: "core_platform",
|
||||
defaults: [
|
||||
"android_core_platform_stubs_current_contributions",
|
||||
],
|
||||
api_contributions: [
|
||||
"stable.i18n.module.platform.api.stubs.source.api.contribution",
|
||||
],
|
||||
libs: [
|
||||
"stub-annotations",
|
||||
],
|
||||
stubs_type: "everything",
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "stable.core.platform.api.stubs",
|
||||
visibility: core_platform_visibility,
|
||||
defaults: [
|
||||
"core.platform.api.stubs.defaults",
|
||||
],
|
||||
static_libs: [
|
||||
"stable.core.platform.api.stubs.from-source",
|
||||
],
|
||||
product_variables: {
|
||||
build_from_text_stub: {
|
||||
static_libs: [
|
||||
"stable.core.platform.api.stubs.from-text",
|
||||
],
|
||||
exclude_static_libs: [
|
||||
"stable.core.platform.api.stubs.from-source",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// Same as stable.core.platform.api.stubs, but android annotations are
|
||||
// stripped. This is used by the Java toolchain, while the annotated stub is to
|
||||
// be used by Kotlin one.
|
||||
|
Reference in New Issue
Block a user