Skip to content

Commit c820236

Browse files
committed
Entry - added method addParamKey:andValue:, Query - added method addParamKey:andValue:, Asset - added method addParamKey:andValue:
1 parent 1abe066 commit c820236

File tree

11 files changed

+91
-17
lines changed

11 files changed

+91
-17
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Contentstack.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |s|
22
s.name = 'Contentstack'
3-
s.version = '3.2.0'
3+
s.version = '3.3.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
77
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
9-
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 – Built.io Contentstack cuts down on infrastructure, maintenance, cost and complexity.
9+
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.
1010
DESC
1111

1212
s.homepage = 'https://www.contentstack.com'
@@ -15,7 +15,7 @@ s.author = { 'Built.io' => 'support@contentstack.io' }
1515
s.source = { :git => 'https://github.com/raweng/BuiltIOContentstack-iOS.git', :tag => s.version.to_s }
1616
s.social_media_url = 'https://twitter.com/builtio'
1717

18-
s.ios.deployment_target = '7.0'
18+
s.ios.deployment_target = '8.0'
1919
s.ios.vendored_frameworks = 'SDK/Contentstack.framework'
2020

2121
s.frameworks = 'CoreGraphics', 'MobileCoreServices', 'Security', 'SystemConfiguration'
58.3 KB
Binary file not shown.

SDK/Contentstack.framework/Headers/Asset.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ BUILT_ASSUME_NONNULL_BEGIN
8080
*/
8181
@property (nonatomic, copy, readonly) NSString *deletedBy;
8282

83+
/**
84+
* Readonly property to get data of entry.
85+
*/
86+
@property (nonatomic, copy, readonly) NSDictionary *properties;
87+
8388

8489
/**
8590
* property to assign cache policy like CACHE_THEN_NETWORK, NETWORK_ELSE_CACHE, NETWORK_ONLY, etc.
@@ -155,6 +160,27 @@ BUILT_ASSUME_NONNULL_BEGIN
155160
*/
156161
- (void)addHeadersWithDictionary:(NSDictionary *)headers;
157162

163+
164+
/**
165+
This method adds key and value to an Asset.
166+
167+
//'blt5d4sample2633b' is a dummy Stack API key
168+
169+
//Obj-C
170+
Stack *stack = [Contentstack stackWithAPIKey:@"blt5d4sample2633b" accessToken:@"blt3esampletokeneb02" environmentName:@"dummy"];
171+
Asset *asset = [stack asset];
172+
[blogQuery addParamKey:@"key" andValue:@"value"];
173+
174+
//Swift
175+
var stack:Stack = Contentstack.stackWithAPIKey("blt5d4sample2633b", accessToken:"blt3esampletokeneb02", environmentName:@"dummy")
176+
var asset:Asset = stack.asset()
177+
blogQuery.addParamKey("key", andValue:"value")
178+
179+
@param key The key as string which needs to be added to an Asset
180+
@param value The value as string which needs to be added to an Asset
181+
*/
182+
- (void)addParamKey:(NSString *)key andValue:(NSString *)value;
183+
158184
/**
159185
Removes a header from this Asset
160186

SDK/Contentstack.framework/Headers/Contentstack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) 2015 Built.io. All rights reserved.
77
//
88

9-
// sdk-version: 3.2.0
9+
// sdk-version: 3.3.0
1010

1111
#import <Foundation/Foundation.h>
1212
#import <Contentstack/Config.h>

SDK/Contentstack.framework/Headers/Entry.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,20 @@ Specifies an array of keys in reference class object that would be 'excluded' fr
401401
*/
402402
- (void)includeRefFieldWithKey:(NSString *)key excludingRefValuesWithKeys:(NSArray *)values;
403403

404+
/**
405+
This method adds key and value to an Entry.
406+
407+
//Obj-C
408+
[entryObj addParamKey:@"key" andValue:@"value"];
409+
410+
//Swift
411+
entryObj.addParamKey("key", andValue:"value")
412+
413+
@param key The key as string which needs to be added to an Entry
414+
@param value The value as string which needs to be added to an Entry
415+
*/
416+
- (void)addParamKey:(NSString *)key andValue:(NSString *)value;
417+
404418
//MARK: - Fetch
405419
/**---------------------------------------------------------------------------------------
406420
* @name Fetch

SDK/Contentstack.framework/Headers/Query.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ BUILT_ASSUME_NONNULL_BEGIN
2626
*/
2727
@property (nonatomic, assign) CachePolicy cachePolicy;
2828

29+
2930
//MARK: Manually set headers -
3031
/**---------------------------------------------------------------------------------------
3132
* @name Manually set headers
@@ -617,6 +618,23 @@ This method provides all entries that also contain data from the referred entry
617618
*/
618619
- (void)includeReferenceFieldWithKey:(NSString *)key excludingFields:(NSArray *)fieldUIDs;
619620

