Skip to content

Commit

Permalink
Merge pull request #88 from menny/exports-generation-type
Browse files Browse the repository at this point in the history
Allow specifying exports types
  • Loading branch information
menny committed Jun 6, 2021
2 parents da82fae + d3b3fba commit 64f6748
Show file tree
Hide file tree
Showing 15 changed files with 201 additions and 199 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ bazel-testlogs
bazel-bin

#idea
.idea
.ijwb
.aswb
.aswb
*.iml
12 changes: 6 additions & 6 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ go_register_toolchains()

http_archive(
name = "com_google_protobuf",
sha256 = "e8c7601439dbd4489fe5069c33d374804990a56c2f710e00227ee5d8fd650e67",
strip_prefix = "protobuf-3.11.2",
url = "https://github.com/protocolbuffers/protobuf/archive/v3.11.2.tar.gz",
sha256 = "36f81e03a0702f8f935fffd5a486dac1c0fc6d4bae1cd02c7a32448ad6e63bcb",
strip_prefix = "protobuf-3.17.2",
url = "https://github.com/protocolbuffers/protobuf/archive/v3.17.2.tar.gz",
)

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
Expand All @@ -41,7 +41,7 @@ protobuf_deps()

http_archive(
name = "com_github_bazelbuild_buildtools",
sha256 = "f11fc80da0681a6d64632a850346ed2d4e5cbb0908306d9a2a2915f707048a10",
strip_prefix = "buildtools-3.3.0",
url = "https://github.com/bazelbuild/buildtools/archive/3.3.0.tar.gz",
sha256 = "c28eef4d30ba1a195c6837acf6c75a4034981f5b4002dda3c5aa6e48ce023cf1",
strip_prefix = "buildtools-4.0.1",
url = "https://github.com/bazelbuild/buildtools/archive/4.0.1.tar.gz",
)
141 changes: 28 additions & 113 deletions examples/android/program/main_deps/dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,7 @@ def generate_transitive_dependency_targets(
":androidx_lifecycle__lifecycle_runtime",
":androidx_lifecycle__lifecycle_viewmodel",
],
exports = [
":androidx_annotation__annotation",
":androidx_core__core",
":androidx_lifecycle__lifecycle_runtime",
":androidx_lifecycle__lifecycle_viewmodel",
],
exports = [],
)

# from androidx.annotation:annotation:1.0.0
Expand Down Expand Up @@ -496,7 +491,7 @@ def generate_transitive_dependency_targets(
],
licenses = ["notice"],
deps = [":androidx_annotation__annotation"],
exports = [":androidx_annotation__annotation"],
exports = [],
runtime_deps = [],
)

Expand All @@ -521,10 +516,7 @@ def generate_transitive_dependency_targets(
":androidx_annotation__annotation",
":androidx_arch_core__core_common",
],
exports = [
":androidx_annotation__annotation",
":androidx_arch_core__core_common",
],
exports = [],
)

# from androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
Expand All @@ -546,10 +538,7 @@ def generate_transitive_dependency_targets(
":androidx_annotation__annotation",
":androidx_core__core",
],
exports = [
":androidx_annotation__annotation",
":androidx_core__core",
],
exports = [],
)

# from androidx.collection:collection:1.0.0
Expand Down Expand Up @@ -578,7 +567,7 @@ def generate_transitive_dependency_targets(
],
licenses = ["notice"],
deps = [":androidx_annotation__annotation"],
exports = [":androidx_annotation__annotation"],
exports = [],
runtime_deps = [],
)

Expand All @@ -602,11 +591,7 @@ def generate_transitive_dependency_targets(
":androidx_core__core",
":androidx_customview__customview",
],
exports = [
":androidx_annotation__annotation",
":androidx_core__core",
":androidx_customview__customview",
],
exports = [],
)

# from androidx.core:core:1.1.0-alpha01
Expand Down Expand Up @@ -656,12 +641,7 @@ def generate_transitive_dependency_targets(
":androidx_lifecycle__lifecycle_runtime",
":androidx_versionedparcelable__versionedparcelable",
],
exports = [
":androidx_annotation__annotation",
":androidx_collection__collection",
":androidx_lifecycle__lifecycle_runtime",
":androidx_versionedparcelable__versionedparcelable",
],
exports = [],
)

