Skip to content

Commit da5bc6a

Browse files
committed
Initial commit
0 parents  commit da5bc6a

6 files changed

Lines changed: 113 additions & 0 deletions

File tree

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
xcuserdata/
5+
DerivedData/
6+
.swiftpm/configuration/registries.json
7+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
8+
.netrc
9+
.vscode/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 treastrain / Tanaka Ryoga
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Package.swift

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// swift-tools-version: 6.1
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "AppStoreConnectWebhook",
7+
products: [
8+
.library(
9+
name: "AppStoreConnectWebhook",
10+
targets: ["AppStoreConnectWebhook"]
11+
)
12+
],
13+
targets: [
14+
.target(
15+
name: "AppStoreConnectWebhook"
16+
),
17+
.testTarget(
18+
name: "AppStoreConnectWebhookTests",
19+
dependencies: ["AppStoreConnectWebhook"]
20+
),
21+
],
22+
swiftLanguageModes: [.v6]
23+
)
24+
25+
// Ref: https://github.com/treastrain/swift-upcomingfeatureflags-cheatsheet
26+
27+
extension SwiftSetting {
28+
static let existentialAny: Self = .enableUpcomingFeature("ExistentialAny") // SE-0335, Swift 5.6, SwiftPM 5.8+
29+
static let internalImportsByDefault: Self = .enableUpcomingFeature("InternalImportsByDefault") // SE-0409, Swift 6.0, SwiftPM 6.0+
30+
static let memberImportVisibility: Self = .enableUpcomingFeature("MemberImportVisibility") // SE-0444, Swift 6.1, SwiftPM 6.1+
31+
}
32+
33+
extension SwiftSetting: @retroactive CaseIterable {
34+
public static var allCases: [Self] {
35+
[.existentialAny, .internalImportsByDefault, .memberImportVisibility]
36+
}
37+
}
38+
39+
package.targets
40+
.forEach { $0.swiftSettings = SwiftSetting.allCases }

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# AppStoreConnectWebhook
2+
Type definitions for App Store Connect webhook notification payloads in Swift.
3+
4+
[![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/treastrain/AppStoreConnectWebhook/blob/main/LICENSE)
5+
![Platform: macOS|Linux|Windows](https://img.shields.io/badge/Platform-macOS%20%7C%20Linux%20%7C%20Windows-lightgrey.svg)
6+
![Swift: 6.1](https://img.shields.io/badge/Swift-6.1-orange.svg)
7+
[![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/swiftlang/swift-package-manager) \
8+
[![X (formerly Twitter): @treastrain](https://img.shields.io/twitter/follow/treastrain?label=%40treastrain&style=social)](https://x.com/treastrain)
9+
10+
# How to add to your project
11+
## Package dependencies
12+
```swift
13+
.package(url: "https://github.com/treastrain/AppStoreConnectWebhook", branch: "main"),
14+
```
15+
16+
## Target dependencies
17+
```swift
18+
.product(name: "AppStoreConnectWebhook", package: "AppStoreConnectWebhook"),
19+
```
20+
21+
# License
22+
MIT
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//
2+
// AppStoreConnectWebhook.swift
3+
// AppStoreConnectWebhook
4+
//
5+
// Created by treastrain on 2025/06/20.
6+
//
7+
8+
import Foundation
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// AppStoreConnectWebhookTests.swift
3+
// AppStoreConnectWebhook
4+
//
5+
// Created by treastrain on 2025/06/20.
6+
//
7+
8+
import Foundation
9+
import Testing
10+
11+
@testable import AppStoreConnectWebhook
12+
13+
struct AppStoreConnectWebhookTests {}

0 commit comments

Comments
 (0)