Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #41 from zendesk/ZendeskSDK-Release
Browse files Browse the repository at this point in the history
Publishing Zendesk SDK 1.3.1.1
  • Loading branch information
tecknut committed Jul 14, 2015
2 parents 302fca6 + b3903cc commit b5da7cd
Show file tree
Hide file tree
Showing 27 changed files with 146 additions and 29 deletions.
Binary file modified SampleApp/SampleApp/Bundles/ZendeskSDK.bundle/Info.plist
Binary file not shown.
Binary file modified SampleApp/SampleApp/Bundles/ZendeskSDKStrings.bundle/Info.plist
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
@property (nonatomic, strong, readonly) NSNumber *results_count;


/**
* True if an article was the first viewed from a search result, false otherwise.
*
* @since 1.3.1.1
*/
@property (nonatomic) BOOL uniqueSearchResultClick;


/**
* Create a new last search model.
*
Expand Down Expand Up @@ -73,14 +81,22 @@
+ (void) cacheLastSearch:(ZDKHelpCenterLastSearch*)lastSearch;


/**
* Un-sets the unique search result click flag
*
* @since 1.3.1.1
*/
+ (void) unsetUniqueSearchResultClick;


/**
* Get the cached last search.
*
* @since 1.3.0.1
*
* @return The last search.
*/
+ (ZDKHelpCenterLastSearch *)getLastSearch;
+ (instancetype)getLastSearch;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@ typedef void (^ZDKHelpCenterGenericCallback)(id response, NSError *error);
- (void) getArticlesByLabels:(NSArray *)labels withCallback: (ZDKHelpCenterCallback) callback;


/**
* Fetch an article by ID.
*
* @param articleId The ID of the article to fetch.
* @param callback The callback that is invoked when a request is either successful or has error.
*
* @since 1.3.1.1
*/
- (void) getArticleById:(NSString *)articleId withCallback:(ZDKHelpCenterCallback) callback;


/**
* Fetch a list of suggested articles filtered by the parameters in the given ZDKHelpCenterDeflection model.
*
Expand All @@ -116,6 +127,18 @@ typedef void (^ZDKHelpCenterGenericCallback)(id response, NSError *error);
- (void) getSuggestedArticles:(ZDKHelpCenterDeflection*)search withCallback:(ZDKHelpCenterCallback)callback;


/**
* Used for the purpose of reporting in Zendesk. This will record an article as being viewed by the client.
*
* @since 1.3.0.1
*
* @param articleId The id of the article which has been viewed.
* @param articleLocale The locale of the article.
* @param callback A completion callback. Can be nil.
*/
- (void) submitRecordArticleView:(NSString*)articleId locale:(NSString*)articleLocale withCallback:(ZDKHelpCenterGenericCallback)callback;


/**
* Post an upvote for a given article. If a vote already exists for the source object it is updated.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,14 @@ CGRectMakeCenteredInScreen(CGFloat width, CGFloat height)

if (orientation == UIInterfaceOrientationLandscapeLeft ||
orientation == UIInterfaceOrientationLandscapeRight) {
rect = CGRectMake(CGRectGetMidY(screen) - (width * 0.5f),
CGRectGetMidX(screen) - (height * 0.5f), width, height);
if([ZDKUIUtil isOlderVersion:@8])
{
rect = CGRectMake(CGRectGetMidY(screen) - (width * 0.5f),
CGRectGetMidX(screen) - (height * 0.5f), width, height);
}else{
rect = CGRectMake(CGRectGetMidX(screen) - (width * 0.5f),
CGRectGetMidY(screen) - (height * 0.5f), width, height);
}

} else {
rect = CGRectMake(CGRectGetMidX(screen) - (width * 0.5f),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,20 @@ extern NSString * const ZD_HC_ArticlesStarting;
*/
extern NSString * const ZD_HC_ArticlesUpdated;

/**
* Notification that help centre arcticle is being fetched.
*
* @since 1.3.1.1
*/
extern NSString * const ZD_HC_ArticleByIdStarting;

