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 2828#import " PFUser.h"
2929#import " PFWeakValue.h"
3030#import " Parse_Private.h"
31+ #import " PFInstallation.h"
3132
3233typedef BFTask * (^PFOfflineStoreDatabaseExecutionBlock)(PFSQLiteDatabase *database);
3334
@@ -1000,13 +1001,17 @@ - (void)updateObjectIdForObject:(PFObject *)object
10001001 oldObjectId : (NSString *)oldObjectId
10011002 newObjectId : (NSString *)newObjectId {
10021003 if (oldObjectId != nil ) {
1004+ #if TARGET_OS_IOS
10031005 if ([object isKindOfClass: [PFInstallation class ]]
10041006 && newObjectId == nil ) {
10051007 NSString *key = [self _generateKeyForClassName: object.parseClassName objectId: oldObjectId];
10061008 [self .classNameAndObjectIdToObjectMap removeObjectForKey: key];
10071009 } else {
10081010 PFConsistencyAssert ([oldObjectId isEqualToString: newObjectId], @" objectIds cannot be changed in offline mode." );
10091011 }
1012+ #else
1013+ PFConsistencyAssert ([oldObjectId isEqualToString: newObjectId], @" objectIds cannot be changed in offline mode." );
1014+ #endif
10101015 return ;
10111016 }
10121017
You can’t perform that action at this time.
0 commit comments