-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
198 additions
and
1,393 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
2 changes: 1 addition & 1 deletion
2
...ject.xcworkspace/contents.xcworkspacedata → ...kage.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,24 @@ | ||
#!/usr/bin/xcrun make -f | ||
|
||
CARTHAGE_FOLDER=Carthage | ||
CARTHAGE_FLAGS=--platform iOS,tvOS,watchOS --cache-builds --new-resolver | ||
|
||
.PHONY: all | ||
all: bootstrap | ||
@echo "Building the project..." | ||
@xcodebuild build | ||
@echo "... done.\n" | ||
|
||
.PHONY: bootstrap | ||
bootstrap: | ||
@echo "Bootstrapping dependencies..." | ||
@carthage bootstrap $(CARTHAGE_FLAGS) | ||
@echo "... done.\n" | ||
|
||
.PHONY: update | ||
update: | ||
@echo "Updating dependencies..." | ||
@carthage update $(CARTHAGE_FLAGS) | ||
@echo "... done.\n" | ||
all: test-ios test-tvos | ||
|
||
.PHONY: package | ||
package: bootstrap | ||
@echo "Packaging binaries..." | ||
@mkdir -p archive | ||
@carthage build --no-skip-current | ||
@carthage archive --output archive | ||
.PHONY: test-ios | ||
test-ios: | ||
@echo "Running iOS unit tests..." | ||
@xcodebuild test -scheme SRGNetwork -destination 'platform=iOS Simulator,name=iPhone 11' 2> /dev/null | ||
@echo "... done.\n" | ||
|
||
.PHONY: clean | ||
clean: | ||
@echo "Cleaning up build products..." | ||
@xcodebuild clean | ||
@rm -rf $(CARTHAGE_FOLDER) | ||
.PHONY: test-tvos | ||
test-tvos: | ||
@echo "Running tvOS unit tests..." | ||
@xcodebuild test -scheme SRGNetwork -destination 'platform=tvOS Simulator,name=Apple TV' 2> /dev/null | ||
@echo "... done.\n" | ||
|
||
.PHONY: help | ||
help: | ||
@echo "The following targets are available:" | ||
@echo " all Build project dependencies and the project" | ||
@echo " bootstrap Build dependencies as declared in Cartfile.resolved" | ||
@echo " update Update and build dependencies" | ||
@echo " package Build and package the framework for attaching to github releases" | ||
@echo " clean Clean the project and its dependencies" | ||
@echo " help Display this message" | ||
@echo " all Build and run unit tests for all platforms" | ||
@echo " test-ios Build and run unit tests for iOS" | ||
@echo " test-tvos Build and run unit tests for tvOS" | ||
@echo " help Display this help message" |
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,34 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "libextobjc", | ||
"repositoryURL": "https://github.com/SRGSSR/libextobjc.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "30ee5b73bdf57a826978aa146881277f22369be1", | ||
"version": "0.6.0-srg3" | ||
} | ||
}, | ||
{ | ||
"package": "MAKVONotificationCenter", | ||
"repositoryURL": "https://github.com/SRGSSR/MAKVONotificationCenter.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "60395e0601ffd4a784856b423d4cac558366276d", | ||
"version": "1.0.0-srg5" | ||
} | ||
}, | ||
{ | ||
"package": "SRGLogger", | ||
"repositoryURL": "https://github.com/SRGSSR/srglogger-apple.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "cfc39d1223ed039aeb7df38c6c7570977b22d1aa", | ||
"version": "3.0.0" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
Oops, something went wrong.