diff --git a/modules/asc_swift/1.0.0rc2/MODULE.bazel b/modules/asc_swift/1.0.0rc2/MODULE.bazel new file mode 100644 index 00000000000..ad6e7826674 --- /dev/null +++ b/modules/asc_swift/1.0.0rc2/MODULE.bazel @@ -0,0 +1,38 @@ +""" +A Swift library for accessing Apple's App Store Connect API and Enterprise Program API. +""" + +module( + name = "asc_swift", + version = "1.0.0rc2", +) + +bazel_dep(name = "apple_support", version = "1.16.0") +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "rules_apple", version = "3.8.0") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "rules_swift", version = "2.1.1") + +bazel_dep(name = "aspect_bazel_lib", version = "2.8.0", dev_dependency = True) +bazel_dep(name = "rules_multirun", version = "0.9.0", dev_dependency = True) + +asc_swift_deps = use_extension("//bazel:extensions.bzl", "asc_swift_deps") +use_repo( + asc_swift_deps, + "com_github_apple_swift_crypto", + "com_github_createapi_urlqueryencoder", +) + +asc_swift_dev_deps = use_extension("//bazel:extensions.bzl", "asc_swift_dev_deps", dev_dependency = True) +use_repo( + asc_swift_dev_deps, + "com_apple_app_store_connect_api", + "com_apple_enterprise_program_api", + "com_github_aaronsky_createapi", + "com_github_apple_swift_argument_parser", + "com_github_cosmo_grammaticalnumber", + "com_github_createapi_openapikit", + "com_github_createapi_yams", + "com_github_eonist_filewatcher", + "com_github_liamnichols_swift_configuration_parser", +) diff --git a/modules/asc_swift/1.0.0rc2/patches/module_dot_bazel_version.patch b/modules/asc_swift/1.0.0rc2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..e1389cb24ad --- /dev/null +++ b/modules/asc_swift/1.0.0rc2/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -3,9 +3,9 @@ + """ + + module( + name = "asc_swift", +- version = "0.0.0", ++ version = "1.0.0rc2", + ) + + bazel_dep(name = "apple_support", version = "1.16.0") + bazel_dep(name = "platforms", version = "0.0.10") diff --git a/modules/asc_swift/1.0.0rc2/presubmit.yml b/modules/asc_swift/1.0.0rc2/presubmit.yml new file mode 100644 index 00000000000..d4081b5f3fa --- /dev/null +++ b/modules/asc_swift/1.0.0rc2/presubmit.yml @@ -0,0 +1,31 @@ +bcr_test_module: + module_path: Examples/bzlmod + matrix: + bazel: + - 7.x + tasks: + verify_targets_linux: + name: Verify Targets (Linux) + platform: ubuntu2004 + bazel: ${{ bazel }} + environment: + CC: "clang" + SWIFT_VERSION: "5.9.2" + SWIFT_HOME: "$HOME/swift-5.9.2" + PATH: "$PATH:$HOME/swift-5.9.2/usr/bin" + shell_commands: + - "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME" + - "mkdir $SWIFT_HOME" + - "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2004/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu20.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME" + build_flags: + - "--action_env=PATH" + build_targets: + - "//..." + verify_targets_macos: + name: Verify Targets (macOS) + platform: macos + bazel: ${{ bazel }} + build_targets: + - "//..." + build_flags: + - "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" diff --git a/modules/asc_swift/1.0.0rc2/source.json b/modules/asc_swift/1.0.0rc2/source.json new file mode 100644 index 00000000000..05852fa86df --- /dev/null +++ b/modules/asc_swift/1.0.0rc2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-uRp8qOlJ1v+hCdxdXhZqHVzgB0cGkZXrKe1nE1H0WtU=", + "strip_prefix": "asc_swift-1.0.0rc2", + "url": "https://github.com/aaronsky/asc-swift/releases/download/1.0.0rc2/asc_swift-1.0.0rc2.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-5T/4F9EIQxbBChGIZEkXJ/3rq7c8pfqRwiLpBkAWt0A=" + }, + "patch_strip": 1 +} diff --git a/modules/asc_swift/metadata.json b/modules/asc_swift/metadata.json new file mode 100644 index 00000000000..0774e1a4119 --- /dev/null +++ b/modules/asc_swift/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/aaronsky/asc-swift", + "maintainers": [ + { + "name": "Aaron Sky", + "email": "aaronsky@skyaaron.com", + "github": "aaronsky" + } + ], + "repository": [ + "github:aaronsky/asc-swift" + ], + "versions": [ + "1.0.0rc2" + ], + "yanked_versions": {} +}