Skip to content

Commit 14d5bbc

Browse files
Priyanka MistryPriyanka Mistry
authored andcommitted
Updated to version v4.3.0
1 parent 801633e commit 14d5bbc

23 files changed

+355
-78
lines changed

BuiltIOBackend.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'BuiltIOBackend'
3-
s.version = '4.2.0'
3+
s.version = '4.3.0'
44
s.summary = 'The BuiltIO Backend helps you to create apps quickly and effortlessly, taking care of all the backend requirements.'
55

66
s.description = <<-DESC

SDK/.DS_Store

0 Bytes
Binary file not shown.

SDK/iOS/.DS_Store

0 Bytes
Binary file not shown.

SDK/iOS/BuiltIO.framework/BuiltIO

963 KB
Binary file not shown.

SDK/iOS/BuiltIO.framework/Headers/BuiltApplication+LocalStore.h

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,31 @@ BUILT_ASSUME_NONNULL_BEGIN
1616
//MARK: - Clear Hook
1717
/**
1818
Removes all the records from offline DB.
19+
//'blt5d4sample2633b' is a dummy Application API key
20+
21+
//Obj-C
22+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
23+
[builtApplication clearOfflineData];
24+
25+
//Swift
26+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
27+
builtApplication.clearOfflineData()
28+
1929
@warning Not supported in watchOS
2030
*/
2131
- (void)clearOfflineData;
2232

2333
/**
2434
Removes all the records from offline DB for the specified classes.
35+
//'blt5d4sample2633b' is a dummy Application API key
36+
37+
//Obj-C
38+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
39+
[builtApplication clearOfflineDataOfOnly:@[@"task"]];
40+
41+
//Swift
42+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
43+
builtApplication.clearOfflineData(ofOnly: ["task"])
2544
2645
@param onlyClasses Array of class name which need to be removed.
2746
@warning Not supported in watchOS
@@ -30,7 +49,16 @@ Removes all the records from offline DB.
3049

3150
/**
3251
Removes all the records from offline DB except the specified classes.
52+
//'blt5d4sample2633b' is a dummy Application API key
53+
54+
//Obj-C
55+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
56+
[builtApplication clearOfflineDataExcept:@[@"task"]];
3357
58+
//Swift
59+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
60+
builtApplication.clearOfflineData(ofExcept: ["task"])
61+
3462
@param exceptClasses Array of class name which need not to be removed.
3563
@warning Not supported in watchOS
3664
*/
@@ -40,13 +68,33 @@ Removes all the records from offline DB.
4068

4169
/**
4270
Sync all classes with the server. If offline is enabled in BuiltConfig it will save all records.
71+
//'blt5d4sample2633b' is a dummy Application API key
72+
73+
//Obj-C
74+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
75+
[builtApplication sync];
76+
77+
//Swift
78+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
79+
builtApplication.sync()
4380
4481
@warning Not supported in watchOS
4582
*/
4683
- (void)sync;
4784

4885
/**
4986
Sync all classes with the server from the specified date. If offline is enabled in BuiltConfig it will save all records.
87+
//'blt5d4sample2633b' is a dummy Application API key
88+
89+
//Obj-C
90+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
91+
NSDate *date = [NSDate dateWithTimeIntervalSince1970:10000];
92+
[builtApplication sync:date];
93+
94+
//Swift
95+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
96+
let date:Date = Date.init(timeIntervalSince1970: 10000)
97+
builtApplication.sync(date)
5098
5199
@param date Date from which sync need to be performed.
52100
@warning Not supported in watchOS
@@ -55,6 +103,17 @@ Removes all the records from offline DB.
55103

56104
/**
57105
Sync only classes specified with the server. If offline is enabled in BuiltConfig it will save all records.
106+
//'blt5d4sample2633b' is a dummy Application API key
107+
108+
//Obj-C
109+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
110+
NSDate *date = [NSDate dateWithTimeIntervalSince1970:10000];
111+
[builtApplication syncOnly:@[@"task"]];
112+
113+
//Swift
114+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
115+
let date:Date = Date.init(timeIntervalSince1970: 10000)
116+
builtApplication.syncOnly(["task"])
58117
59118
@param onlyClasses Array of class name which should to be synced.
60119
@warning Not supported in watchOS
@@ -63,6 +122,17 @@ Removes all the records from offline DB.
63122

64123
/**
65124
Sync only classes specified with the server from the specified date. If offline is enabled in BuiltConfig it will save all records.
125+
//'blt5d4sample2633b' is a dummy Application API key
126+
127+
//Obj-C
128+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
129+
NSDate *date = [NSDate dateWithTimeIntervalSince1970:10000];
130+
[application syncOnly:@[@"task"] date:date];
131+
132+
//Swift
133+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
134+
let date:Date = Date.init(timeIntervalSince1970: 10000)
135+
builtApplication.syncOnly(["task"], date: date)
66136
67137
@param onlyClasses Array of class name which should to be synced.
68138
@param date Date from which sync need to be performed.
@@ -72,6 +142,17 @@ Removes all the records from offline DB.
72142

73143
/**
74144
Sync all classes except the specified list with the server. If offline is enabled in BuiltConfig it will save all records.
145+
//'blt5d4sample2633b' is a dummy Application API key
146+
147+
//Obj-C
148+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
149+
NSDate *date = [NSDate dateWithTimeIntervalSince1970:10000];
150+
[builtApplication syncExcept:@[@"project"]];
151+
152+
//Swift
153+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
154+
let date:Date = Date.init(timeIntervalSince1970: 10000)
155+
builtApplication.syncExcept(["project"])
75156
76157
@param exceptClasses Array of class name which should not be synced.
77158
@warning Not supported in watchOS
@@ -80,13 +161,82 @@ Removes all the records from offline DB.
80161

81162
/**
82163
Sync all classes except the specified list with the server from the specified date. If offline is enabled in BuiltConfig it will save all records.
164+
//'blt5d4sample2633b' is a dummy Application API key
165+
166+
//Obj-C
167+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
168+
NSDate *date = [NSDate dateWithTimeIntervalSince1970:10000];
169+
[application syncExcept:@[@"project"] date:date];
83170
171+
//Swift
172+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
173+
let date:Date = Date.init(timeIntervalSince1970: 10000)
174+
builtApplication.syncExcept(["project"], date: date)
175+
84176
@param exceptClasses Array of class name which should not be synced.
85177
@param date Date from which sync need to be performed.
86178
@warning Not supported in watchOS
87179
*/
88180
- (void)syncExcept:(NSArray*)exceptClasses date:(NSDate*)date;
89181

