Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add apple_dynamic_xcframework_import example #628

Merged
merged 1 commit into from
Jun 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,27 @@ apple_static_xcframework_import(
url = "https://dl.google.com/geosdk/GoogleMaps-6.2.1-beta.tar.gz",
)

http_archive(
name = "com_github_krzyzanowskim_cryptoswift",
build_file_content = """\
load(
"@build_bazel_rules_apple//apple:apple.bzl",
"apple_dynamic_xcframework_import",
)

apple_dynamic_xcframework_import(
name = "CryptoSwift",
xcframework_imports = glob(
["CryptoSwift.xcframework/**"],
exclude = ["**/.*"],
),
visibility = ["//visibility:public"],
)
""",
sha256 = "b251155dce1e5f705f40bf1d531d56851b90f1907a8ff07d0e0c471f12316515",
url = "https://github.com/krzyzanowskim/CryptoSwift/releases/download/1.5.1/CryptoSwift.xcframework.zip",
)

# Setup Swift Custom Dump test dependency

http_archive(
Expand Down
3 changes: 3 additions & 0 deletions examples/multiplatform/Lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ swift_library(
module_name = "Lib",
tags = ["manual"],
visibility = ["//visibility:public"],
deps = [
"@com_github_krzyzanowskim_cryptoswift//:CryptoSwift",
],
)

genrule(
Expand Down
238 changes: 231 additions & 7 deletions test/fixtures/multiplatform/bwb.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
$(BAZEL_EXTERNAL)/com_github_krzyzanowskim_cryptoswift/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework
$(BAZEL_EXTERNAL)/com_github_krzyzanowskim_cryptoswift/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework
$(BAZEL_EXTERNAL)/com_github_krzyzanowskim_cryptoswift/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework
$(BAZEL_EXTERNAL)/com_github_krzyzanowskim_cryptoswift/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework
$(BAZEL_EXTERNAL)/com_github_krzyzanowskim_cryptoswift/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework
$(BAZEL_EXTERNAL)/com_github_krzyzanowskim_cryptoswift/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework
$(BAZEL_EXTERNAL)/com_github_krzyzanowskim_cryptoswift/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework
$(BAZEL_EXTERNAL)/com_google_google_maps/GoogleMaps.xcframework/ios-arm64_x86_64-simulator/GoogleMaps.framework
$(BAZEL_EXTERNAL)/com_google_google_maps/GoogleMaps.xcframework/ios-arm64_x86_64-simulator/GoogleMaps.framework/Resources/GoogleMaps.bundle
$(BAZEL_EXTERNAL)/com_google_google_maps/GoogleMaps.xcframework/ios-arm64/GoogleMaps.framework
Expand Down
Loading