Skip to content

Commit

Permalink
Entry - added method addParamKey:andValue:, Query - added method addP…
Browse files Browse the repository at this point in the history
…aramKey:andValue:, Asset - added method addParamKey:andValue:
  • Loading branch information
nikhilgohil11 committed Dec 15, 2017
1 parent 1abe066 commit c820236
Show file tree
Hide file tree
Showing 11 changed files with 91 additions and 17 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions Contentstack.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = 'Contentstack'
s.version = '3.2.0'
s.version = '3.3.0'
s.summary = 'Contentstack is a headless CMS with an API-first approach that puts content at the centre.'

s.description = <<-DESC
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.
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.
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.
DESC

s.homepage = 'https://www.contentstack.com'
Expand All @@ -15,7 +15,7 @@ s.author = { 'Built.io' => '[email protected]' }
s.source = { :git => 'https://github.com/raweng/BuiltIOContentstack-iOS.git', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/builtio'

s.ios.deployment_target = '7.0'
s.ios.deployment_target = '8.0'
s.ios.vendored_frameworks = 'SDK/Contentstack.framework'

s.frameworks = 'CoreGraphics', 'MobileCoreServices', 'Security', 'SystemConfiguration'
Expand Down
Binary file modified SDK/Contentstack.framework/Contentstack
Binary file not shown.
26 changes: 26 additions & 0 deletions SDK/Contentstack.framework/Headers/Asset.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ BUILT_ASSUME_NONNULL_BEGIN
*/
@property (nonatomic, copy, readonly) NSString *deletedBy;

/**
* Readonly property to get data of entry.
*/
@property (nonatomic, copy, readonly) NSDictionary *properties;


/**
* property to assign cache policy like CACHE_THEN_NETWORK, NETWORK_ELSE_CACHE, NETWORK_ONLY, etc.
Expand Down Expand Up @@ -155,6 +160,27 @@ BUILT_ASSUME_NONNULL_BEGIN
*/
- (void)addHeadersWithDictionary:(NSDictionary *)headers;


/**
This method adds key and value to an Asset.
//'blt5d4sample2633b' is a dummy Stack API key
//Obj-C
Stack *stack = [Contentstack stackWithAPIKey:@"blt5d4sample2633b" accessToken:@"blt3esampletokeneb02" environmentName:@"dummy"];
Asset *asset = [stack asset];
[blogQuery addParamKey:@"key" andValue:@"value"];
//Swift
var stack:Stack = Contentstack.stackWithAPIKey("blt5d4sample2633b", accessToken:"blt3esampletokeneb02", environmentName:@"dummy")
var asset:Asset = stack.asset()
blogQuery.addParamKey("key", andValue:"value")
@param key The key as string which needs to be added to an Asset
@param value The value as string which needs to be added to an Asset
*/
- (void)addParamKey:(NSString *)key andValue:(NSString *)value;

/**
Removes a header from this Asset
Expand Down
2 changes: 1 addition & 1 deletion SDK/Contentstack.framework/Headers/Contentstack.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2015 Built.io. All rights reserved.
//

// sdk-version: 3.2.0
// sdk-version: 3.3.0

#import <Foundation/Foundation.h>
#import <Contentstack/Config.h>
Expand Down
14 changes: 14 additions & 0 deletions SDK/Contentstack.framework/Headers/Entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,20 @@ Specifies an array of keys in reference class object that would be 'excluded' fr
*/
- (void)includeRefFieldWithKey:(NSString *)key excludingRefValuesWithKeys:(NSArray *)values;

/**
This method adds key and value to an Entry.
//Obj-C
[entryObj addParamKey:@"key" andValue:@"value"];
//Swift
entryObj.addParamKey("key", andValue:"value")
@param key The key as string which needs to be added to an Entry
@param value The value as string which needs to be added to an Entry
*/
- (void)addParamKey:(NSString *)key andValue:(NSString *)value;

//MARK: - Fetch
/**---------------------------------------------------------------------------------------
* @name Fetch
Expand Down
18 changes: 18 additions & 0 deletions SDK/Contentstack.framework/Headers/Query.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ BUILT_ASSUME_NONNULL_BEGIN
*/
@property (nonatomic, assign) CachePolicy cachePolicy;


//MARK: Manually set headers -
/**---------------------------------------------------------------------------------------
* @name Manually set headers
Expand Down Expand Up @@ -617,6 +618,23 @@ This method provides all entries that also contain data from the referred entry
*/
- (void)includeReferenceFieldWithKey:(NSString *)key excludingFields:(NSArray *)fieldUIDs;

/**
This method adds key and value to a query.
//Obj-C
Query *blogQuery = [contentTypeObj query];
[blogQuery addParamKey:@"key" andValue:@"value"];
//Swift
var blogQuery:Query = contentTypeObj.query()
blogQuery.addParamKey("key", andValue:"value")
@param key The key as string which needs to be added to the Query
@param value The value as string which needs to be added to the Query
*/
- (void)addParamKey:(NSString *)key andValue:(NSString *)value;


//MARK: Execute Query -
/**---------------------------------------------------------------------------------------
* @name Execute Query
Expand Down
Binary file modified SDK/Contentstack.framework/_CodeSignature/CodeDirectory
Binary file not shown.
Binary file modified SDK/Contentstack.framework/_CodeSignature/CodeRequirements-1
Binary file not shown.
26 changes: 13 additions & 13 deletions SDK/Contentstack.framework/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<dict>
<key>Headers/Asset.h</key>
<data>
zEwxSLAY/ec6W1/YgIrWkDuegaY=
WvCY2R9VjXBVpxVTxLfP/qEfnhY=
</data>
<key>Headers/AssetLibrary.h</key>
<data>
Expand All @@ -22,23 +22,23 @@
</data>
<key>Headers/Contentstack.h</key>
<data>
HYVcQwWIwk4C2IpYb9qrunFqJvY=
PDD1colqqCx+4wbLUcRebL1+Iu4=
</data>
<key>Headers/ContentstackDefinitions.h</key>
<data>
vGmm2aSx82NPocsotZZ0AdX0rAI=
</data>
<key>Headers/Entry.h</key>
<data>
42RsUDSTTkdBbIXNwfno/lanzsg=
zzElhHL1yr0N089Q7qCfPgKtFWM=
</data>
<key>Headers/Group.h</key>
<data>
Q6nO2BZPyJ1dFIy2JVG/ZvkZE0A=
</data>
<key>Headers/Query.h</key>
<data>
P8V+w2ijSBAss8xg2VuIcwLWXSM=
JvdpVlD3OCpezF1O3y4wHhF87IY=
</data>
<key>Headers/QueryResult.h</key>
<data>
Expand All @@ -50,7 +50,7 @@
</data>
<key>Info.plist</key>
<data>
w5PanjbThapoGrgzJa4o7ZE9O4A=
88eAOJwFgwBT/IuvWxvAOKvqJtM=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand All @@ -63,11 +63,11 @@
<dict>
<key>hash</key>
<data>
zEwxSLAY/ec6W1/YgIrWkDuegaY=
WvCY2R9VjXBVpxVTxLfP/qEfnhY=
</data>
<key>hash2</key>
<data>
UoEk1akVy13u8NzI/fb5vikiYhL4iiJVG3rzNLZX3mw=
KPW3ifc/q9cgIaInkL0iZSJqRKfyMhfISO5NZIVJ8zY=
</data>
</dict>
<key>Headers/AssetLibrary.h</key>
Expand Down Expand Up @@ -107,11 +107,11 @@
<dict>
<key>hash</key>
<data>
HYVcQwWIwk4C2IpYb9qrunFqJvY=
PDD1colqqCx+4wbLUcRebL1+Iu4=
</data>
<key>hash2</key>
<data>
fpOnUcjqAN/M8URrULVG0a40afAH207jh0TdJ3d590Y=
ic14D8T4agr9acv0xNUIjKf/kTPN7PHSA1gSJvLo874=
</data>
</dict>
<key>Headers/ContentstackDefinitions.h</key>
Expand All @@ -129,11 +129,11 @@
<dict>
<key>hash</key>
<data>
42RsUDSTTkdBbIXNwfno/lanzsg=
zzElhHL1yr0N089Q7qCfPgKtFWM=
</data>
<key>hash2</key>
<data>
HwWROiRktFNlGMwvZmwYNqJ1Vjr1Rwq5qNCK8ZTuqvY=
/FuhdkM8JIjggCYPi5bQaX7W4aBpqmk1H/N7ZT2ZNg4=
</data>
</dict>
<key>Headers/Group.h</key>
Expand All @@ -151,11 +151,11 @@
<dict>
<key>hash</key>
<data>
P8V+w2ijSBAss8xg2VuIcwLWXSM=
JvdpVlD3OCpezF1O3y4wHhF87IY=
</data>
<key>hash2</key>
<data>
2iNheXdWKTJkXUJmVy5URz+BrfJA3lfox+thISynz5Y=
untsLMGO+eaynKX4zkQ+xmdhscHPTq3NrhiMvgRaVKE=
</data>
</dict>
<key>Headers/QueryResult.h</key>
Expand Down
16 changes: 16 additions & 0 deletions changelogs-ios.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
Version: 3.3.0
Date: Dec-15-2017

New Features:

*Entry
- added method ‘addParamKey:andValue:’

*Query
- added method 'addParamKey:andValue:'

*Asset
- added method ‘addParamKey:andValue:’


====================================================================================
Version: 3.2.0
Date: Nov-10-2017

Expand Down

0 comments on commit c820236

Please sign in to comment.