/**
* Notification that an article was successfulyl retrieved.
*
* @since 1.3.1.1
*/
extern NSString * const ZD_HC_ArticleByIdSuccess;

/**
* Notification that help centre attachments are being fetched.
*/
Expand Down
Binary file modified SampleApp/SampleApp/Frameworks/ZendeskSDK.framework/Info.plist
Binary file not shown.
Binary file modified SampleApp/SampleApp/Frameworks/ZendeskSDK.framework/ZendeskSDK
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@
</data>
<key>Headers/ZDKHelpCenterLastSearch.h</key>
<data>
K+4e5dZxSgNFHX54Is3rQBsJWs4=
0sf5kSIeWlENFv5WOtcX8cWGRpc=
</data>
<key>Headers/ZDKHelpCenterProvider.h</key>
<data>
RmWFneNcCTvYgGfhqbqgVwsAjpM=
yYSaFulOzkXM8x+dyDb1F8yi8Do=
</data>
<key>Headers/ZDKHelpCenterSearch.h</key>
<data>
Expand Down Expand Up @@ -462,7 +462,7 @@
</data>
<key>Headers/ZDKUIUtil.h</key>
<data>
oQ3W0k32H4DISGEOW+/IUaoGF8k=
DrjTUX7XpNrnVhCZx+vVzfdeliI=
</data>
<key>Headers/ZDKUIViewController.h</key>
<data>
Expand All @@ -486,11 +486,11 @@
</data>
<key>Headers/ZendeskSDKConstants.h</key>
<data>
UfhiKCSkApj6a7mV50tz37HA++w=
9L0oKmU32eapY/WHwM7I1LV04Ps=
</data>
<key>Info.plist</key>
<data>
wDOqXAeelcxn6GwvgaJlqdXExOQ=
/LhJRAVR0DhhprNjVCf7OQ0nwG0=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -717,11 +717,11 @@
</data>
<key>Headers/ZDKHelpCenterLastSearch.h</key>
<data>
K+4e5dZxSgNFHX54Is3rQBsJWs4=
0sf5kSIeWlENFv5WOtcX8cWGRpc=
</data>
<key>Headers/ZDKHelpCenterProvider.h</key>
<data>
RmWFneNcCTvYgGfhqbqgVwsAjpM=
yYSaFulOzkXM8x+dyDb1F8yi8Do=
</data>
<key>Headers/ZDKHelpCenterSearch.h</key>
<data>
Expand Down Expand Up @@ -957,7 +957,7 @@
</data>
<key>Headers/ZDKUIUtil.h</key>
<data>
oQ3W0k32H4DISGEOW+/IUaoGF8k=
DrjTUX7XpNrnVhCZx+vVzfdeliI=
</data>
<key>Headers/ZDKUIViewController.h</key>
<data>
Expand All @@ -981,7 +981,7 @@
</data>
<key>Headers/ZendeskSDKConstants.h</key>
<data>
UfhiKCSkApj6a7mV50tz37HA++w=
9L0oKmU32eapY/WHwM7I1LV04Ps=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion SampleApp/SampleApp/SampleApp-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3.0.1</string>
<string>1.3.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
3 changes: 1 addition & 2 deletions SampleApp/SampleApp/ZDAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,8 @@ - (void) setAppearanceProperties

// comments list loading cell
UIActivityIndicatorView *commentSpinner = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)];
commentSpinner = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)];
commentSpinner.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhite;
[[ZDKCommentsListLoadingTableCell appearance] setSpinner:(id<ZDKSpinnerDelegate>)spinner];
[[ZDKCommentsListLoadingTableCell appearance] setSpinner:(id<ZDKSpinnerDelegate>)commentSpinner];
[[ZDKCommentsListLoadingTableCell appearance] setCellBackground:[UIColor blackColor]];
[[ZDKCommentsListLoadingTableCell appearance] setLeftInset:@25.0f];

