Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #53 from justeat/fix-package
Browse files Browse the repository at this point in the history
Fix package and use SPM in demo app
  • Loading branch information
albertodebortoli authored Jun 27, 2022
2 parents c6c005f + 0f79d9c commit 10eec07
Show file tree
Hide file tree
Showing 73 changed files with 773 additions and 1,633 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/pull-request-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ jobs:
uses: ruby/[email protected]
with:
bundler-cache: true
- name: Run pod install
- name: Build for testing
run: |
set -eo pipefail
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
bundle exec pod install --project-directory=Example
- name: Run tests
run: bundle exec fastlane unit_tests device:'iPhone 11'
- name: Validate lib
xcodebuild build-for-testing \
-scheme Shock \
-destination "platform=iOS Simulator,OS=15.2,name=iPhone 13"
- name: Test without building
run: |
xcodebuild test-without-building \
-scheme Shock \
-destination "platform=iOS Simulator,OS=15.2,name=iPhone 13"
- name: Validate pod
run: |
set -eo pipefail
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
Expand Down
3 changes: 1 addition & 2 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
2.5.3

3.0.2

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
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
version = "1.7">
LastUpgradeVersion = "1340"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
Expand All @@ -14,10 +14,24 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "Shock_Example.app"
BlueprintName = "Shock_Example"
ReferencedContainer = "container:Shock.xcodeproj">
BlueprintIdentifier = "Shock_UnitTests"
BuildableName = "Shock_UnitTests"
BlueprintName = "Shock_UnitTests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Shock"
BuildableName = "Shock"
BlueprintName = "Shock"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
Expand All @@ -28,10 +42,10 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "Shock_Tests.xctest"
BlueprintName = "Shock_Tests"
ReferencedContainer = "container:Shock.xcodeproj">
BlueprintIdentifier = "UnitTests"
BuildableName = "UnitTests"
BlueprintName = "UnitTests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -40,33 +54,16 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "Shock_Example.app"
BlueprintName = "Shock_Example"
ReferencedContainer = "container:Shock.xcodeproj">
</BuildableReference>
</MacroExpansion>
<TestPlans>
<TestPlanReference
reference = "container:Tests/UnitTests.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "Shock_Tests.xctest"
BlueprintName = "Shock_Tests"
ReferencedContainer = "container:Shock.xcodeproj">
BlueprintIdentifier = "UnitTests"
BuildableName = "UnitTests"
BlueprintName = "UnitTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
Expand All @@ -81,33 +78,22 @@
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "Shock_Example.app"
BlueprintName = "Shock_Example"
ReferencedContainer = "container:Shock.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "Shock_Example.app"
BlueprintName = "Shock_Example"
ReferencedContainer = "container:Shock.xcodeproj">
BlueprintIdentifier = "Shock_UnitTests"
BuildableName = "Shock_UnitTests"
BlueprintName = "Shock_UnitTests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildableProductRunnable>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
Loading

0 comments on commit 10eec07

Please sign in to comment.