Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON decoder / encoder #459

Merged
merged 20 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .github/workflows/commands-handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
ref: v1
token: ${{ secrets.GH_TOKEN }}
path: .github/.release/actions
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
- name: Process changelog entries
if: steps.user-check.outputs.expected-user == 'true'
uses: ./.github/.release/actions/actions/commands
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
pull_request:
branches: [master]
types: [closed]

env:
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
Expand All @@ -14,9 +13,9 @@ env:
jobs:
check-release:
name: Check release required
if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true
runs-on:
group: Default
if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true
outputs:
release: ${{ steps.check.outputs.ready }}
steps:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ defaults:
run:
shell: bash
env:
TESTS_PAM_PUBLISH_KEY: ${{ secrets.SDK_PAM_PUB_KEY }}
TESTS_PAM_SUBSCRIBE_KEY: ${{ secrets.SDK_PAM_SUB_KEY }}
TESTS_PUBLISH_KEY: ${{ secrets.SDK_PUB_KEY }}
TESTS_PAM_PUBLISH_KEY: ${{ secrets.SDK_PAM_PUB_KEY }}
TESTS_SUBSCRIBE_KEY: ${{ secrets.SDK_SUB_KEY }}
TESTS_PUBLISH_KEY: ${{ secrets.SDK_PUB_KEY }}
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
LC_ALL: en_US.UTF-8
LC_CTYPE: en_US.UTF-8

jobs:
tests:
name: Integration and Unit tests
Expand Down Expand Up @@ -82,12 +82,13 @@ jobs:
with:
ruby-version: 3.2.2
bundler-cache: true
- name: Setup CocoaPods
run: gem install cocoapods
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: 20
- run: npm version
- name: Setup CocoaPods
run: gem install cocoapods
- name: Cache installed Pods
uses: actions/cache@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/run-validations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
ref: v1
token: ${{ secrets.GH_TOKEN }}
path: .github/.release/actions
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
- name: "Run '.pubnub.yml' file validation"
uses: ./.github/.release/actions/actions/validators/pubnub-yml
with:
Expand Down
19 changes: 14 additions & 5 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
---
name: objective-c
scm: github.com/pubnub/objective-c
version: "5.5.0"
version: "5.6.0"
schema: 1
changelog:
- date: 2024-06-27
version: v5.6.0
changes:
- type: feature
text: "Decoder to map server response directly to the data models."
- type: feature
text: "Configurable request objects require less convenience methods to interact with PubNub REST API."
- type: feature
text: "Network layer rewritten as module."
- date: 2024-06-12
version: v5.5.0
changes:
Expand Down Expand Up @@ -1349,7 +1358,7 @@ sdks:
- distribution-type: source
distribution-repository: GitHub release
package-name: PubNub.framework
location: https://github.com/pubnub/objective-c/archive/refs/tags/v5.5.0.zip
location: https://github.com/pubnub/objective-c/archive/refs/tags/v5.6.0.zip
supported-platforms:
supported-operating-systems:
macOS:
Expand Down Expand Up @@ -1410,7 +1419,7 @@ sdks:
- distribution-type: library
distribution-repository: GitHub release
package-name: PubNub.ios.xcframework.tar.gz
location: https://github.com/pubnub/objective-c/releases/download/v5.5.0/PubNub.ios.xcframework.tar.gz
location: https://github.com/pubnub/objective-c/releases/download/v5.6.0/PubNub.ios.xcframework.tar.gz
supported-platforms:
supported-operating-systems:
iOS:
Expand All @@ -1429,7 +1438,7 @@ sdks:
- distribution-type: library
distribution-repository: GitHub release
package-name: PubNub.macos.framework.tar.gz
location: https://github.com/pubnub/objective-c/releases/download/v5.5.0/PubNub.macos.framework.tar.gz
location: https://github.com/pubnub/objective-c/releases/download/v5.6.0/PubNub.macos.framework.tar.gz
supported-platforms:
supported-operating-systems:
macOS:
Expand All @@ -1445,7 +1454,7 @@ sdks:
- distribution-type: library
distribution-repository: GitHub release
package-name: PubNub.tvos.xcframework.tar.gz
location: https://github.com/pubnub/objective-c/releases/download/v5.5.0/PubNub.tvos.xcframework.tar.gz
location: https://github.com/pubnub/objective-c/releases/download/v5.6.0/PubNub.tvos.xcframework.tar.gz
supported-platforms:
supported-operating-systems:
tvOS:
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## v5.6.0
June 27 2024

#### Added
- Decoder to map server response directly to the data models.
- Configurable request objects require less convenience methods to interact with PubNub REST API.
- Network layer rewritten as module.

## v5.5.0
June 12 2024

Expand Down
1 change: 1 addition & 0 deletions Example/PubNub/PNAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ - (void)pubNubInit {
self.client.logger.maximumNumberOfLogFiles = 10;
[self.client.logger setLogLevel:PNVerboseLogLevel];


// Bind didReceiveMessage, didReceiveStatus, and didReceivePresenceEvent 'listeners' to this delegate
// just be sure the target has implemented the PNObjectEventListener extension
[self.client addListener:self];
Expand Down
7 changes: 7 additions & 0 deletions Example/PubNub/PubNub Example-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>ps.pndsn.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
<key>pubsub.pubnub.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
Expand Down
Loading
Loading