Skip to content

Commit 0035e78

Browse files
authored
Add getting started guides to PubNub.xcworkspace (#213)
chore: add Getting Started guides to PubNub.xcworkspace as example iOS applications chore: update `Fastfile` and standardize its environment files
1 parent d89e340 commit 0035e78

File tree

53 files changed

+1407
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1407
-152
lines changed

.github/workflows/run-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Tests
22

33
on:
44
push:
5+
branches-ignore:
6+
- master
57
workflow_dispatch:
68
concurrency:
79
group: ${{ github.workflow }}-${{ github.ref }}
@@ -18,7 +20,7 @@ env:
1820

1921
jobs:
2022
tests:
21-
name: Integration and Unit tests
23+
name: Unit tests
2224
runs-on:
2325
group: macos-gh
2426
strategy:

.github/workflows/run-validations.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Validations
22

33
on:
44
push:
5+
branches-ignore:
6+
- master
57
workflow_dispatch:
68
concurrency:
79
group: ${{ github.workflow }}-${{ github.ref }}
@@ -76,7 +78,7 @@ jobs:
7678
if: failure()
7779
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
7880
demo-app-validation:
79-
name: Validate demo application
81+
name: Validate demo applications
8082
runs-on:
8183
group: macos-gh
8284
steps:
@@ -105,7 +107,7 @@ jobs:
105107
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
106108
restore-keys: |
107109
${{ runner.os }}-spm-
108-
- name: Demo application build validation
110+
- name: Demo applications build validation
109111
run: bundle exec fastlane build_example --env ios
110112
- name: Cancel workflow runs for commit on error
111113
if: failure()

.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ excluded:
1313
- fastlane
1414
- Tests
1515
- Pods
16+
- Examples
1617
opt_in_rules:
1718
- force_unwrapping
1819
- overridden_super_call

Examples/Examples.xcodeproj/project.pbxproj renamed to Examples/Example-iOS/Example-iOS.xcodeproj/project.pbxproj

Lines changed: 30 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@
1616
359F779F22B7FEF700B6B46F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 359F779E22B7FEF700B6B46F /* Assets.xcassets */; };
1717
359F77A222B7FEF700B6B46F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 359F77A022B7FEF700B6B46F /* LaunchScreen.storyboard */; };
1818
35F0258F22BAC6C9007BD7D3 /* ConfigDetailTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 35F0258E22BAC6C9007BD7D3 /* ConfigDetailTableViewController.swift */; };
19-
3D26A6152C6BB68A007B4539 /* PubNubSDK in Frameworks */ = {isa = PBXBuildFile; productRef = 3D26A6142C6BB68A007B4539 /* PubNubSDK */; };
2019
3D34160D2BB5CE20008558A0 /* DetailTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3D34160C2BB5CE20008558A0 /* DetailTableViewController.swift */; };
21-
792CF27428C4FBB300C83408 /* PubNubMembership in Frameworks */ = {isa = PBXBuildFile; productRef = 792CF27328C4FBB300C83408 /* PubNubMembership */; };
22-
792CF27628C4FBB300C83408 /* PubNubSpace in Frameworks */ = {isa = PBXBuildFile; productRef = 792CF27528C4FBB300C83408 /* PubNubSpace */; };
23-
792CF27828C4FBB300C83408 /* PubNubUser in Frameworks */ = {isa = PBXBuildFile; productRef = 792CF27728C4FBB300C83408 /* PubNubUser */; };
20+
3D59D4882DF98D4D0021D3CB /* PubNubSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D59D4872DF98D4D0021D3CB /* PubNubSDK.framework */; };
21+
3D59D4892DF98D4D0021D3CB /* PubNubSDK.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3D59D4872DF98D4D0021D3CB /* PubNubSDK.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
22+
3D59D48B2DF98D540021D3CB /* PubNubUser.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D59D48A2DF98D540021D3CB /* PubNubUser.framework */; };
23+
3D59D48C2DF98D540021D3CB /* PubNubUser.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3D59D48A2DF98D540021D3CB /* PubNubUser.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
24+
3D59D48E2DF98D580021D3CB /* PubNubSpace.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D59D48D2DF98D580021D3CB /* PubNubSpace.framework */; };
25+
3D59D48F2DF98D580021D3CB /* PubNubSpace.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3D59D48D2DF98D580021D3CB /* PubNubSpace.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
26+
3D59D4912DF98D5C0021D3CB /* PubNubMembership.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D59D4902DF98D5C0021D3CB /* PubNubMembership.framework */; };
27+
3D59D4922DF98D5C0021D3CB /* PubNubMembership.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3D59D4902DF98D5C0021D3CB /* PubNubMembership.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
2428
/* End PBXBuildFile section */
2529