# from androidx.cursoradapter:cursoradapter:1.0.0
Expand All @@ -682,7 +662,7 @@ def generate_transitive_dependency_targets(
testonly = False,
tags = ["maven_coordinates=androidx.cursoradapter:cursoradapter:1.0.0"],
deps = [":androidx_annotation__annotation"],
exports = [":androidx_annotation__annotation"],
exports = [],
)

# from androidx.customview:customview:1.0.0
Expand Down Expand Up @@ -712,10 +692,7 @@ def generate_transitive_dependency_targets(
":androidx_annotation__annotation",
":androidx_core__core",
],
exports = [
":androidx_annotation__annotation",
":androidx_core__core",
],
exports = [],
)

# from androidx.documentfile:documentfile:1.0.0
Expand All @@ -734,7 +711,7 @@ def generate_transitive_dependency_targets(
testonly = False,
tags = ["maven_coordinates=androidx.documentfile:documentfile:1.0.0"],
deps = [":androidx_annotation__annotation"],
exports = [":androidx_annotation__annotation"],
exports = [],
)

# from androidx.drawerlayout:drawerlayout:1.0.0
Expand All @@ -757,11 +734,7 @@ def generate_transitive_dependency_targets(
":androidx_core__core",
":androidx_customview__customview",
],
exports = [
":androidx_annotation__annotation",
":androidx_core__core",
":androidx_customview__customview",
],
exports = [],
)

# from androidx.fragment:fragment:1.1.0-alpha02
Expand Down Expand Up @@ -817,7 +790,7 @@ def generate_transitive_dependency_targets(
testonly = False,
tags = ["maven_coordinates=androidx.interpolator:interpolator:1.0.0"],
deps = [":androidx_annotation__annotation"],
exports = [":androidx_annotation__annotation"],
exports = [],
)

# from androidx.legacy:legacy-support-core-ui:1.0.0
Expand Down Expand Up @@ -849,20 +822,7 @@ def generate_transitive_dependency_targets(
":androidx_swiperefreshlayout__swiperefreshlayout",
":androidx_viewpager__viewpager",
],
exports = [
":androidx_annotation__annotation",
":androidx_asynclayoutinflater__asynclayoutinflater",
":androidx_coordinatorlayout__coordinatorlayout",
":androidx_core__core",
":androidx_cursoradapter__cursoradapter",
":androidx_customview__customview",
":androidx_drawerlayout__drawerlayout",
":androidx_interpolator__interpolator",
":androidx_legacy__legacy_support_core_utils",
":androidx_slidingpanelayout__slidingpanelayout",
":androidx_swiperefreshlayout__swiperefreshlayout",
":androidx_viewpager__viewpager",
],
exports = [],
)

# from androidx.legacy:legacy-support-core-utils:1.0.0
Expand Down Expand Up @@ -890,14 +850,7 @@ def generate_transitive_dependency_targets(
":androidx_localbroadcastmanager__localbroadcastmanager",
":androidx_print__print",
],
exports = [
":androidx_annotation__annotation",
":androidx_core__core",
":androidx_documentfile__documentfile",
":androidx_loader__loader",
":androidx_localbroadcastmanager__localbroadcastmanager",
":androidx_print__print",
],
exports = [],
)

# from androidx.lifecycle:lifecycle-common:2.0.0
Expand All @@ -924,7 +877,7 @@ def generate_transitive_dependency_targets(
],
licenses = ["notice"],
deps = [":androidx_annotation__annotation"],
exports = [":androidx_annotation__annotation"],
exports = [],
runtime_deps = [],
)

Expand All @@ -948,11 +901,7 @@ def generate_transitive_dependency_targets(
":androidx_arch_core__core_runtime",
":androidx_lifecycle__lifecycle_common",
],
exports = [
":androidx_arch_core__core_common",
":androidx_arch_core__core_runtime",
":androidx_lifecycle__lifecycle_common",
],
exports = [],
)

# from androidx.lifecycle:lifecycle-livedata:2.0.0
Expand All @@ -975,11 +924,7 @@ def generate_transitive_dependency_targets(
":androidx_arch_core__core_runtime",
":androidx_lifecycle__lifecycle_livedata_core",
],
exports = [
":androidx_arch_core__core_common",
":androidx_arch_core__core_runtime",
":androidx_lifecycle__lifecycle_livedata_core",
],
exports = [],
)