Expand Down
Binary file modified ZendeskSDK.bundle/Info.plist
Binary file not shown.
18 changes: 17 additions & 1 deletion ZendeskSDK.framework/Headers/ZDKHelpCenterLastSearch.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
@property (nonatomic, strong, readonly) NSNumber *results_count;


/**
* True if an article was the first viewed from a search result, false otherwise.
*
* @since 1.3.1.1
*/
@property (nonatomic) BOOL uniqueSearchResultClick;


/**
* Create a new last search model.
*
Expand Down Expand Up @@ -73,14 +81,22 @@
+ (void) cacheLastSearch:(ZDKHelpCenterLastSearch*)lastSearch;


/**
* Un-sets the unique search result click flag
*
* @since 1.3.1.1
*/
+ (void) unsetUniqueSearchResultClick;


/**
* Get the cached last search.
*
* @since 1.3.0.1
*
* @return The last search.
*/
+ (ZDKHelpCenterLastSearch *)getLastSearch;
+ (instancetype)getLastSearch;


/**
Expand Down
23 changes: 23 additions & 0 deletions ZendeskSDK.framework/Headers/ZDKHelpCenterProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@ typedef void (^ZDKHelpCenterGenericCallback)(id response, NSError *error);
- (void) getArticlesByLabels:(NSArray *)labels withCallback: (ZDKHelpCenterCallback) callback;


/**
* Fetch an article by ID.
*
* @param articleId The ID of the article to fetch.
* @param callback The callback that is invoked when a request is either successful or has error.
*
* @since 1.3.1.1
*/
- (void) getArticleById:(NSString *)articleId withCallback:(ZDKHelpCenterCallback) callback;


/**
* Fetch a list of suggested articles filtered by the parameters in the given ZDKHelpCenterDeflection model.
*
Expand All @@ -116,6 +127,18 @@ typedef void (^ZDKHelpCenterGenericCallback)(id response, NSError *error);
- (void) getSuggestedArticles:(ZDKHelpCenterDeflection*)search withCallback:(ZDKHelpCenterCallback)callback;


/**
* Used for the purpose of reporting in Zendesk. This will record an article as being viewed by the client.
*
* @since 1.3.0.1
*
* @param articleId The id of the article which has been viewed.
* @param articleLocale The locale of the article.
* @param callback A completion callback. Can be nil.
*/
- (void) submitRecordArticleView:(NSString*)articleId locale:(NSString*)articleLocale withCallback:(ZDKHelpCenterGenericCallback)callback;


/**
* Post an upvote for a given article. If a vote already exists for the source object it is updated.
*
Expand Down
10 changes: 8 additions & 2 deletions ZendeskSDK.framework/Headers/ZDKUIUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,14 @@ CGRectMakeCenteredInScreen(CGFloat width, CGFloat height)

if (orientation == UIInterfaceOrientationLandscapeLeft ||
orientation == UIInterfaceOrientationLandscapeRight) {
rect = CGRectMake(CGRectGetMidY(screen) - (width * 0.5f),
CGRectGetMidX(screen) - (height * 0.5f), width, height);
if([ZDKUIUtil isOlderVersion:@8])
{
rect = CGRectMake(CGRectGetMidY(screen) - (width * 0.5f),
CGRectGetMidX(screen) - (height * 0.5f), width, height);
}else{
rect = CGRectMake(CGRectGetMidX(screen) - (width * 0.5f),
CGRectGetMidY(screen) - (height * 0.5f), width, height);
}

} else {
rect = CGRectMake(CGRectGetMidX(screen) - (width * 0.5f),
Expand Down
14 changes: 14 additions & 0 deletions ZendeskSDK.framework/Headers/ZendeskSDKConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,20 @@ extern NSString * const ZD_HC_ArticlesStarting;
*/
extern NSString * const ZD_HC_ArticlesUpdated;

/**
* Notification that help centre arcticle is being fetched.
*
* @since 1.3.1.1
*/
extern NSString * const ZD_HC_ArticleByIdStarting;

