Skip to content

Commit 538e65c

Browse files
authored
JSON decoder / encoder (#459)
feat: JSON decoder / encoder Decoder to map server response directly to the data models. feat: request / response-based interface Configurable request objects require less convenience methods to interact with PubNub REST API. feat: network layer rewritten as module
1 parent 70eabd3 commit 538e65c

File tree

1,264 files changed

+33233
-32499
lines changed

Some content is hidden

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

1,264 files changed

+33233
-32499
lines changed

.github/workflows/commands-handler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
ref: v1
3636
token: ${{ secrets.GH_TOKEN }}
3737
path: .github/.release/actions
38+
- name: Setup Node.js 20.x
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: 20
3842
- name: Process changelog entries
3943
if: steps.user-check.outputs.expected-user == 'true'
4044
uses: ./.github/.release/actions/actions/commands

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
pull_request:
55
branches: [master]
66
types: [closed]
7-
87
env:
98
LANG: en_US.UTF-8
109
LANGUAGE: en_US.UTF-8
@@ -14,9 +13,9 @@ env:
1413
jobs:
1514
check-release:
1615
name: Check release required
16+
if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true
1717
runs-on:
1818
group: Default
19-
if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true
2019
outputs:
2120
release: ${{ steps.check.outputs.ready }}
2221
steps:

.github/workflows/run-tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ defaults:
1010
run:
1111
shell: bash
1212
env:
13-
TESTS_PAM_PUBLISH_KEY: ${{ secrets.SDK_PAM_PUB_KEY }}
1413
TESTS_PAM_SUBSCRIBE_KEY: ${{ secrets.SDK_PAM_SUB_KEY }}
15-
TESTS_PUBLISH_KEY: ${{ secrets.SDK_PUB_KEY }}
14+
TESTS_PAM_PUBLISH_KEY: ${{ secrets.SDK_PAM_PUB_KEY }}
1615
TESTS_SUBSCRIBE_KEY: ${{ secrets.SDK_SUB_KEY }}
16+
TESTS_PUBLISH_KEY: ${{ secrets.SDK_PUB_KEY }}
1717
LANG: en_US.UTF-8
1818
LANGUAGE: en_US.UTF-8
1919
LC_ALL: en_US.UTF-8
2020
LC_CTYPE: en_US.UTF-8
21-
21+
2222
jobs:
2323
tests:
2424
name: Integration and Unit tests
@@ -82,12 +82,13 @@ jobs:
8282
with:
8383
ruby-version: 3.2.2
8484
bundler-cache: true
85-
- name: Setup CocoaPods
86-
run: gem install cocoapods
8785
- name: Setup Node.js 20.x
8886
uses: actions/setup-node@v4
8987
with:
90-
node-version: "20.x"
88+
node-version: 20
89+
- run: npm version
90+
- name: Setup CocoaPods
91+
run: gem install cocoapods
9192
- name: Cache installed Pods
9293
uses: actions/cache@v4
9394
with:

.github/workflows/run-validations.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
ref: v1
2626
token: ${{ secrets.GH_TOKEN }}
2727
path: .github/.release/actions
28+
- name: Setup Node.js 20.x
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 20
2832
- name: "Run '.pubnub.yml' file validation"
2933
uses: ./.github/.release/actions/actions/validators/pubnub-yml
3034
with:

.pubnub.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
---
22
name: objective-c
33
scm: github.com/pubnub/objective-c
4-
version: "5.5.0"
4+
version: "5.6.0"
55
schema: 1
66
changelog:
7+
- date: 2024-06-27
8+
version: v5.6.0
9+
changes:
10+
- type: feature
11+
text: "Decoder to map server response directly to the data models."
12+
- type: feature
13+
text: "Configurable request objects require less convenience methods to interact with PubNub REST API."
14+
- type: feature
15+
text: "Network layer rewritten as module."
716
- date: 2024-06-12
817
version: v5.5.0
918
changes:
@@ -1349,7 +1358,7 @@ sdks:
13491358
- distribution-type: source
13501359
distribution-repository: GitHub release
13511360
package-name: PubNub.framework
1352-
location: https://github.com/pubnub/objective-c/archive/refs/tags/v5.5.0.zip
1361+
location: https://github.com/pubnub/objective-c/archive/refs/tags/v5.6.0.zip
13531362
supported-platforms:
13541363
supported-operating-systems:
13551364
macOS:
@@ -1410,7 +1419,7 @@ sdks:
14101419
- distribution-type: library
14111420
distribution-repository: GitHub release
14121421
package-name: PubNub.ios.xcframework.tar.gz
1413-
location: https://github.com/pubnub/objective-c/releases/download/v5.5.0/PubNub.ios.xcframework.tar.gz
1422+
location: https://github.com/pubnub/objective-c/releases/download/v5.6.0/PubNub.ios.xcframework.tar.gz
14141423
supported-platforms:
14151424
supported-operating-systems:
14161425
iOS:
@@ -1429,7 +1438,7 @@ sdks:
14291438
- distribution-type: library
14301439
distribution-repository: GitHub release
14311440
package-name: PubNub.macos.framework.tar.gz
1432-
location: https://github.com/pubnub/objective-c/releases/download/v5.5.0/PubNub.macos.framework.tar.gz
1441+
location: https://github.com/pubnub/objective-c/releases/download/v5.6.0/PubNub.macos.framework.tar.gz
14331442
supported-platforms:
14341443
supported-operating-systems:
14351444
macOS:
@@ -1445,7 +1454,7 @@ sdks:
14451454
- distribution-type: library
14461455
distribution-repository: GitHub release
14471456
package-name: PubNub.tvos.xcframework.tar.gz
1448-
location: https://github.com/pubnub/objective-c/releases/download/v5.5.0/PubNub.tvos.xcframework.tar.gz
1457+
location: https://github.com/pubnub/objective-c/releases/download/v5.6.0/PubNub.tvos.xcframework.tar.gz
14491458
supported-platforms:
14501459
supported-operating-systems:
14511460
tvOS:

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## v5.6.0
2+
June 27 2024
3+
4+
#### Added
5+
- Decoder to map server response directly to the data models.
6+
- Configurable request objects require less convenience methods to interact with PubNub REST API.
7+
- Network layer rewritten as module.
8+
19
## v5.5.0
210
June 12 2024
311

Example/PubNub/PNAppDelegate.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ - (void)pubNubInit {
9292
self.client.logger.maximumNumberOfLogFiles = 10;
9393
[self.client.logger setLogLevel:PNVerboseLogLevel];
9494

95+
9596
// Bind didReceiveMessage, didReceiveStatus, and didReceivePresenceEvent 'listeners' to this delegate
9697
// just be sure the target has implemented the PNObjectEventListener extension
9798
[self.client addListener:self];

Example/PubNub/PubNub Example-Info.plist

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
<true/>
3131
<key>NSExceptionDomains</key>
3232
<dict>
33+
<key>ps.pndsn.com</key>
34+
<dict>
35+
<key>NSExceptionAllowsInsecureHTTPLoads</key>
36+
<true/>
37+
<key>NSIncludesSubdomains</key>
38+
<true/>
39+
</dict>
3340
<key>pubsub.pubnub.com</key>
3441
<dict>
3542
<key>NSExceptionAllowsInsecureHTTPLoads</key>

0 commit comments

Comments
 (0)