# from androidx.lifecycle:lifecycle-runtime:2.0.0
Expand All @@ -1004,11 +949,7 @@ def generate_transitive_dependency_targets(
":androidx_arch_core__core_common",
":androidx_lifecycle__lifecycle_common",
],
exports = [
":androidx_annotation__annotation",
":androidx_arch_core__core_common",
":androidx_lifecycle__lifecycle_common",
],
exports = [],
)

# from androidx.lifecycle:lifecycle-viewmodel:2.0.0
Expand All @@ -1031,7 +972,7 @@ def generate_transitive_dependency_targets(
testonly = False,
tags = ["maven_coordinates=androidx.lifecycle:lifecycle-viewmodel:2.0.0"],
deps = [":androidx_annotation__annotation"],
exports = [":androidx_annotation__annotation"],
exports = [],
)

# from androidx.loader:loader:1.0.0
Expand All @@ -1057,12 +998,7 @@ def generate_transitive_dependency_targets(
":androidx_lifecycle__lifecycle_livedata",
":androidx_lifecycle__lifecycle_viewmodel",
],
exports = [
":androidx_annotation__annotation",
":androidx_core__core",
":androidx_lifecycle__lifecycle_livedata",
":androidx_lifecycle__lifecycle_viewmodel",
],
exports = [],
)

# from androidx.localbroadcastmanager:localbroadcastmanager:1.0.0
Expand All @@ -1081,7 +1017,7 @@ def generate_transitive_dependency_targets(
testonly = False,
tags = ["maven_coordinates=androidx.localbroadcastmanager:localbroadcastmanager:1.0.0"],
deps = [":androidx_annotation__annotation"],
exports = [":androidx_annotation__annotation"],
exports = [],
)

# from androidx.print:print:1.0.0
Expand All @@ -1100,7 +1036,7 @@ def generate_transitive_dependency_targets(
testonly = False,
tags = ["maven_coordinates=androidx.print:print:1.0.0"],
deps = [":androidx_annotation__annotation"],
exports = [":androidx_annotation__annotation"],
exports = [],
)

# from androidx.slidingpanelayout:slidingpanelayout:1.0.0
Expand All @@ -1123,11 +1059,7 @@ def generate_transitive_dependency_targets(
":androidx_core__core",
":androidx_customview__customview",
],
exports = [
":androidx_annotation__annotation",
":androidx_core__core",
":androidx_customview__customview",
],
exports = [],
)

# from androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
Expand All @@ -1150,11 +1082,7 @@ def generate_transitive_dependency_targets(
":androidx_core__core",
":androidx_interpolator__interpolator",
],
exports = [
":androidx_annotation__annotation",
":androidx_core__core",
":androidx_interpolator__interpolator",
],
exports = [],
)

# from androidx.vectordrawable:vectordrawable-animated:1.0.0
Expand All @@ -1176,10 +1104,7 @@ def generate_transitive_dependency_targets(
":androidx_legacy__legacy_support_core_ui",
":androidx_vectordrawable__vectordrawable",
],
exports = [
":androidx_legacy__legacy_support_core_ui",
":androidx_vectordrawable__vectordrawable",
],
exports = [],
)

# from androidx.vectordrawable:vectordrawable:1.0.1
Expand All @@ -1203,10 +1128,7 @@ def generate_transitive_dependency_targets(
":androidx_annotation__annotation",
":androidx_core__core",
],
exports = [
":androidx_annotation__annotation",
":androidx_core__core",
],
exports = [],
)

# from androidx.versionedparcelable:versionedparcelable:1.1.0-alpha01
Expand All @@ -1228,10 +1150,7 @@ def generate_transitive_dependency_targets(
":androidx_annotation__annotation",
":androidx_collection__collection",
],
exports = [
":androidx_annotation__annotation",
":androidx_collection__collection",
],
exports = [],
)

# from androidx.viewpager:viewpager:1.0.0
Expand All @@ -1256,9 +1175,5 @@ def generate_transitive_dependency_targets(
":androidx_core__core",
":androidx_customview__customview",
],
exports = [
":androidx_annotation__annotation",
":androidx_core__core",
":androidx_customview__customview",
],
exports = [],
)
Loading

0 comments on commit 64f6748

Please sign in to comment.