2630
/* Begin PBXCopyFilesBuildPhase section */
@@ -30,6 +34,10 @@
3034
dstPath = "";
3135
dstSubfolderSpec = 10;
3236
files = (
37+
3D59D4892DF98D4D0021D3CB /* PubNubSDK.framework in Embed Frameworks */,
38+
3D59D48C2DF98D540021D3CB /* PubNubUser.framework in Embed Frameworks */,
39+
3D59D4922DF98D5C0021D3CB /* PubNubMembership.framework in Embed Frameworks */,
40+
3D59D48F2DF98D580021D3CB /* PubNubSpace.framework in Embed Frameworks */,
3341
);
3442
name = "Embed Frameworks";
3543
runOnlyForDeploymentPostprocessing = 0;
@@ -61,6 +69,10 @@
6169
359F77AA22B7FF5700B6B46F /* PubNub.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = PubNub.framework; sourceTree = BUILT_PRODUCTS_DIR; };
6270
35F0258E22BAC6C9007BD7D3 /* ConfigDetailTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConfigDetailTableViewController.swift; sourceTree = "<group>"; };
6371
3D34160C2BB5CE20008558A0 /* DetailTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DetailTableViewController.swift; sourceTree = "<group>"; };
72+
3D59D4872DF98D4D0021D3CB /* PubNubSDK.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = PubNubSDK.framework; sourceTree = BUILT_PRODUCTS_DIR; };
73+
3D59D48A2DF98D540021D3CB /* PubNubUser.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = PubNubUser.framework; sourceTree = BUILT_PRODUCTS_DIR; };
74+
3D59D48D2DF98D580021D3CB /* PubNubSpace.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = PubNubSpace.framework; sourceTree = BUILT_PRODUCTS_DIR; };
75+
3D59D4902DF98D5C0021D3CB /* PubNubMembership.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = PubNubMembership.framework; sourceTree = BUILT_PRODUCTS_DIR; };
6476
792CF27A28C4FCB800C83408 /* PubNub SDK */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "PubNub SDK"; path = ..; sourceTree = "<group>"; };
6577
/* End PBXFileReference section */
6678

@@ -69,10 +81,10 @@
6981
isa = PBXFrameworksBuildPhase;
7082
buildActionMask = 2147483647;
7183
files = (
72-
792CF27428C4FBB300C83408 /* PubNubMembership in Frameworks */,
73-
3D26A6152C6BB68A007B4539 /* PubNubSDK in Frameworks */,
74-
792CF27828C4FBB300C83408 /* PubNubUser in Frameworks */,
75-
792CF27628C4FBB300C83408 /* PubNubSpace in Frameworks */,
84+
3D59D4882DF98D4D0021D3CB /* PubNubSDK.framework in Frameworks */,
85+
3D59D48B2DF98D540021D3CB /* PubNubUser.framework in Frameworks */,
86+
3D59D4912DF98D5C0021D3CB /* PubNubMembership.framework in Frameworks */,
87+
3D59D48E2DF98D580021D3CB /* PubNubSpace.framework in Frameworks */,
7688
);
7789
runOnlyForDeploymentPostprocessing = 0;
7890
};
@@ -95,7 +107,7 @@
95107
children = (
96108
792CF27928C4FCB800C83408 /* Packages */,
97109
35F0258A22BAC173007BD7D3 /* Sources */,
98-
359F779622B7FEF600B6B46F /* iOS Example */,
110+
359F779622B7FEF600B6B46F /* Example-iOS */,
99111
359F779522B7FEF600B6B46F /* Products */,
100112
359F77A922B7FF5700B6B46F /* Frameworks */,
101113
);
@@ -109,19 +121,22 @@
109121
name = Products;
110122
sourceTree = "<group>";
111123
};
112-
359F779622B7FEF600B6B46F /* iOS Example */ = {
124+
359F779622B7FEF600B6B46F /* Example-iOS */ = {
113125
isa = PBXGroup;
114126
children = (
115127
35304F9022FF64D4006A02CA /* iOS Example.entitlements */,
116128
359F77CF22B8070900B6B46F /* Resources */,
117129
);
118-
name = "iOS Example";
119130
path = "Example-iOS";
120131
sourceTree = "<group>";
121132
};
122133
359F77A922B7FF5700B6B46F /* Frameworks */ = {
123134
isa = PBXGroup;
124135
children = (
136+
3D59D4872DF98D4D0021D3CB /* PubNubSDK.framework */,
137+
3D59D48A2DF98D540021D3CB /* PubNubUser.framework */,
138+
3D59D48D2DF98D580021D3CB /* PubNubSpace.framework */,
139+
3D59D4902DF98D5C0021D3CB /* PubNubMembership.framework */,
125140
359F77AA22B7FF5700B6B46F /* PubNub.framework */,
126141
);
127142
name = Frameworks;
@@ -176,10 +191,6 @@
176191
);
177192
name = "iOS Example";
178193
packageProductDependencies = (
179-
792CF27328C4FBB300C83408 /* PubNubMembership */,
180-
792CF27528C4FBB300C83408 /* PubNubSpace */,
181-
792CF27728C4FBB300C83408 /* PubNubUser */,
182-
3D26A6142C6BB68A007B4539 /* PubNubSDK */,
183194
);
184195
productName = swiftSdkiOS;
185196
productReference = 359F779422B7FEF600B6B46F /* iOS Example.app */;
@@ -206,7 +217,7 @@
206217
};
207218
};
208219
};
209-
buildConfigurationList = 359F778F22B7FEF600B6B46F /* Build configuration list for PBXProject "Examples" */;
220+
buildConfigurationList = 359F778F22B7FEF600B6B46F /* Build configuration list for PBXProject "Example-iOS" */;
210221
compatibilityVersion = "Xcode 9.3";
211222
developmentRegion = en;
212223
hasScannedForEncodings = 0;
@@ -215,6 +226,8 @@
215226
Base,
216227
);
217228
mainGroup = 359F778B22B7FEF600B6B46F;
229+
packageReferences = (
230+
);
218231
productRefGroup = 359F779522B7FEF600B6B46F /* Products */;
219232
projectDirPath = "";
220233
projectRoot = "";
@@ -443,7 +456,7 @@
443456
/* End XCBuildConfiguration section */
444457