621+
/**
622+
This method adds key and value to a query.
623+
624+
//Obj-C
625+
Query *blogQuery = [contentTypeObj query];
626+
[blogQuery addParamKey:@"key" andValue:@"value"];
627+
628+
//Swift
629+
var blogQuery:Query = contentTypeObj.query()
630+
blogQuery.addParamKey("key", andValue:"value")
631+
632+
@param key The key as string which needs to be added to the Query
633+
@param value The value as string which needs to be added to the Query
634+
*/
635+
- (void)addParamKey:(NSString *)key andValue:(NSString *)value;
636+
637+
620638
//MARK: Execute Query -
621639
/**---------------------------------------------------------------------------------------
622640
* @name Execute Query
Binary file not shown.
Binary file not shown.

SDK/Contentstack.framework/_CodeSignature/CodeResources

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<dict>
77
<key>Headers/Asset.h</key>
88
<data>
9-
zEwxSLAY/ec6W1/YgIrWkDuegaY=
9+
WvCY2R9VjXBVpxVTxLfP/qEfnhY=
1010
</data>
1111
<key>Headers/AssetLibrary.h</key>
1212
<data>
@@ -22,23 +22,23 @@
2222
</data>
2323
<key>Headers/Contentstack.h</key>
2424
<data>
25-
HYVcQwWIwk4C2IpYb9qrunFqJvY=
25+
PDD1colqqCx+4wbLUcRebL1+Iu4=
2626
</data>
2727
<key>Headers/ContentstackDefinitions.h</key>
2828
<data>
2929
vGmm2aSx82NPocsotZZ0AdX0rAI=
3030
</data>
3131
<key>Headers/Entry.h</key>
3232
<data>
33-
42RsUDSTTkdBbIXNwfno/lanzsg=
33+
zzElhHL1yr0N089Q7qCfPgKtFWM=
3434
</data>
3535
<key>Headers/Group.h</key>
3636
<data>
3737
Q6nO2BZPyJ1dFIy2JVG/ZvkZE0A=
3838
</data>
3939
<key>Headers/Query.h</key>
4040
<data>
41-
P8V+w2ijSBAss8xg2VuIcwLWXSM=
41+
JvdpVlD3OCpezF1O3y4wHhF87IY=
4242
</data>
4343
<key>Headers/QueryResult.h</key>
4444
<data>
@@ -50,7 +50,7 @@
5050
</data>
5151
<key>Info.plist</key>
5252
<data>
53-
w5PanjbThapoGrgzJa4o7ZE9O4A=
53+
88eAOJwFgwBT/IuvWxvAOKvqJtM=
5454
</data>
5555
<key>Modules/module.modulemap</key>
5656
<data>
@@ -63,11 +63,11 @@
6363
<dict>
6464
<key>hash</key>
6565
<data>
66-
zEwxSLAY/ec6W1/YgIrWkDuegaY=
66+
WvCY2R9VjXBVpxVTxLfP/qEfnhY=
6767
</data>
6868
<key>hash2</key>
6969
<data>
70-
UoEk1akVy13u8NzI/fb5vikiYhL4iiJVG3rzNLZX3mw=
70+
KPW3ifc/q9cgIaInkL0iZSJqRKfyMhfISO5NZIVJ8zY=
7171
</data>
7272
</dict>
7373
<key>Headers/AssetLibrary.h</key>
@@ -107,11 +107,11 @@
107107
<dict>
108108
<key>hash</key>
109109
<data>
110-
HYVcQwWIwk4C2IpYb9qrunFqJvY=
110+
PDD1colqqCx+4wbLUcRebL1+Iu4=
111111
</data>
112112
<key>hash2</key>
113113
<data>
114-
fpOnUcjqAN/M8URrULVG0a40afAH207jh0TdJ3d590Y=
114+
ic14D8T4agr9acv0xNUIjKf/kTPN7PHSA1gSJvLo874=
115115
</data>
116116
</dict>
117117
<key>Headers/ContentstackDefinitions.h</key>
@@ -129,11 +129,11 @@
129129
<dict>
130130
<key>hash</key>
131131
<data>
132-
42RsUDSTTkdBbIXNwfno/lanzsg=
132+
zzElhHL1yr0N089Q7qCfPgKtFWM=
133133
</data>
134134
<key>hash2</key>
135135
<data>
136-
HwWROiRktFNlGMwvZmwYNqJ1Vjr1Rwq5qNCK8ZTuqvY=
136+
/FuhdkM8JIjggCYPi5bQaX7W4aBpqmk1H/N7ZT2ZNg4=
137137
</data>
138138
</dict>
139139
<key>Headers/Group.h</key>
@@ -151,11 +151,11 @@
151151
<dict>
152152
<key>hash</key>
153153
<data>
154-
P8V+w2ijSBAss8xg2VuIcwLWXSM=
154+
JvdpVlD3OCpezF1O3y4wHhF87IY=
155155
</data>
156156
<key>hash2</key>
157157
<data>
158-
2iNheXdWKTJkXUJmVy5URz+BrfJA3lfox+thISynz5Y=
158+
untsLMGO+eaynKX4zkQ+xmdhscHPTq3NrhiMvgRaVKE=
159159
</data>
160160
</dict>
161161
<key>Headers/QueryResult.h</key>

changelogs-ios.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
Version: 3.3.0
2+
Date: Dec-15-2017
3+
4+
New Features:
5+
6+
*Entry
7+
- added method ‘addParamKey:andValue:’
8+
9+
*Query
10+
- added method 'addParamKey:andValue:'
11+
12+
*Asset
13+
- added method ‘addParamKey:andValue:’
14+
15+
16+
====================================================================================
117
Version: 3.2.0
218
Date: Nov-10-2017
319

0 commit comments

Comments
 (0)