182+
/**
183+
Note: If objects are more than 1000 in a class, then this method will be recommended instead of sync.
184+
185+
Sync all classes with the server with pagination. If offline is enabled in BuiltConfig it will save all records.
186+
//'blt5d4sample2633b' is a dummy Application API key
187+
188+
//Obj-C
189+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
190+
[builtApplication syncWithPagination];
191+
192+
//Swift
193+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
194+
builtApplication.syncWithPagination()
195+
196+
@warning Not supported in watchOS
197+
*/
198+
- (void)syncWithPagination;
199+
200+
/**
201+
Note: If objects are more than 1000 in a class, then this method will be recommended instead of syncOnly.
202+
203+
Sync only classes specified with the server with pagination. If offline is enabled in BuiltConfig it will save all records.
204+
//'blt5d4sample2633b' is a dummy Application API key
205+
206+
//Obj-C
207+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
208+
[builtApplication syncOnlyWithPagination:@[@"task"]];
209+
210+
//Swift
211+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
212+
builtApplication.syncOnly(withPagination: ["task"])
213+
214+
215+
@param onlyClasses Array of class name which should to be synced.
216+
@warning Not supported in watchOS
217+
*/
218+
- (void)syncOnlyWithPagination:(NSArray*)onlyClasses ;
219+
220+
/**
221+
Note: If objects are more than 1000 in a class, then this method will be recommended instead of syncExcept.
222+
223+
Sync all classes except the specified list with the server with pagination. If offline is enabled in BuiltConfig it will save all records.
224+
//'blt5d4sample2633b' is a dummy Application API key
225+
226+
//Obj-C
227+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
228+
[builtApplication syncExceptWithPagination:@[@"project"]];
229+
230+
//Swift
231+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
232+
builtApplication.syncExcept(withPagination: ["project"])
233+
234+
235+
@param exceptClasses Array of class name which should not be synced.
236+
@warning Not supported in watchOS
237+
*/
238+
- (void)syncExceptWithPagination:(NSArray*)exceptClasses;
239+
90240
@end
91241

92242
BUILT_ASSUME_NONNULL_END

