Skip to content

Commit 2468901

Browse files
author
Netraj Patel
committed
Merge branch 'development' into feat/DX-200_clone
2 parents 9df890c + c8055f6 commit 2468901

File tree

19 files changed

+329
-137
lines changed

19 files changed

+329
-137
lines changed

.github/workflows/release-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Build
2525
run: |
2626
# Add commands to build and test your package
27-
xcodebuild -workspace Contentstack.xcworkspace -scheme 'Contentstack' -destination 'platform=iOS Simulator,name=iPhone 13 Pro'
27+
xcodebuild -workspace Contentstack.xcworkspace -scheme 'Contentstack' -destination 'platform=iOS Simulator,name=iPhone 15'
2828
2929
- name: CocoaPods trunk push
3030
run: pod trunk push --allow-warnings

.talismanrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
fileignoreconfig:
22
- filename: Contentstack.xcodeproj/project.pbxproj
3-
checksum: 331c4ff2e540e9495ff2a0d030ddd7f7c2eda077cb0b1a58c67fc2312b53658e
4-
version: ""
3+
checksum: 10cb4bc5ca755f7392309a88cd6df510a45f8c527ea2f8edc71e1ae1fda60941
4+
- filename: .github/workflows/sast-scan.yml
5+
checksum: 5554abc81d130557f52d64d253c3a23b41fcf0642a9c599131b2c185665ce581
6+
- filename: PrivacyInfo.xcprivacy
7+
checksum: 7697fa6a0a5e0600d35d4678ffff9ef14c5dff5dc1613d37968de7ded3ff1fd0
8+
version: ""

Contentstack.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ s.version = '3.13.0'
44
s.summary = 'Contentstack is a headless CMS with an API-first approach that puts content at the centre.'
55

66
s.description = <<-DESC
7-
Contentstack is a headless CMS with an API-first approach that puts content at the centre. It is designed to simplify the process of publication by separating code from content.
7+
Contentstack is a headless CMS with an API-first approach that puts content at the centre. It is designed to simplify the process of publication by separating code from content.
88
In a world where content is consumed via countless channels and form factors across mobile, web and IoT. Contentstack reimagines content management by decoupling code from content. Business users manage content – no training or development required. Developers can create cross-platform apps and take advantage of a headless CMS that delivers content through APIs. With an architecture that’s extensible – but without the bloat of legacy CMS – Contentstack cuts down on infrastructure, maintenance, cost and complexity.
99
DESC
1010

Contentstack.xcodeproj/project.pbxproj

Lines changed: 147 additions & 59 deletions
Large diffs are not rendered by default.

Contentstack.xcodeproj/xcshareddata/xcschemes/Contentstack.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1010"
3+
LastUpgradeVersion = "1540"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Contentstack/Asset.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
#import "ContentstackDefinitions.h"
10+
#import <Contentstack/ContentstackDefinitions.h>
1111

1212
BUILT_ASSUME_NONNULL_BEGIN
1313

Contentstack/AssetLibrary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
#import "ContentstackDefinitions.h"
10+
#import <Contentstack/ContentstackDefinitions.h>
1111

1212
BUILT_ASSUME_NONNULL_BEGIN
1313

Contentstack/Config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
#import "ContentstackDefinitions.h"
11-
#import "CSURLSessionDelegate.h"
10+
#import <Contentstack/ContentstackDefinitions.h>
11+
#import <Contentstack/CSURLSessionDelegate.h>
1212
@interface Config : NSObject
1313

1414
/**----------------------------------------------------------------------------------------

Contentstack/ContentType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
#import "ContentstackDefinitions.h"
10+
#import <Contentstack/ContentstackDefinitions.h>
1111

1212
@class Entry;
1313
@class Query;

Contentstack/Entry.h

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
#import "ContentstackDefinitions.h"
10+
#import <Contentstack/ContentstackDefinitions.h>
1111

1212
@class Asset;
1313
@class Group;
@@ -87,6 +87,10 @@ BUILT_ASSUME_NONNULL_BEGIN
8787
* Readonly property to check deletedBy of entry
8888
*/
8989
@property (nonatomic, copy, readonly) NSString *deletedBy;
90+
/**
91+
* Readonly property to check deletedBy of entry
92+
*/
93+
@property (nonatomic, copy, readonly) NSMutableDictionary *localHeaders;
9094

9195

9296
/**
@@ -124,6 +128,36 @@ BUILT_ASSUME_NONNULL_BEGIN
124128
*/
125129
- (void)setHeader:(NSString *)headerValue forKey:(NSString *)headerKey;
126130

131+
/**
132+
Set a single variant uid as header
133+
134+
//'API_KEY' is a ENVIRONMENT Stack API key
135+
136+
//Obj-C
137+
[entryObj variantUid:@"variantUid"];
138+
139+
//Swift
140+
entryObj.variantUid("variantUid")
141+
142+
@param variantUid The variant uid
143+
*/
144+
- (void)variantUid:(NSString *)variantUid;
145+
146+
/**
147+
Set multiple variant uids as header
148+
149+
//'API_KEY' is a ENVIRONMENT Stack API key
150+
151+
//Obj-C
152+
[entryObj variantUids:@["variant1", "variant2"]];
153+
154+
//Swift
155+
entryObj.setHeader(["variant1", "variant2"])
156+
157+
@param variantUids The variant uids
158+
*/
159+
- (void)variantUids:(NSArray *)variantUids;
160+
127161
/**
128162
Set a header for Entry
129163

0 commit comments

Comments
 (0)