Skip to content

Commit

Permalink
Add apple_dynamic_xcframework_import example
Browse files Browse the repository at this point in the history
  • Loading branch information
brentleyjones committed Jun 30, 2022
1 parent 6ca4dd9 commit 3e940cd
Show file tree
Hide file tree
Showing 8 changed files with 1,355 additions and 92 deletions.
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

0 comments on commit 3e940cd

Please sign in to comment.