-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial support for SPM * Commit ETTrace prebuilt * Added CocoaPods podspec * Fixed Crashlytics imports for SPM support * Fixed Crashlytics imports for SPM support * Add Package.swift configuration * Update ETTraceRunner for SPM * Update build script and Readme * Fix exclude * Added EMG prefix to Dummy class * Removed prebuild folder * Use SPM to build everything * Run github action on this branch * Fix build script * Log destinations * Use generic destination * Use C++17 * Add scripts to autorelease on tag creation * Chmod build runner * Add C++ version to build script * Use ObjetiveC JSONWrapper due to performance issues * Remove comment
- Loading branch information
Showing
51 changed files
with
306 additions
and
1,264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Pull Request Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Show destinations | ||
run: xcodebuild -scheme ETTrace -showdestinations | ||
- name: Build ETTrace for iOS Simulator | ||
run: xcodebuild build -scheme ETTrace -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' CLANG_CXX_LANGUAGE_STANDARD=c++17 | ||
- name: Build ETTrace for iOS | ||
run: xcodebuild build -scheme ETTrace -sdk iphoneos -destination 'generic/platform=iOS' CLANG_CXX_LANGUAGE_STANDARD=c++17 | ||
- name: Build ETTrace for macOS | ||
run: xcodebuild build -scheme ETTraceRunner -sdk macosx -destination 'generic/platform=macOS' ONLY_ACTIVE_ARCH=NO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Release Workflow | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
release: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Setup Signing Certificate | ||
uses: apple-actions/import-codesign-certs@v2 | ||
with: | ||
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }} | ||
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }} | ||
- name: Build ETTrace xcframework | ||
run: sh build.sh | ||
- name: Zip xcframework | ||
run: zip -r ETTrace.xcframework.zip ETTrace.xcframework | ||
- name: Build ETTraceRunner | ||
run: sh build_runner.sh | ||
env: | ||
SIGNING_IDENTITY: ${{ secrets.SIGNING_IDENTITY }} | ||
- name: Upload Artifact | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
ETTrace.xcframework.zip | ||
ETTraceRunner | ||
body: | ||
Release ${{ github.ref }} | ||
Automated release created by GitHub Actions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// DummyEmptyClass.h | ||
// | ||
// | ||
// Created by Itay Brenner on 2/6/23. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
// This class is required becasue SPM doesn't support header only targets | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface EMGDummyEmptyClass : NSObject | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// DummyEmptyClass.m | ||
// | ||
// | ||
// Created by Itay Brenner on 2/6/23. | ||
// | ||
|
||
#import "EMGDummyEmptyClass.h" | ||
|
||
// This class is required becasue SPM doesn't support header only targets | ||
|
||
@implementation EMGDummyEmptyClass | ||
|
||
@end |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
ETTrace/ETTrace.xcodeproj/project.xcworkspace/contents.xcworkspacedata
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
ETTrace/ETTrace.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
ETTrace/ETTrace.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
ETTrace/ETTrace.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
// | ||
|
||
import Foundation | ||
import AppKit | ||
|
||
func safeShell(_ command: String) throws { | ||
let task = Process() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// | ||
// main.swift | ||
// | ||
// | ||
// Created by Itay Brenner on 6/6/23. | ||
// | ||
|
||
PerfAnalysisRunner.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// TestClass.h | ||
// ETTrace | ||
// | ||
// Created by Noah Martin on 4/13/23. | ||
// | ||
|
||
#ifndef TestClass_h | ||
#define TestClass_h | ||
|
||
@import Foundation; | ||
|
||
@interface JSONWrapper : NSObject | ||
|
||
// Use NSObject here because we cannot import Swift packages from the public header to avoid circular dependencies | ||
+ (NSDictionary *)toDictionary:(NSObject *)dictionary; | ||
+ (NSData *)toData:(NSObject *)input; | ||
|
||
@end | ||
|
||
|
||
#endif /* TestClass_h */ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.