/**
* Notification that an article was successfulyl retrieved.
*
* @since 1.3.1.1
*/
extern NSString * const ZD_HC_ArticleByIdSuccess;

/**
* Notification that help centre attachments are being fetched.
*/
Expand Down
Binary file modified ZendeskSDK.framework/Info.plist
Binary file not shown.
Binary file modified ZendeskSDK.framework/ZendeskSDK
Binary file not shown.
Binary file modified ZendeskSDK.framework/_CodeSignature/CodeDirectory
Binary file not shown.
Binary file modified ZendeskSDK.framework/_CodeSignature/CodeRequirements
Binary file not shown.
18 changes: 9 additions & 9 deletions ZendeskSDK.framework/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@
</data>
<key>Headers/ZDKHelpCenterLastSearch.h</key>
<data>
K+4e5dZxSgNFHX54Is3rQBsJWs4=
0sf5kSIeWlENFv5WOtcX8cWGRpc=
</data>
<key>Headers/ZDKHelpCenterProvider.h</key>
<data>
RmWFneNcCTvYgGfhqbqgVwsAjpM=
yYSaFulOzkXM8x+dyDb1F8yi8Do=
</data>
<key>Headers/ZDKHelpCenterSearch.h</key>
<data>
Expand Down Expand Up @@ -462,7 +462,7 @@
</data>
<key>Headers/ZDKUIUtil.h</key>
<data>
oQ3W0k32H4DISGEOW+/IUaoGF8k=
DrjTUX7XpNrnVhCZx+vVzfdeliI=
</data>
<key>Headers/ZDKUIViewController.h</key>
<data>
Expand All @@ -486,11 +486,11 @@
</data>
<key>Headers/ZendeskSDKConstants.h</key>
<data>
UfhiKCSkApj6a7mV50tz37HA++w=
9L0oKmU32eapY/WHwM7I1LV04Ps=
</data>
<key>Info.plist</key>
<data>
wDOqXAeelcxn6GwvgaJlqdXExOQ=
/LhJRAVR0DhhprNjVCf7OQ0nwG0=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -717,11 +717,11 @@
</data>
<key>Headers/ZDKHelpCenterLastSearch.h</key>
<data>
K+4e5dZxSgNFHX54Is3rQBsJWs4=
0sf5kSIeWlENFv5WOtcX8cWGRpc=
</data>
<key>Headers/ZDKHelpCenterProvider.h</key>
<data>
RmWFneNcCTvYgGfhqbqgVwsAjpM=
yYSaFulOzkXM8x+dyDb1F8yi8Do=
</data>
<key>Headers/ZDKHelpCenterSearch.h</key>
<data>
Expand Down Expand Up @@ -957,7 +957,7 @@
</data>
<key>Headers/ZDKUIUtil.h</key>
<data>
oQ3W0k32H4DISGEOW+/IUaoGF8k=
DrjTUX7XpNrnVhCZx+vVzfdeliI=
</data>
<key>Headers/ZDKUIViewController.h</key>
<data>
Expand All @@ -981,7 +981,7 @@
</data>
<key>Headers/ZendeskSDKConstants.h</key>
<data>
UfhiKCSkApj6a7mV50tz37HA++w=
9L0oKmU32eapY/WHwM7I1LV04Ps=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down
Binary file modified ZendeskSDK.framework/_CodeSignature/CodeSignature
Binary file not shown.
4 changes: 2 additions & 2 deletions ZendeskSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "ZendeskSDK"
s.version = "1.3.0.1"
s.summary = "Zendesk SDK 1.3.0.1"
s.version = "1.3.1.1"
s.summary = "Zendesk SDK 1.3.1.1"
s.homepage = "https://github.com/zendesk/zendesk_sdk_ios"
s.license = {
:type => 'Copyright',
Expand Down
Binary file modified ZendeskSDKStrings.bundle/Info.plist
Binary file not shown.

0 comments on commit b5da7cd

Please sign in to comment.