445458
/* Begin XCConfigurationList section */
446-
359F778F22B7FEF600B6B46F /* Build configuration list for PBXProject "Examples" */ = {
459+
359F778F22B7FEF600B6B46F /* Build configuration list for PBXProject "Example-iOS" */ = {
447460
isa = XCConfigurationList;
448461
buildConfigurations = (
449462
359F77A422B7FEF700B6B46F /* Debug */,
@@ -462,25 +475,6 @@
462475
defaultConfigurationName = Release;
463476
};
464477
/* End XCConfigurationList section */
465-
466-
/* Begin XCSwiftPackageProductDependency section */
467-
3D26A6142C6BB68A007B4539 /* PubNubSDK */ = {
468-
isa = XCSwiftPackageProductDependency;
469-
productName = PubNubSDK;
470-
};
471-
792CF27328C4FBB300C83408 /* PubNubMembership */ = {
472-
isa = XCSwiftPackageProductDependency;
473-
productName = PubNubMembership;
474-
};
475-
792CF27528C4FBB300C83408 /* PubNubSpace */ = {
476-
isa = XCSwiftPackageProductDependency;
477-
productName = PubNubSpace;
478-
};
479-
792CF27728C4FBB300C83408 /* PubNubUser */ = {
480-
isa = XCSwiftPackageProductDependency;
481-
productName = PubNubUser;
482-
};
483-
/* End XCSwiftPackageProductDependency section */
484478
};
485479
rootObject = 359F778C22B7FEF600B6B46F /* Project object */;
486480
}

Examples/Example-iOS/Example-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/Examples.xcodeproj/xcshareddata/xcschemes/Example-iOS.xcscheme renamed to Examples/Example-iOS/Example-iOS.xcodeproj/xcshareddata/xcschemes/Example-iOS.xcscheme

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
BlueprintIdentifier = "359F779322B7FEF600B6B46F"
1818
BuildableName = "iOS Example.app"
1919
BlueprintName = "iOS Example"
20-
ReferencedContainer = "container:Examples.xcodeproj">
20+
ReferencedContainer = "container:Example-iOS.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
2323
</BuildActionEntries>
@@ -49,7 +49,7 @@
4949
BlueprintIdentifier = "359F779322B7FEF600B6B46F"
5050
BuildableName = "iOS Example.app"
5151
BlueprintName = "iOS Example"
52-
ReferencedContainer = "container:Examples.xcodeproj">
52+
ReferencedContainer = "container:Example-iOS.xcodeproj">
5353
</BuildableReference>
5454
</BuildableProductRunnable>
5555
<EnvironmentVariables>
@@ -73,7 +73,7 @@
7373
BlueprintIdentifier = "359F779322B7FEF600B6B46F"
7474
BuildableName = "iOS Example.app"
7575
BlueprintName = "iOS Example"
76-
ReferencedContainer = "container:Examples.xcodeproj">
76+
ReferencedContainer = "container:Example-iOS.xcodeproj">
7777
</BuildableReference>
7878
</BuildableProductRunnable>
7979
</ProfileAction>

0 commit comments

Comments
 (0)