Skip to content

Commit a258004

Browse files
committed
Support platforms
1 parent cb245de commit a258004

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Package.swift

Lines changed: 3 additions & 1 deletion
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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
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)
53
[![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)
64

5+
[![](https://img.shields.io/github/v/release/wei18/github-rest-api-swift-openapi)](https://github.com/wei18/github-rest-api-swift-openapi/releases)
6+
[![](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)
7+
[![](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)
8+
9+
710
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.
811

912
## Usage
@@ -172,7 +175,7 @@ Once you have your Swift package set up, adding github-rest-api-swift-openapi as
172175
// The swift-tools-version declares the minimum version of Swift required to build this package.
173176

174177
dependencies: [
175-
.package(url: "https://github.com/Wei18/github-rest-api-swift-openapi.git", from: "1.0.0"),
178+
.package(url: "https://github.com/wei18/github-rest-api-swift-openapi.git", from: "1.0.0"),
176179
]
177180
```
178181

0 commit comments

Comments
 (0)