SDK/iOS/BuiltIO.framework/Headers/BuiltExtension.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ typedef NS_ENUM(NSUInteger, BuiltRequestType) {
7070
@param completion this block will be called after network call if success `responseObject` will contain the response from the extension method or else nil. `error` object will contain error if any.
7171
7272
*/
73-
- (void)execute:(void (^)(BuiltResponseType responseType, id responseObject, NSError *error))completionBlock;
73+
- (void)execute:(void (^)(BuiltResponseType responseType, id BUILT_NULLABLE_P responseObject, NSError * BUILT_NULLABLE_P error))completionBlock;
7474

7575
/**
7676
@abstract Makes a call to an extension function asynchronously.
@@ -94,7 +94,7 @@ typedef NS_ENUM(NSUInteger, BuiltRequestType) {
9494
@param completion this block will be called after network call if success `responseObject` will contain the response from the extension method or else nil. `error` object will contain error if any.
9595
9696
*/
97-
- (void)executeFunction:(void (^)(BuiltResponseType responseType, id responseObject, NSError *error))completionBlock;
97+
- (void)executeFunction:(void (^)(BuiltResponseType responseType, id BUILT_NULLABLE_P responseObject, NSError * BUILT_NULLABLE_P error))completionBlock;
9898

9999
/**
100100
@abstract set request url and request type.

SDK/iOS/BuiltIO.framework/Headers/BuiltIO.h

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

9-
// sdk-version: 4.2.0
9+
// sdk-version: beta-4.3.0
1010

1111
#import <Foundation/Foundation.h>
1212

SDK/iOS/BuiltIO.framework/Headers/BuiltQueryResult.h

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,62 @@ BUILT_ASSUME_NONNULL_BEGIN
102102
@return Returns the count of number of object returned by BuiltQuery.
103103
*/
104104
- (NSInteger)count;
105+
/**
106+
@abstract Count of number of created objects returned by BuiltQuery.
107+
108+
//Obj-C
109+
[projectQuery exec:^(BuiltResponseType type, BuiltQueryResult *result, NSError *error) {
110+
NSInteger createdCount = [result createdCount];
111+
}];
112+
113+
114+
//Swift
115+
projectQuery.exec { (responseType, queryResult!, error!) -> Void in
116+
var createdCount:Int = queryResult.createdCount()
117+
}
118+
119+
120+
@return Returns the count of number of createdCount objects returned by BuiltQuery.
121+
*/
122+
- (NSInteger)createdCount;
123+
124+
/**
125+
@abstract Count of number of updated objects returned by BuiltQuery.
126+
127+
//Obj-C
128+
[projectQuery exec:^(BuiltResponseType type, BuiltQueryResult *result, NSError *error) {
129+
NSInteger updatedCount = [result updatedCount];
130+
}];
131+
132+
133+
//Swift
134+
projectQuery.exec { (responseType, queryResult!, error!) -> Void in
135+
var updatedCount:Int = queryResult.updatedCount()
136+
}
137+
138+
139+
@return Returns the count of number of updated objects returned by BuiltQuery.
140+
*/
141+
- (NSInteger)updatedCount;
142+
143+
/**
144+
@abstract Count of number of deleted objects returned by BuiltQuery.
145+
146+
//Obj-C
147+
[projectQuery exec:^(BuiltResponseType type, BuiltQueryResult *result, NSError *error) {
148+
NSInteger deletedCount = [result deletedCount];
149+
}];
150+
151+
152+
//Swift
153+
projectQuery.exec { (responseType, queryResult!, error!) -> Void in
154+
var deletedCount:Int = queryResult.deletedCount()
155+
}
156+
157+
158+
@return Returns the count of number of deleted objects returned by BuiltQuery.
159+
*/
160+
- (NSInteger)deletedCount;
105161

106162
/**
107163
@abstract Get array of updated objects returned by BuiltDelta.

SDK/iOS/BuiltIO.framework/Headers/BuiltUser.h

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -639,31 +639,29 @@ Fetch user uid asynchronously by providing twiiter user id
639639
*/
640640

641641
/**
642-
Activate a user asynchronously.
642+
Activate a user asynchronously.
643643
644-
//'bltba9a44506dd9e741' is a uid of an object of inbuilt Application User class
644+
//'bltba9a44506dd9e741' is a uid of an object of inbuilt Application User class
645645
646-
//Obj-C
647-
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
648-
BuiltUser *userObject = [builtApplication user];
649-
[userObject activateUserWithUserId:@"bltba9a44506dd9e741" andActivationToken:@"saMpLeaTivAtioNtoKeN" completion:^(BuiltResponseType responseType, NSError *error) {
650-
651-
}];
652-
653-
//Swift
654-
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
655-
var userObject:BuiltUser = builtApplication.user()
656-
userObject.activateUserWithUserId("bltba9a44506dd9e741", andActivationToken:"saMpLeaTivAtioNtoKeN") { (responseType, error!) -> Void in
657-
658-
}
646+
//Obj-C
647+
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
648+
BuiltUser *userObject = [builtApplication user];
649+
[userObject activateUserWithUserId:@"bltba9a44506dd9e741" andActivationToken:@"saMpLeaTivAtioNtoKeN" completion:^(BuiltResponseType responseType, NSError *error) {
659650
660-
@param userId user id of the user to activate
661-
@param token activation token
662-
@param completionBlock Completion block with params (BuiltResponseType responseType, id responseJSON, NSError *error)
651+
}];
652+
653+
//Swift
654+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
655+
var userObject:BuiltUser = builtApplication.user()
656+
userObject.activateUserWithUserId("bltba9a44506dd9e741", andActivationToken:"saMpLeaTivAtioNtoKeN") { (responseType, error!) -> Void in
657+
658+
}
659+
660+
@param userId user id of the user to activate
661+
@param token activation token
662+
@param completionBlock Completion block with params (BuiltResponseType responseType, id responseJSON, NSError *error)
663663
*/
664-
- (void)activateUserWithUserId:(NSString *)userId
665-
andActivationToken:(NSString *)token
666-
completion:(BuiltRequestCompletionHandler)completionBlock;
664+
- (void)activateUserWithUserId:(NSString *)userId andActivationToken:(NSString *)token completion:(BuiltRequestCompletionHandler)completionBlock;
667665

668666
/**
669667
Deactivates user's account on Built.io Backend asynchronously
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)