Skip to content

Commit

Permalink
Add swxmlhash 7.0.2.1 for rules_swift 2.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
luispadron committed Jul 10, 2024
1 parent f4fe4ff commit 88699f2
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 1 deletion.
7 changes: 7 additions & 0 deletions modules/swxmlhash/7.0.2.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module(
name = "swxmlhash",
version = "7.0.2.1",
compatibility_level = 1,
)

bazel_dep(name = "rules_swift", version = "1.8.0", max_compatibility_level = 2)
11 changes: 11 additions & 0 deletions modules/swxmlhash/7.0.2.1/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,8 @@
+load("@rules_swift//swift:swift.bzl", "swift_library")
+
+swift_library(
+ name = "SWXMLHash",
+ srcs = glob(["Source/**/*.swift"]),
+ module_name = "SWXMLHash",
+ visibility = ["//visibility:public"],
+)
10 changes: 10 additions & 0 deletions modules/swxmlhash/7.0.2.1/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,7 @@
+module(
+ name = "swxmlhash",
+ version = "7.0.2.1",
+ compatibility_level = 1,
+)
+
+bazel_dep(name = "rules_swift", version = "1.8.0", max_compatibility_level = 2)
6 changes: 6 additions & 0 deletions modules/swxmlhash/7.0.2.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tasks:
verify_targets:
name: Verify build targets
platform: macos
build_targets:
- '@swxmlhash//:SWXMLHash'
10 changes: 10 additions & 0 deletions modules/swxmlhash/7.0.2.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/drmohundro/SWXMLHash/archive/refs/tags/7.0.2.tar.gz",
"integrity": "sha256-19YA8GLWhAsDf8H7KsOvznocQ65DDXjiLXvW+OAs/J0=",
"strip_prefix": "SWXMLHash-7.0.2",
"patches": {
"add_build_file.patch": "sha256-5pHn+5q51/aanOaesI4fs+wcihKIsTPALKb9wUfJJxA=",
"module_dot_bazel.patch": "sha256-CHhVF5RMQ/yhwVNhg39Mu1U+ZCUeZw6g4oinqodEZFQ="
},
"patch_strip": 0
}
3 changes: 2 additions & 1 deletion modules/swxmlhash/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
],
"versions": [
"7.0.1",
"7.0.2"
"7.0.2",
"7.0.2.1"
],
"yanked_versions": {}
}

0 comments on commit 88699f2

Please sign in to comment.