Skip to content

Commit

Permalink
version updated to 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yogita1203 committed Dec 14, 2017
1 parent e869734 commit 226db38
Show file tree
Hide file tree
Showing 23 changed files with 318 additions and 56 deletions.
2 changes: 1 addition & 1 deletion BuiltIOBackend.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'BuiltIOBackend'
s.version = '3.2.0'
s.version = '4.0.0'
s.summary = 'The BuiltIO Backend helps you to create apps quickly and effortlessly, taking care of all the backend requirements.'

s.description = <<-DESC
Expand Down
Binary file modified SDK/.DS_Store
Binary file not shown.
Binary file modified SDK/iOS/.DS_Store
Binary file not shown.
Binary file removed SDK/iOS/BuiltIO.framework/.DS_Store
Binary file not shown.
Binary file modified SDK/iOS/BuiltIO.framework/BuiltIO
Binary file not shown.
21 changes: 21 additions & 0 deletions SDK/iOS/BuiltIO.framework/Headers/BuiltConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,27 @@ SSL state of Built.io Backend api server.
@property (nonatomic, assign, getter=isOffline) BOOL offline;
#endif


//MARK: - Persist refresh token

/**---------------------------------------------------------------------------------------
* @name Persist refresh token
* ---------------------------------------------------------------------------------------
*/
/**
Sets whether the refresh token is to persist or not in user session
//Obj-C
BuiltConfig *config = [[BuiltConfig alloc] init];
config.persistRefreshToken = NO;
//Swift
var config:BuiltConfig = BuiltConfig()
config.persistRefreshToken = false
*/
@property (nonatomic, assign, getter=isPersistRefreshTokenEnabled) BOOL persistRefreshToken;

@end

BUILT_ASSUME_NONNULL_END
3 changes: 3 additions & 0 deletions SDK/iOS/BuiltIO.framework/Headers/BuiltErrorCodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ FOUNDATION_EXPORT NSInteger const kErrorRealtimePresenceRequestFailed;//507
FOUNDATION_EXPORT NSInteger const kErrorRealtimeStateSetFailed;//508
FOUNDATION_EXPORT NSInteger const kErrorRealtimeNotEnabled;//550

//>800 SSO Error
FOUNDATION_EXPORT NSInteger const kErrorSSOLogin; //800

//>900 TwitterAcccount
FOUNDATION_EXPORT NSInteger const kErrorTwitterAccountNotFound;//900
FOUNDATION_EXPORT NSInteger const kErrorTwitterAccountPremissionDenied;//901
Expand Down
2 changes: 1 addition & 1 deletion SDK/iOS/BuiltIO.framework/Headers/BuiltIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2013 raweng. All rights reserved.
//

// sdk-version: 3.2.0
// sdk-version: 4.0.0

#import <Foundation/Foundation.h>

Expand Down
108 changes: 100 additions & 8 deletions SDK/iOS/BuiltIO.framework/Headers/BuiltUser.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,32 @@ BUILT_ASSUME_NONNULL_BEGIN


/**
@abstract The authtoken after logging in
@abstract The accessToken after logging in
//Obj-C
NSString *authToken = userObject.authtoken;
//Swift
var authToken:String = userObject.authtoken
//Obj-C
NSString *accessToken = userObject.accessToken;
//Swift
var accessToken:String = userObject.accessToken
@discussion The accessToken after logging in
*/
@property (nullable, nonatomic, copy, readonly) NSString *accessToken;

/**
@abstract The refreshToken after logging in
//Obj-C
NSString *refreshToken = userObject.refreshToken;
//Swift
var refreshToken:String = userObject.refreshToken
@discussion The authtoken after logging in
@discussion The refreshToken after logging in
*/
@property (nullable, nonatomic, copy, readonly) NSString *authtoken;
@property (nullable, nonatomic, copy, readonly) NSString *refreshToken;


/**
Expand Down Expand Up @@ -729,6 +743,84 @@ Updates the existing user asynchronously

- (void)saveAsDraftEventually:(BuiltRequestCompletionHandler)completionBlock BUILTIO_DEPRECATED("Not for BuiltUser");

//MARK: - SSO Login
/**---------------------------------------------------------------------------------------
* @name SSO Login
* ---------------------------------------------------------------------------------------
*/

