Skip to content

Commit

Permalink
1.1.2507
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvis committed May 23, 2017
1 parent ae18caf commit c1915ec
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 16 deletions.
Binary file modified DroiCoreSDK.framework/DroiCoreSDK
Binary file not shown.
16 changes: 16 additions & 0 deletions DroiCoreSDK.framework/Headers/DroiCore.h
Expand Up @@ -5,6 +5,15 @@

#import <Foundation/Foundation.h>

typedef enum : NSInteger {
DroiBaaS_LOG_VERBOSE = 2,
DroiBaaS_LOG_DEBUG,
DroiBaaS_LOG_INFO,
DroiBaaS_LOG_WARN,
DroiBaaS_LOG_ERROR,
DroiBaaS_LOG_DISABLE_ALL_LOGS
} DroiBaaSLogLevel;

#pragma mark - Droi SDK definitions

/**
Expand Down Expand Up @@ -53,5 +62,12 @@
* @return Channel name
*/
+ (NSString*) getChannelName;

/**
Set DroiBaaS log level to adjust output logs.
@param level Log level.
*/
+ (void) setDroiBaaSLogLevel:(DroiBaaSLogLevel) level;
+ (NSDate*) getTimestamp;
@end
25 changes: 24 additions & 1 deletion DroiCoreSDK.framework/Headers/DroiObject.h
Expand Up @@ -81,8 +81,10 @@ typedef void(^DroiObjectCallback)(BOOL result, DroiError* error);

/**
* Save this object eventually. This feature is only for cloud storage and would be sent to cloud if there is data connection available
*
* @return DroiError DroiError object. Developer should use isOk to check whether this result is OK.
*/
- (void) saveEventually;
- (DroiError*) saveEventually;

/**
* Help to save a list of DroiObject to storage.
Expand Down Expand Up @@ -175,6 +177,27 @@ typedef void(^DroiObjectCallback)(BOOL result, DroiError* error);
*/
- (BOOL) isReferencedObjectDirty;

#pragma mark - Atomic

/**
Add value of field by amount atomically
@param field Field name
@param amount Amount
@return DroiError object. Developer should use isOk to check whether this result is OK.
*/
- (DroiError*) atomicAdd:(NSString*) field amount:(int) amount;

/**
Add value of field by amount atomically in background
@param field Field name
@param amount Amount
@param callback The callback object `DroiObjectCallback` is used to receive save result.
@return task id
*/
- (NSString*) atomicAddInBackground:(NSString*) field amount:(int) amount callback:(DroiObjectCallback) callback;

#pragma mark - Dictionary operations
/**
* Add a key-value pair to DroiObject
Expand Down
4 changes: 2 additions & 2 deletions DroiCoreSDK.framework/Headers/DroiQuery.h
Expand Up @@ -147,7 +147,7 @@ FOUNDATION_EXPORT NSString* const DroiQuery_DESC;
*
* @return The DroiQuery object
*/
- (DroiQuery*) queryByName : (NSString*) fromName;
- (DroiQuery*) queryByName : (NSString*) fromName NS_SWIFT_NAME(query(byName:));

/**
* Query data from specific class
Expand All @@ -156,7 +156,7 @@ FOUNDATION_EXPORT NSString* const DroiQuery_DESC;
*
* @return The DroiQuery object
*/
- (DroiQuery*) queryByClass : (Class) clazz;
- (DroiQuery*) queryByClass : (Class) clazz NS_SWIFT_NAME(query(byClass:));

/**
* Delete all data from specific class
Expand Down
2 changes: 1 addition & 1 deletion DroiCoreSDK.framework/Headers/DroiReferenceObject.h
Expand Up @@ -15,6 +15,6 @@
/**
* Current referenced object
*/
@property id droiObject;
@property DroiObject* droiObject;

@end
14 changes: 3 additions & 11 deletions DroiCoreSDK.framework/Headers/DroiUser.h
Expand Up @@ -9,8 +9,9 @@
#import "UIKit/UIKit.h"

typedef NS_ENUM(NSUInteger, DroiContactType) {
// DROICONTACT_EMAIL,
DROICONTACT_PHONE
DROICONTACT_EMAIL,
DROICONTACT_PHONE,
DROICONTACT_ALL
};

@class DroiUser;
Expand Down Expand Up @@ -158,15 +159,6 @@ DroiExpose
*/
- (NSString*) signUpInBackground:(DroiSignUpCallback) callback;

/**
Signup with OAuth provider
@param provider OAuth provider. Please call [DroiOAuthProvider providerWithType:] to create provider.
@param callback The callback object DroiObjectCallback is used to receive save result.
@return YES for enqueued.
*/
- (BOOL) signUpOAuth:(DroiOAuthProvider*) provider callback:(DroiObjectCallback) callback;

/**
Cancel background task
Expand Down
Binary file modified DroiCoreSDK.framework/Info.plist
Binary file not shown.
2 changes: 1 addition & 1 deletion DroiCoreSDK.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "DroiCoreSDK"
s.version = "1.1.2377"
s.version = "1.1.2507"
s.summary = "This CoreSDK is one part of DroiBaaS for iOS"
s.homepage = "https://github.com/DroiBaaS/DroiBaaS-Core-iOS"
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" }
Expand Down
Binary file modified DroiCoreSDK_framework_dSYM.zip
Binary file not shown.

0 comments on commit c1915ec

Please sign in to comment.