Skip to content

Commit

Permalink
Use local script
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosen081 committed May 3, 2024
1 parent 7ac19e1 commit c911bea
Show file tree
Hide file tree
Showing 11 changed files with 757 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2

- name: Create XCFramework
uses: whoopinc/swift-create-xcframework@bsneed/xcode15_fix
run: ./create_xcframework.sh

- name: Create release
uses: ncipollo/release-action@v1
Expand Down
14 changes: 14 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"pins" : [
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "64889f0c732f210a935a0ad7cda38f77f876262d",
"version" : "509.1.1"
}
}
],
"version" : 2
}
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ let package = Package(
products: [
.library(
name: "WhoopDIKit",
type: .static,
targets: ["WhoopDIKit", "WhoopDIKitMacros"]),
],
dependencies: [
Expand Down
669 changes: 669 additions & 0 deletions WhoopDIKit/WhoopDIKit.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"pins" : [
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "64889f0c732f210a935a0ad7cda38f77f876262d",
"version" : "509.1.1"
}
}
],
"version" : 2
}
18 changes: 18 additions & 0 deletions WhoopDIKit/WhoopDIKit/WhoopDIKit.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// WhoopDIKit.h
// WhoopDIKit
//
// Created by Jack Rosen on 5/3/24.
//

#import <Foundation/Foundation.h>

//! Project version number for WhoopDIKit.
FOUNDATION_EXPORT double WhoopDIKitVersionNumber;

//! Project version string for WhoopDIKit.
FOUNDATION_EXPORT const unsigned char WhoopDIKitVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <WhoopDIKit/PublicHeader.h>


18 changes: 18 additions & 0 deletions WhoopDIKit/WhoopDIKitMacros/WhoopDIKitMacros.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// WhoopDIKitMacros.h
// WhoopDIKitMacros
//
// Created by Jack Rosen on 5/3/24.
//

#import <Foundation/Foundation.h>

//! Project version number for WhoopDIKitMacros.
FOUNDATION_EXPORT double WhoopDIKitMacrosVersionNumber;

//! Project version string for WhoopDIKitMacros.
FOUNDATION_EXPORT const unsigned char WhoopDIKitMacrosVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <WhoopDIKitMacros/PublicHeader.h>


7 changes: 7 additions & 0 deletions create_xcframework.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
xcodebuild archive -project WhoopDIKit/WhoopDIKit.xcodeproj -scheme WhoopDIKit -destination "generic/platform=iOS" -archivePath "archives/WhoopDIKit-ios.xcarchive"
xcodebuild archive -project WhoopDIKit/WhoopDIKit.xcodeproj -scheme WhoopDIKit -destination "generic/platform=iOS Simulator" -archivePath "archives/WhoopDIKit-iosSimulator.xcarchive"

xcodebuild -create-xcframework -archive archives/WhoopDIKit-ios.xcarchive -framework WhoopDIKit.framework -archive archives/WhoopDIKit-iosSimulator.xcarchive -framework WhoopDIKit.framework -output WhoopDIKit.xcframework

zip -r WhoopDIKit.zip WhoopDIKit.xcframework
shasum -a 256 WhoopDIKit.zip | awk '{print $1}' > WhoopDIKit.sha256
4 changes: 0 additions & 4 deletions install.sh

This file was deleted.

0 comments on commit c911bea

Please sign in to comment.