#if TARGET_OS_IOS
/**
Asynchronously login using SSO token
//Obj-C
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
BuiltUser *ssoUser = [builtApplication user];
[ssoUser loginWithSSO:^(BuiltResponseType responseType, NSError *error) {
}];
//Swift
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
var ssoUser:BuiltUser = builtApplication.user()
ssoUser.loginWithSSO { (responseType, error!) -> Void in
}
@param completionBlock Completion block with params (BuiltResponseType responseType, id responseJSON, NSError *error)
*/
- (void)loginWithSSO:(BuiltRequestCompletionHandler)completionBlock;
#endif


//MARK: - Refresh access token
/**---------------------------------------------------------------------------------------
* @name Refresh access token
* ---------------------------------------------------------------------------------------
*/

/**
Asynchronously refresh the user access_token from server using refresh_token
//Obj-C
BuiltUser *userObject = [builtApplication user];
[userObject refreshAccessToken:@"blt_sample_refresh_token" completion:^(BuiltResponseType responseType, NSError *error) {
}];
//Swift
var userObject:BuiltUser = builtApplication.user()
refreshAccessToken("blt_sample_refresh_token") { (responseType, error!) -> Void in
}
@param refreshToken refresh_token
@param completionBlock Completion block with params (BuiltResponseType responseType, id responseJSON, NSError *error)
@note If persistRefreshToken property is true in BuiltConfig, you have to use this method for refreshing the user access_token.
*/
- (void)refreshAccessToken:(NSString *)refreshToken completion:(BuiltRequestCompletionHandler)completionBlock;

/**
Asynchronously refresh the user access_token from server using refresh_token
//Obj-C
BuiltUser *userObject = [builtApplication user];
[userObject refreshAccessToken:^(BuiltResponseType responseType, NSError *error) {
}];
//Swift
var userObject:BuiltUser = builtApplication.user()
refreshAccessToken { (responseType, error!) -> Void in
}
@param completionBlock Completion block with params (BuiltResponseType responseType, id responseJSON, NSError *error)
@note If persistRefreshToken property is false in BuiltConfig, you have to use this method for refreshing the user access_token.
*/
- (void)refreshAccessToken:(BuiltRequestCompletionHandler)completionBlock;

@end

