Skip to content

Commit 7e6f8aa

Browse files
Priyanka MistryPriyanka Mistry
Priyanka Mistry
authored and
Priyanka Mistry
committed
Updated to v3.1.1
1 parent bf16168 commit 7e6f8aa

28 files changed

+1190
-70
lines changed

.DS_Store

6 KB
Binary file not shown.

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 = '3.1.0'
3+
s.version = '3.1.1'
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

6 KB
Binary file not shown.

SDK/iOS/.DS_Store

6 KB
Binary file not shown.

SDK/iOS/BuiltIO.framework/.DS_Store

6 KB
Binary file not shown.

SDK/iOS/BuiltIO.framework/BuiltIO

-2.73 MB
Binary file not shown.

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,41 +243,41 @@ Use this method only when the values of the fields inside referenced object is t
243243
//ObjC
244244
BuiltGroup *detailGroup = [BuiltGroup groupWithFieldName:@"details"];
245245
246-
[detailGroup addUpsertForReferenceField:@"project" condition:@{@"name":@"Super Project #41"} replaceWith:@{@"name":@"Super Project A", @"description":@"New project"}];
246+
[detailGroup addUpsertForReference:@"project" condition:@{@"name":@"Super Project #41"} replaceWith:@{@"name":@"Super Project A", @"description":@"New project"}];
247247
248248
//Swift
249249
var detailGroup:BuiltGroup = BuiltGroup(fieldName:"details")
250250
251-
detailGroup.addUpsertForReferenceField("project", condition:["name":"Super Project #41"], replaceWith:["name":"Super Project A", "description":"New project"])
251+
detailGroup.addUpsertForReference("project", condition:["name":"Super Project #41"], replaceWith:["name":"Super Project A", "description":"New project"])
252252
253253
254-
@param referenceField Reference uid on which UPSERT is to be performed
254+
@param referenceField Reference field uid on which UPSERT has to be performed
255255
@param conditionDictionary A check will be performed, whether any object has the key value pair(s) supplied in the dictionary in the reference field
256256
@param replaceDictionary New key value pairs for the fields inside the referenced object
257257
*/
258258

259-
- (void)addUpsertForReferenceField:(NSString *)referenceField condition:(NSDictionary *)conditionDictionary replaceWith:(NSDictionary *)replaceDictionary;
259+
- (void)addUpsertForReference:(NSString *)referenceField condition:(NSDictionary *)conditionDictionary replaceWith:(NSDictionary *)replaceDictionary;
260260

261261
/**
262262
Use this method only when the values of the fields inside referenced objects are to be changed while creating a new object.
263263
264264
//ObjC
265265
BuiltGroup *detailGroup = [BuiltGroup groupWithFieldName:@"details"];
266266
267-
[detailGroup addUpsertForMultipleReferenceField:@"project" condition:@{@"name":@"Super Project #41"} replaceWith:@{@"name":@"Super Project A", @"description":@"New project"}];
267+
[detailGroup addUpsertForReferences:@"project" condition:@{@"name":@"Super Project #41"} replaceWith:@{@"name":@"Super Project A", @"description":@"New project"}];
268268
269269
//Swift
270270
var detailGroup:BuiltGroup = BuiltGroup(fieldName:"details")
271271
272-
detailGroup.addUpsertForMultipleReferenceField("project", condition:["name":"Super Project #41"], replaceWith:["name":"Super Project A", "description":"New project"])
272+
detailGroup.addUpsertForReferences("project", condition:["name":"Super Project #41"], replaceWith:["name":"Super Project A", "description":"New project"])
273273
274274
275-
@param referenceField Reference uid on which UPSERT is to be performed
275+
@param referenceField Reference field uid (Which is marked as multiple) on which UPSERT has to be performed
276276
@param conditionDictionary A check will be performed, whether any object has the key value pair(s) supplied in the dictionary in the reference field
277277
@param replaceDictionary New key value pairs for the fields inside the referenced object
278278
*/
279279

280-
- (void)addUpsertForMultipleReferenceField:(NSString *)referenceField condition:(NSDictionary *)conditionDictionary replaceWith:(NSDictionary *)replaceDictionary;
280+
- (void)addUpsertForReferences:(NSString *)referenceField condition:(NSDictionary *)conditionDictionary replaceWith:(NSDictionary *)replaceDictionary;
281281

282282

283283
//MARK: - operations on fields of multiple 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: 3.1.0
9+
// sdk-version: 3.1.1
1010
// api-version: 3.1
1111

1212
#import <Foundation/Foundation.h>

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -460,21 +460,21 @@ Use this method only when the values of the fields inside referenced object is t
460460
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
461461
BuiltClass *taskClass = [builtApplication classWithUID:@"task"];
462462
BuiltObject *taskObject = [taskClass object];
463-
[taskObject addUpsertForReferenceField:@"project" condition:@{@"name":@"Super Project #41!"} replaceWith:@{@"description":@"This is a very cool project"}]
463+
[taskObject addUpsertForReference:@"project" condition:@{@"name":@"Super Project #41!"} replaceWith:@{@"description":@"This is a very cool project"}]
464464

