Skip to content

Commit

Permalink
Add rules_ios 3.0.1 (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
luispadron authored Oct 25, 2023
1 parent 3895879 commit a77ddd2
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 0 deletions.
124 changes: 124 additions & 0 deletions modules/rules_ios/3.0.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
"""
Defines all the external repositories and dependencies for rules_ios.
"""

# Defines the rules_ios bzlmod module.
# Version is updated during release to the registry.
module(
name = "rules_ios",
version = "3.0.1",
bazel_compatibility = [">=5.0.0"],
compatibility_level = 1,
repo_name = "build_bazel_rules_ios",
)

# Declare the bzlmod dependencies needed by rules_ios and users of rules_ios
bazel_dep(
name = "apple_support",
version = "1.11.1",
repo_name = "build_bazel_apple_support",
)
bazel_dep(
name = "rules_apple",
version = "3.1.1",
repo_name = "build_bazel_rules_apple",
)
bazel_dep(
name = "rules_cc",
version = "0.0.6",
)
bazel_dep(
name = "rules_python",
version = "0.24.0",
)
bazel_dep(
name = "rules_swift",
version = "1.13.0",
repo_name = "build_bazel_rules_swift",
)
bazel_dep(
name = "bazel_skylib",
version = "1.4.2",
)

# Declare the development dependencies needed for rules_ios development
bazel_dep(
name = "buildifier_prebuilt",
version = "6.1.0",
dev_dependency = True,
)
bazel_dep(
name = "rules_pkg",
version = "0.9.1",
dev_dependency = True,
)
bazel_dep(
name = "stardoc",
version = "0.6.2",
dev_dependency = True,
repo_name = "io_bazel_stardoc",
)

rules_apple_api_deps = use_extension("//rules:module_extensions.bzl", "rules_apple_api_deps")
use_repo(
rules_apple_api_deps,
"rules_apple_api",
)

# Load non-bzlmod dependencies from rules_ios
non_module_deps = use_extension("//rules:module_extensions.bzl", "non_module_deps")
use_repo(
non_module_deps,
"arm64-to-sim",
"com_github_yonaskolb_xcodegen",
"tart",
)

non_module_dev_deps = use_extension(
"//rules:module_extensions.bzl",
"non_module_dev_deps",
dev_dependency = True,
)
use_repo(
non_module_dev_deps,
"GoogleMobileAdsSDK",
"TensorFlowLiteC",
"com_github_apple_swiftcollections",
)

# Configure Xcode
xcode_configure = use_extension(
"//rules:module_extensions.bzl",
"xcode_configure",
dev_dependency = True,
)
xcode_configure.configure(
remote_xcode_label = "",
xcode_locator_label = "//tools/toolchains/xcode_configure:xcode_locator.m",
)

# Load non-bzlmod dependencies used in this repo from rules_swift
swift_non_module_deps = use_extension("@build_bazel_rules_swift//swift:extensions.bzl", "non_module_deps")
use_repo(
swift_non_module_deps,
"build_bazel_rules_swift_index_import",
"build_bazel_rules_swift_local_config",
)

# Load non-bzlmod dependencies used in this repo from rules_apple
apple_non_module_deps = use_extension("@build_bazel_rules_apple//apple:extensions.bzl", "non_module_deps")
use_repo(
apple_non_module_deps,
"xctestrunner",
)

# Register the Python toolchain
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
is_default = True,
python_version = "3.9",
)
use_repo(
python,
"python_versions",
)
12 changes: 12 additions & 0 deletions modules/rules_ios/3.0.1/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
===================================================================
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -6,7 +6,7 @@ Defines all the external repositories and dependencies for rules_ios.
# Version is updated during release to the registry.
module(
name = "rules_ios",
- version = "0",
+ version = "3.0.1",
bazel_compatibility = [">=5.0.0"],
compatibility_level = 1,
repo_name = "build_bazel_rules_ios",
6 changes: 6 additions & 0 deletions modules/rules_ios/3.0.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tasks:
verify_build_targets:
name: Verify Build targets on macOS
platform: macos
build_targets:
- "@rules_ios//rules/..."
8 changes: 8 additions & 0 deletions modules/rules_ios/3.0.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"url": "https://github.com/bazel-ios/rules_ios/releases/download/3.0.1/rules_ios.3.0.1.tar.gz",
"integrity": "sha256-6wuhn/0BPCY3N5VjT0U2mlNCmL9wH0x/NVtQ5xRoQJw=",
"patches": {
"module_dot_bazel_version.patch": "sha256-JOMTOvw+rhPOTIcCkFDWMo12RtckpLDqO9jLxdPYk6o="
},
"patch_strip": 1
}
16 changes: 16 additions & 0 deletions modules/rules_ios/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"homepage": "https://github.com/bazel-ios/rules_ios",
"maintainers": [
{
"email": "[email protected]",
"name": "rules_ios Maintainers"
}
],
"repository": [
"github:bazel-ios/rules_ios"
],
"versions": [
"3.0.1"
],
"yanked_versions": {}
}

0 comments on commit a77ddd2

Please sign in to comment.