Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to use whoop workflow #11

Merged
merged 10 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
- uses: actions/checkout@v2

- name: Create XCFramework
uses: unsignedapps/[email protected]
run: ./create_xcframework.sh

- name: Create release
uses: ncipollo/release-action@v1
with:
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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we need to do this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember if I actually need this, I need to check

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed it, it wasn't needed

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[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't actually see a macro implementation anywhere, it that expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation is in a previous pr, this just adds a new xcproject with it


// 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
Loading