465465
//Swift
466466
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
467467
var taskClass:BuiltClass = builtApplication.classWithUID("task")
468468
var taskObject:BuiltObject = taskClass.object()
469-
taskObject.addUpsertForReferenceField("project", condition:["name":"Super Project #41!"], replaceWith:@{"description":"This is a very cool project"})
469+
taskObject.addUpsertForReference("project", condition:["name":"Super Project #41!"], replaceWith:@{"description":"This is a very cool project"})
470470
471471
472-
@param referenceField Reference uid on which UPSERT is to be performed
472+
@param referenceField Reference field uid on which UPSERT has to be performed
473473
@param conditionDictionary A check will be performed, whether any object has the key value pair(s) supplied in the dictionary in the reference field
474474
@param replaceDictionary New key value pairs for the fields inside the referenced object
475475
*/
476476

477-
- (void)addUpsertForReferenceField:(NSString *)referenceField condition:(NSDictionary *)conditionDictionary replaceWith:(NSDictionary *)replaceDictionary;
477+
- (void)addUpsertForReference:(NSString *)referenceField condition:(NSDictionary *)conditionDictionary replaceWith:(NSDictionary *)replaceDictionary;
478478

479479
/**
480480
Use this method only when the values of the fields inside referenced objects are to be changed while creating a new objects.
@@ -483,20 +483,20 @@ Use this method only when the values of the fields inside referenced object is t
483483
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
484484
BuiltClass *taskClass = [builtApplication classWithUID:@"task"];
485485
BuiltObject *taskObject = [taskClass object];
486-
[taskObject addUpsertForMultipleReferenceField:@"project" condition:@{@"name":@"Super Project #41!"} replaceWith:@{@"description":@"This is a very cool project"}];
486+
[taskObject addUpsertForReferences:@"project" condition:@{@"name":@"Super Project #41!"} replaceWith:@{@"description":@"This is a very cool project"}];
487487

488488
//Swift
489489
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
490490
var taskClass:BuiltClass = builtApplication.classWithUID("task")
491491
var taskObject:BuiltObject = taskClass.object()
492-
taskObject.addUpsertForMultipleReferenceField("project", condition:["name":"Super Project #41!"], replaceWith:["description":"This is a very cool project"])
492+
taskObject.addUpsertForReferences("project", condition:["name":"Super Project #41!"], replaceWith:["description":"This is a very cool project"])
493493
494494
495-
@param referenceField Reference uid on which UPSERT is to be performed
495+
@param referenceField Reference field uid (Which is marked as multiple) on which UPSERT has to be performed
496496
@param conditionDictionary A check will be performed, whether any object has the key value pair(s) supplied in the dictionary in the reference field
497497
@param replaceDictionary New key value pairs for the fields inside the referenced object
498498
*/
499-
- (void)addUpsertForMultipleReferenceField:(NSString *)referenceField condition:(NSDictionary *)conditionDictionary replaceWith:(NSDictionary *)replaceDictionary;
499+
- (void)addUpsertForReferences:(NSString *)referenceField condition:(NSDictionary *)conditionDictionary replaceWith:(NSDictionary *)replaceDictionary;
500500

501501
//MARK: - object owner
502502
/**---------------------------------------------------------------------------------------

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

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -158,40 +158,7 @@ Fetch presence of user by initating network call.
158158
*/
159159
- (void)getPresence:(void (^) (NSError * BUILT_NULLABLE_P error))completionBlock;
160160

161-
/**
162-
Request for user's presence
163-
164-
// 'blt5d4sample2633b' is dummy Application API key
165-
// 'blt5dsamplef62a111a' is dummy object uid of an application user to whom we want to send a request
166-
167-
//ObjC
168-
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
169-
BuiltUser *userObject = [builtApplication userWithUID:@"blt5dsamplef62a111a"];
170-
[userObject requestPresenceAccess:^(NSError *error) {
171-
if (error) {
172-
//error occured while requesting for presence
173-
}else {
174-
//requested for presence
175-
}
176-
}];
177-
178-
//Swift
179-
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
180-
var userObject:BuiltUser = builtApplication.userWithUID("blt5dsamplef62a111a")
181-
userObject.requestPresenceAccess { (error) -> Void in
182-
if (error != nil) {
183-
//error occured while requesting for presence
184-
}else {
185-
//requested for presence
186-
}
187-
}
188-
189-
@param completionBlock block called once request is performed
190-
@warning Not supported in watchOS
191-
*/
192-
- (void)requestPresenceAccess:(void (^) (NSError * BUILT_NULLABLE_P error))completionBlock;
193-
194161
@end
195162

196163
BUILT_ASSUME_NONNULL_END
197-
#endif
164+
#endif
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)