Skip to content

Commit f395fe5

Browse files
authored
Merge pull request #9 from Wei18/feat/suppoer-platforms
Feat: support platforms and fix git submodules via ssh or https
2 parents cb245de + d601bfc commit f395fe5

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.gitmodules

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[submodule "Submodule/github/rest-api-description"]
22
path = Submodule/github/rest-api-description
3-
url = [email protected]:github/rest-api-description.git
3+
url = ../../github/rest-api-description.git
4+
shallow = true

Package.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ let config: PackageConfigSpec = {
155155

156156
let package = Package(
157157
name: "GitHubRestAPISwiftOpenAPI",
158-
platforms: [.macOS(.v10_15)],
158+
platforms: [
159+
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1),
160+
],
159161
products: config.libraries,
160162
dependencies: [
161163
.package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.0.0"),

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# GitHub's REST API Swift Language Code
22

3-
[![Swift](https://img.shields.io/badge/Swift-5.9-orange?style=flat-square)](https://img.shields.io/badge/Swift-5.9-orange?style=flat-square)
4-
[![Platforms](https://img.shields.io/badge/Platforms-macOS-orange?style=flat-square)](https://img.shields.io/badge/Platforms-macOS-orange?style=flat-square)
5-
[![Swift Package Manager](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)
3+
[![Release](https://img.shields.io/github/v/release/wei18/github-rest-api-swift-openapi)](https://github.com/wei18/github-rest-api-swift-openapi/releases)
4+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fwei18%2Fgithub-rest-api-swift-openapi%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/wei18/github-rest-api-swift-openapi)
5+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fwei18%2Fgithub-rest-api-swift-openapi%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/wei18/github-rest-api-swift-openapi)
6+
67

78
This Swift code generator is built upon the [Swift OpenAPI Generator](https://github.com/apple/swift-openapi-generator) and leverages the OpenAPI description for GitHub's REST API. The goal is to automate the creation of Swift language bindings, providing developers with a seamless way to interact with GitHub's REST API.
89

@@ -172,7 +173,7 @@ Once you have your Swift package set up, adding github-rest-api-swift-openapi as
172173
// The swift-tools-version declares the minimum version of Swift required to build this package.
173174

174175
dependencies: [
175-
.package(url: "https://github.com/Wei18/github-rest-api-swift-openapi.git", from: "1.0.0"),
176+
.package(url: "https://github.com/wei18/github-rest-api-swift-openapi.git", from: "1.0.0"),
176177
]
177178
```
178179

0 commit comments

Comments
 (0)