Expand Down
Binary file modified SDK/iOS/BuiltIO.framework/_CodeSignature/CodeDirectory
Binary file not shown.
Binary file modified SDK/iOS/BuiltIO.framework/_CodeSignature/CodeRequirements-1
Binary file not shown.
30 changes: 13 additions & 17 deletions SDK/iOS/BuiltIO.framework/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
<dict>
<key>files</key>
<dict>
<key>.DS_Store</key>
<data>
y8YKedYTNEpd6OPNN46oZQ2ix1M=
</data>
<key>Headers/Built.h</key>
<data>
VwwAmdOlxcWyIoTvLMYsZiyAceA=
Expand Down Expand Up @@ -46,15 +42,15 @@
</data>
<key>Headers/BuiltConfig.h</key>
<data>
HnSGmbr8wYs+/VLMfPon09LuFvI=
pnq0ZK0fTCFYayu9j3qMfTBYWUE=
</data>
<key>Headers/BuiltDefinitions.h</key>
<data>
KMJga+3y+jjP4iJq+kN8d+RvKn0=
</data>
<key>Headers/BuiltErrorCodes.h</key>
<data>
wMNXirV5Fx1SUzS5criU0tC3Q3E=
Vt2dijiHxI7ddohHqmoWmAfVEXY=
</data>
<key>Headers/BuiltExtension.h</key>
<data>
Expand All @@ -70,7 +66,7 @@
</data>
<key>Headers/BuiltIO.h</key>
<data>
W6diQ92nZMwTbIpM9a46xbMS9Bc=
RHghevQwItLSk3pjhQeF+0mdQD0=
</data>
<key>Headers/BuiltIOLocalStore.h</key>
<data>
Expand Down Expand Up @@ -138,7 +134,7 @@
</data>
<key>Headers/BuiltUser.h</key>
<data>
UyiIyP77TyYf9cQs6Ds06ggpEUw=
QOHs/OWmHeew0Nc/Uduy/KKSD4s=
</data>
<key>Headers/BuiltUserPresence.h</key>
<data>
Expand All @@ -150,7 +146,7 @@
</data>
<key>Info.plist</key>
<data>
glVb1tpljoltAnDgiVmF7TdDglg=
7czGdgG1R25mXPJeLlPdnDimOzI=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -262,11 +258,11 @@
<dict>
<key>hash</key>
<data>
HnSGmbr8wYs+/VLMfPon09LuFvI=
pnq0ZK0fTCFYayu9j3qMfTBYWUE=
</data>
<key>hash2</key>
<data>
iOnlmdkRP3CdTAPxRd9ICTtbrdu1Pskt6QKi7RnxL6A=
V6UCu56ApMsaYF0TwMHKWSA+NYiO9QzUBgCa2BWglVk=
</data>
</dict>
<key>Headers/BuiltDefinitions.h</key>
Expand All @@ -284,11 +280,11 @@
<dict>
<key>hash</key>
<data>
wMNXirV5Fx1SUzS5criU0tC3Q3E=
Vt2dijiHxI7ddohHqmoWmAfVEXY=
</data>
<key>hash2</key>
<data>
siyO3krnKBEPoNRvDjHq0wC8iOoJRsLx7JJjlb87Pnk=
n2xRMMBuOdBWr+RTKA0i7z9vuhKomRjRC3aCkYrA6Yw=
</data>
</dict>
<key>Headers/BuiltExtension.h</key>
Expand Down Expand Up @@ -328,11 +324,11 @@
<dict>
<key>hash</key>
<data>
W6diQ92nZMwTbIpM9a46xbMS9Bc=
RHghevQwItLSk3pjhQeF+0mdQD0=
</data>
<key>hash2</key>
<data>
g/7bu0QUXudU2bla/oNXQTiYRxDBZ/SteblObYba9xs=
zRhUFNyFGA8sis43RiQC8W4ARRqPbomjOynCHZh/0VM=
</data>
</dict>
<key>Headers/BuiltIOLocalStore.h</key>
Expand Down Expand Up @@ -515,11 +511,11 @@
<dict>
<key>hash</key>
<data>
UyiIyP77TyYf9cQs6Ds06ggpEUw=
QOHs/OWmHeew0Nc/Uduy/KKSD4s=
</data>
<key>hash2</key>
<data>
/AMoBitikRAfYNHwvweSgkIkjLQj0LuH27daWJxTcBI=
KE0+/VE9zJ82G0G8alHI6+NJflSHPQ9gbUi2ejEPXMo=
</data>
</dict>
<key>Headers/BuiltUserPresence.h</key>
Expand Down
Binary file modified SDK/watchOS/.DS_Store
Binary file not shown.
Binary file modified SDK/watchOS/BuiltIO.framework/BuiltIO
Binary file not shown.
21 changes: 21 additions & 0 deletions SDK/watchOS/BuiltIO.framework/Headers/BuiltConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,27 @@ SSL state of Built.io Backend api server.
@property (nonatomic, assign, getter=isOffline) BOOL offline;
#endif


//MARK: - Persist refresh token

/**---------------------------------------------------------------------------------------
* @name Persist refresh token
* ---------------------------------------------------------------------------------------
*/
/**
Sets whether the refresh token is to persist or not in user session
//Obj-C
BuiltConfig *config = [[BuiltConfig alloc] init];
config.persistRefreshToken = NO;
//Swift
var config:BuiltConfig = BuiltConfig()
config.persistRefreshToken = false
*/
@property (nonatomic, assign, getter=isPersistRefreshTokenEnabled) BOOL persistRefreshToken;

@end

BUILT_ASSUME_NONNULL_END
3 changes: 3 additions & 0 deletions SDK/watchOS/BuiltIO.framework/Headers/BuiltErrorCodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ FOUNDATION_EXPORT NSInteger const kErrorRealtimePresenceRequestFailed;//507
FOUNDATION_EXPORT NSInteger const kErrorRealtimeStateSetFailed;//508
FOUNDATION_EXPORT NSInteger const kErrorRealtimeNotEnabled;//550

//>800 SSO Error
FOUNDATION_EXPORT NSInteger const kErrorSSOLogin; //800

//>900 TwitterAcccount
FOUNDATION_EXPORT NSInteger const kErrorTwitterAccountNotFound;//900
FOUNDATION_EXPORT NSInteger const kErrorTwitterAccountPremissionDenied;//901
Expand Down
2 changes: 1 addition & 1 deletion SDK/watchOS/BuiltIO.framework/Headers/BuiltIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import <WatchKit/WatchKit.h>

// sdk-version: 3.2.0
// sdk-version: 4.0.0

//! Project version number for BuiltIO-watchOS.
FOUNDATION_EXPORT double BuiltIO_watchOSVersionNumber;
Expand Down
Loading

0 comments on commit 226db38

Please sign in to comment.