File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Parse/Internal/LocalDataStore/OfflineStore Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 28
28
#import " PFUser.h"
29
29
#import " PFWeakValue.h"
30
30
#import " Parse_Private.h"
31
+ #import " PFInstallation.h"
31
32
32
33
typedef BFTask * (^PFOfflineStoreDatabaseExecutionBlock)(PFSQLiteDatabase *database);
33
34
@@ -1000,13 +1001,17 @@ - (void)updateObjectIdForObject:(PFObject *)object
1000
1001
oldObjectId : (NSString *)oldObjectId
1001
1002
newObjectId : (NSString *)newObjectId {
1002
1003
if (oldObjectId != nil ) {
1004
+ #if TARGET_OS_IOS
1003
1005
if ([object isKindOfClass: [PFInstallation class ]]
1004
1006
&& newObjectId == nil ) {
1005
1007
NSString *key = [self _generateKeyForClassName: object.parseClassName objectId: oldObjectId];
1006
1008
[self .classNameAndObjectIdToObjectMap removeObjectForKey: key];
1007
1009
} else {
1008
1010
PFConsistencyAssert ([oldObjectId isEqualToString: newObjectId], @" objectIds cannot be changed in offline mode." );
1009
1011
}
1012
+ #else
1013
+ PFConsistencyAssert ([oldObjectId isEqualToString: newObjectId], @" objectIds cannot be changed in offline mode." );
1014
+ #endif
1010
1015
return ;
1011
1016
}
1012
1017
You can’t perform that action at this time.
0 commit comments