Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
caff262
podspec,
Jan 22, 2013
a77c07e
Assumes that Many-to-Many relationships always use PFRelation
Jan 22, 2013
313eadc
pod spec
Jan 22, 2013
226bce2
add machine generated versions (for mogenerator)
Jan 22, 2013
379b73d
spelling
Jan 22, 2013
56aa7c2
replace DDLog with MRLog
Jan 22, 2013
7747b8c
fix pfrelations stuff
Jan 23, 2013
0667747
fix for latest version of MagicalRecord
Jan 24, 2013
b620c79
sync working better with MR2.1
Jan 25, 2013
da2787e
more changes for compatibility with MR2.1
Jan 25, 2013
9df9bdd
Updated methods for MagicalRecord 2.1
inturbidus Jun 6, 2013
0f06955
Updated README
inturbidus Jun 6, 2013
ed7556a
Store Array object to parse
reikubonaga Jul 2, 2013
f262e0e
Save syncStatus to persistentStore
reikubonaga Jul 2, 2013
3039c3e
Create gitignore
reikubonaga Jul 3, 2013
4d305eb
Create parsekey
reikubonaga Jul 3, 2013
972eca6
Use MagicalRecord 2.2
reikubonaga Jul 3, 2013
05ef31e
Fix minor bug
reikubonaga Jul 3, 2013
11dafe9
Create upload parse object test
reikubonaga Jul 3, 2013
e33da3a
Delete all fetched objects
reikubonaga Jul 3, 2013
51af2a0
test to save the object to persistant store
reikubonaga Jul 3, 2013
5a5e7bb
Sync parse
reikubonaga Jul 3, 2013
cc59555
Fix multi thread problem
reikubonaga Jul 3, 2013
85fe0c9
Call complete function after all objects are saved
reikubonaga Jul 3, 2013
6bc682b
Compare lastUpdate
reikubonaga Jul 3, 2013
39e4cb8
Call completion method after FTASyncDidSync
reikubonaga Jul 3, 2013
c88b7e8
Fix deletedLocalObject problem
reikubonaga Jul 3, 2013
19ab8e5
Update parse framework
reikubonaga Jul 3, 2013
d3e9497
Fix minor bug
reikubonaga Jul 3, 2013
add7ca0
Ignore unexisting PFObject
reikubonaga Jul 3, 2013
e4af846
Fix testUploadParseFromCreatedLocalObject
reikubonaga Jul 3, 2013
3515bd0
Fix setUp magical record bug
reikubonaga Jul 3, 2013
751a402
Create testUploadParseFromUpdatedLocalObject
reikubonaga Jul 4, 2013
316815b
Create testUploadParseFromDeletedLocalObject
reikubonaga Jul 4, 2013
39c5560
Don't change default context
reikubonaga Jul 4, 2013
96c1288
Fix function name
reikubonaga Jul 4, 2013
012f497
Delete every time and create local object and upload to parse before …
reikubonaga Jul 4, 2013
1639d47
Ignore deleting object which don't exist in parse
reikubonaga Jul 4, 2013
7810a4c
Fetch from default context
reikubonaga Jul 4, 2013
54d18fa
Fix minor bug
reikubonaga Jul 4, 2013
e7561e3
Don't change last update time
reikubonaga Jul 4, 2013
02fd5c2
Create testStoreCreatedParseObject
reikubonaga Jul 4, 2013
3cce467
Create testStoreUpdatedParseObject
reikubonaga Jul 4, 2013
9a61de4
Fix update time
reikubonaga Jul 4, 2013
3fcdf6f
Fix syncStatus bug after update remote object
reikubonaga Jul 4, 2013
c6593f2
create testStoreDeletedParseObject
reikubonaga Jul 4, 2013
5979bfe
Fix lastupdate time problem
reikubonaga Jul 4, 2013
adfa218
Log the object information
reikubonaga Jul 4, 2013
067a298
Delete unneed test code
reikubonaga Jul 4, 2013
5cb5524
Refactoring update time
reikubonaga Jul 4, 2013
1abf342
Check updateAt
reikubonaga Jul 4, 2013
1f55eab
Add the createdAt to FTASyncParent
reikubonaga Jul 4, 2013
021b2b6
mogenerator -m FTASyncDemo/FTASyncDemo/DataClasses/FTASyncDemo.xcdata…
reikubonaga Jul 4, 2013
e857e0b
Store createdAt to FTASyncParent
reikubonaga Jul 4, 2013
60b1a1f
create testIgnoreCompleteDeletedParseObject
reikubonaga Jul 5, 2013
c132ee4
Create testUpdateLocalObjectDeletedInParse
reikubonaga Jul 5, 2013
7b81d00
Fix updated local object case deleted in parse
reikubonaga Jul 5, 2013
d55df9c
Fix updatetime
reikubonaga Jul 5, 2013
5f3426d
Merge pull request #1 from reikubonaga/rei/minor_sync_case
reikubonaga Jul 5, 2013
08cb513
create deleteAllDeletedByRemote method
reikubonaga Jul 5, 2013
6ce190c
test deleteAllDeletedByRemote method
reikubonaga Jul 5, 2013
666dab9
Fix NSNull case
reikubonaga Jul 10, 2013
8592209
Update updatedAt
reikubonaga Jul 10, 2013
96fbae0
Fix updating bug
reikubonaga Jul 10, 2013
3368bc2
Add current user to parse object
reikubonaga Jul 11, 2013
bdb0a49
Fix context problem
reikubonaga Jul 11, 2013
5321095
Don't store objects without ACL
reikubonaga Jul 11, 2013
c8da75f
Ignore createdAt is low than lastupdatedAt
reikubonaga Jul 11, 2013
5bf9ec4
Fix nsnull class
reikubonaga Jul 11, 2013
69cda8b
Sync every 10 column
reikubonaga Jul 12, 2013
7620e3b
Add sync test every 10 columns
reikubonaga Jul 12, 2013
e738a9c
Set queryLimit to FTASyncHandler
reikubonaga Jul 12, 2013
cdefe58
Fix sync handler some times
reikubonaga Jul 12, 2013
2f4abe2
Merge pull request #2 from reikubonaga/rei/update_10_columns
reikubonaga Jul 12, 2013
d72e9f5
Don't set updateAt to new local object
reikubonaga Jul 15, 2013
24fdea2
Fix relative path
hottestseason Jul 15, 2013
425b022
Fix assert updatedAt
reikubonaga Jul 15, 2013
a6f0377
Merge pull request #3 from reikubonaga/summer/fix_relative_path
reikubonaga Jul 15, 2013
476c6c2
setUpClass before each test
hottestseason Jul 15, 2013
98d72d6
Add test to upload image data to parse
hottestseason Jul 15, 2013
661d49c
Add more test image sizes
hottestseason Jul 15, 2013
5bc563a
Fix new object case
reikubonaga Jul 16, 2013
b19fdac
Merge pull request #4 from reikubonaga/summer/upload_image_to_parse
reikubonaga Jul 16, 2013
f41587f
Merge pull request #5 from reikubonaga/rei/fix_new_object_case
reikubonaga Jul 16, 2013
6bd804d
Sync failed if create a new object into core data after new objects a…
hottestseason Jul 17, 2013
8af15b3
Fix the failed test
hottestseason Jul 17, 2013
02b6537
Use old methods
hottestseason Jul 17, 2013
9b66ddc
Remove FTA_lastUpdate tests
hottestseason Jul 17, 2013
ae3ad4b
Save image as url
reikubonaga Jul 17, 2013
0c6fc92
Fix nil case
reikubonaga Jul 17, 2013
6ebcb2f
Set lastUpdate just before return
hottestseason Jul 17, 2013
9e76bdf
Merge pull request #6 from reikubonaga/summer/fix_sync_bugs
reikubonaga Jul 17, 2013
31ba5ed
define unarchivePhotoData in FTAParent
reikubonaga Jul 17, 2013
85be2d0
Merge pull request #7 from reikubonaga/rei/save_image_as_url
reikubonaga Jul 17, 2013
d9cc342
Add success flag and error attr to completion block
hottestseason Jul 17, 2013
1b25289
Use another thread to deleteAllDeletedByRemote
hottestseason Jul 17, 2013
de9e0a9
Merge pull request #8 from reikubonaga/summer/fix_sync_bugs
reikubonaga Jul 22, 2013
0868430
Store latest received PFObjects to FTAhandler instance
reikubonaga Jul 22, 2013
cfe9105
Merge pull request #9 from reikubonaga/rei/return_info
reikubonaga Jul 22, 2013
d773471
Add testStoreCreatedParseImageData
hottestseason Jul 22, 2013
814a15d
Support destroy photo on both client and parse side
hottestseason Jul 22, 2013
6c6ae7f
Merge pull request #10 from reikubonaga/summer/destroy_photo
reikubonaga Jul 22, 2013
c536f97
Refactoring
hottestseason Jul 24, 2013
3c22368
Support error for FTAParseSync#getObjectsOfClass
hottestseason Jul 24, 2013
fac14af
Change syncEntity and syncAll to return result
hottestseason Jul 24, 2013
9c138f2
Wait until save finished
hottestseason Jul 24, 2013
5f4ecf7
Refactoring
hottestseason Jul 24, 2013
2ac3b35
Support error for FTAParseSync#getObjectsOfClass
hottestseason Jul 24, 2013
b03f969
Change syncEntity and syncAll to return result
hottestseason Jul 24, 2013
7ccd5d2
Wait until save finished
hottestseason Jul 24, 2013
c09566d
Create updateObjectWithRemoteObject WithContext method
reikubonaga Jul 24, 2013
a642510
Merge branch 'master' of github.com:reikubonaga/FTASync
reikubonaga Jul 24, 2013
b54169d
Merge pull request #11 from reikubonaga/summer/return_sync_result
reikubonaga Jul 24, 2013
2caf2fd
Merge branch 'master' of github.com:reikubonaga/FTASync
reikubonaga Jul 24, 2013
ef94b7b
Fix monor test bug
reikubonaga Jul 24, 2013
30458d6
Merge branch 'master' of github.com:reikubonaga/FTASync into summer/r…
reikubonaga Jul 24, 2013
2c2d7ce
Fix no data case
reikubonaga Jul 24, 2013
7b782a5
Upload local model with relation to parse
reikubonaga Jul 24, 2013
9652055
Merge pull request #12 from reikubonaga/summer/relation_test
reikubonaga Jul 24, 2013
edfecbf
Fix undefined problem
reikubonaga Jul 24, 2013
56d0c83
Added some logging for tests
inturbidus Jul 24, 2013
f21281b
Merge branch 'master' of https://github.com/reikubonaga/FTASync
inturbidus Jul 24, 2013
bccd4b5
Tweaks to FTASyncParent
inturbidus Jul 24, 2013
522a710
Fix issue with PFFile not being converted to NSData
inturbidus Jul 29, 2013
7edcef1
Merge in all changes from inturbidus/FTASync
Sep 18, 2013
70570ca
bug fix, bump to 0.0.6
Sep 18, 2013
4c8bb3f
Update FTASync.podspec
akbsteam Sep 10, 2014
6bf1812
Update FTASync.podspec
akbsteam Sep 10, 2014
13e3065
Update FTASync.podspec
akbsteam Sep 10, 2014
7c67f8d
Update FTASync.podspec
akbsteam Sep 10, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
24 changes: 24 additions & 0 deletions FTASync.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Be sure to run `pod spec lint FTASync.podspec' to ensure this is a
# valid spec.
#
# Remove all comments before submitting the spec. Optional attributes are commented.
#
# For details see: https://github.com/CocoaPods/CocoaPods/wiki/The-podspec-format
#
Pod::Spec.new do |s|
s.name = "FTASync"
s.version = "0.0.6"
s.summary = "Allows you to sync CoreData entities with a Parse backend."
s.homepage = "https://github.com/itsniper/FTASync"

s.license = { :type => 'Custom', :file => 'LICENSE.txt' }
s.author = { "Andy Bennett" => "andy@steamshift.net" }

s.source = { :git => "https://github.com/akbsteam/FTASync.git" }
s.platform = :ios

s.source_files = 'Source', 'Source/*.{h,m}'
s.dependency 'Parse', '>= 1.2.8'
s.dependency 'MagicalRecord', '>= 2.1.0'
end
451 changes: 238 additions & 213 deletions FTASyncDemo/FTASyncDemo.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model name="" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="1810" systemVersion="12B19" minimumToolsVersion="Automatic" macOSVersion="Automatic" iOSVersion="Automatic">
<model name="" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="2061" systemVersion="12E3067" minimumToolsVersion="Automatic" macOSVersion="Automatic" iOSVersion="Automatic">
<entity name="AbstractPerson" representedClassName="AbstractPerson" isAbstract="YES" parentEntity="FTASyncParent" syncable="YES">
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
</entity>
Expand All @@ -26,6 +26,7 @@
<userInfo/>
</entity>
<entity name="FTASyncParent" representedClassName="FTASyncParent" isAbstract="YES">
<attribute name="createdAt" optional="YES" attributeType="Date" syncable="YES"/>
<attribute name="createdHere" optional="YES" attributeType="Boolean" defaultValueString="YES">
<userInfo/>
</attribute>
Expand All @@ -41,9 +42,9 @@
<userInfo/>
</entity>
<elements>
<element name="FTASyncParent" positionX="160" positionY="192" width="128" height="105"/>
<element name="AbstractPerson" positionX="358" positionY="261" width="128" height="58"/>
<element name="CDPerson" positionX="333" positionY="387" width="128" height="73"/>
<element name="CDToDoItem" positionX="160" positionY="384" width="128" height="88"/>
<element name="AbstractPerson" positionX="358" positionY="261" width="128" height="58"/>
<element name="FTASyncParent" positionX="160" positionY="192" width="128" height="120"/>
</elements>
</model>
8 changes: 5 additions & 3 deletions FTASyncDemo/FTASyncDemo/DataClasses/_AbstractPerson.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ extern const struct AbstractPersonFetchedProperties {



@property (nonatomic, strong) NSString *name;

@property (nonatomic, strong) NSString* name;



//- (BOOL)validateName:(id*)value_ error:(NSError**)error_;
Expand All @@ -48,8 +50,8 @@ extern const struct AbstractPersonFetchedProperties {
@interface _AbstractPerson (CoreDataGeneratedPrimitiveAccessors)


- (NSString *)primitiveName;
- (void)setPrimitiveName:(NSString *)value;
- (NSString*)primitiveName;
- (void)setPrimitiveName:(NSString*)value;



Expand Down
2 changes: 1 addition & 1 deletion FTASyncDemo/FTASyncDemo/DataClasses/_AbstractPerson.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ - (AbstractPersonID*)objectID {
return (AbstractPersonID*)[super objectID];
}

+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
+ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];


Expand Down
50 changes: 38 additions & 12 deletions FTASyncDemo/FTASyncDemo/DataClasses/_FTASyncParent.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@


extern const struct FTASyncParentAttributes {
__unsafe_unretained NSString *createdAt;
__unsafe_unretained NSString *createdHere;
__unsafe_unretained NSString *objectId;
__unsafe_unretained NSString *syncStatus;
Expand All @@ -23,6 +24,7 @@ extern const struct FTASyncParentFetchedProperties {




@interface FTASyncParentID : NSManagedObjectID {}
@end

Expand All @@ -35,7 +37,19 @@ extern const struct FTASyncParentFetchedProperties {



@property (nonatomic, strong) NSNumber *createdHere;

@property (nonatomic, strong) NSDate* createdAt;



//- (BOOL)validateCreatedAt:(id*)value_ error:(NSError**)error_;





@property (nonatomic, strong) NSNumber* createdHere;



@property BOOL createdHereValue;
Expand All @@ -47,15 +61,19 @@ extern const struct FTASyncParentFetchedProperties {



@property (nonatomic, strong) NSString *objectId;

@property (nonatomic, strong) NSString* objectId;



//- (BOOL)validateObjectId:(id*)value_ error:(NSError**)error_;




@property (nonatomic, strong) NSNumber *syncStatus;

@property (nonatomic, strong) NSNumber* syncStatus;



@property int16_t syncStatusValue;
Expand All @@ -67,7 +85,9 @@ extern const struct FTASyncParentFetchedProperties {



@property (nonatomic, strong) NSDate *updatedAt;

@property (nonatomic, strong) NSDate* updatedAt;



//- (BOOL)validateUpdatedAt:(id*)value_ error:(NSError**)error_;
Expand All @@ -86,32 +106,38 @@ extern const struct FTASyncParentFetchedProperties {
@interface _FTASyncParent (CoreDataGeneratedPrimitiveAccessors)


- (NSNumber *)primitiveCreatedHere;
- (void)setPrimitiveCreatedHere:(NSNumber *)value;
- (NSDate*)primitiveCreatedAt;
- (void)setPrimitiveCreatedAt:(NSDate*)value;




- (NSNumber*)primitiveCreatedHere;
- (void)setPrimitiveCreatedHere:(NSNumber*)value;

- (BOOL)primitiveCreatedHereValue;
- (void)setPrimitiveCreatedHereValue:(BOOL)value_;




- (NSString *)primitiveObjectId;
- (void)setPrimitiveObjectId:(NSString *)value;
- (NSString*)primitiveObjectId;
- (void)setPrimitiveObjectId:(NSString*)value;




- (NSNumber *)primitiveSyncStatus;
- (void)setPrimitiveSyncStatus:(NSNumber *)value;
- (NSNumber*)primitiveSyncStatus;
- (void)setPrimitiveSyncStatus:(NSNumber*)value;

- (int16_t)primitiveSyncStatusValue;
- (void)setPrimitiveSyncStatusValue:(int16_t)value_;




- (NSDate *)primitiveUpdatedAt;
- (void)setPrimitiveUpdatedAt:(NSDate *)value;
- (NSDate*)primitiveUpdatedAt;
- (void)setPrimitiveUpdatedAt:(NSDate*)value;



Expand Down
12 changes: 11 additions & 1 deletion FTASyncDemo/FTASyncDemo/DataClasses/_FTASyncParent.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#import "_FTASyncParent.h"

const struct FTASyncParentAttributes FTASyncParentAttributes = {
.createdAt = @"createdAt",
.createdHere = @"createdHere",
.objectId = @"objectId",
.syncStatus = @"syncStatus",
Expand Down Expand Up @@ -39,16 +40,18 @@ - (FTASyncParentID*)objectID {
return (FTASyncParentID*)[super objectID];
}

+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
+ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];

if ([key isEqualToString:@"createdHereValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"createdHere"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
return keyPaths;
}
if ([key isEqualToString:@"syncStatusValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"syncStatus"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
return keyPaths;
}

return keyPaths;
Expand All @@ -57,6 +60,13 @@ + (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {



@dynamic createdAt;






@dynamic createdHere;


Expand Down
10 changes: 6 additions & 4 deletions FTASyncDemo/FTASyncDemo/DataClasses/_Person.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ extern const struct PersonFetchedProperties {



@property (nonatomic, strong) NSData *photo;

@property (nonatomic, strong) NSData* photo;



//- (BOOL)validatePhoto:(id*)value_ error:(NSError**)error_;
Expand All @@ -40,7 +42,7 @@ extern const struct PersonFetchedProperties {



@property (nonatomic, strong) NSSet* toDoItem;
@property (nonatomic, strong) NSSet *toDoItem;

- (NSMutableSet*)toDoItemSet;

Expand All @@ -62,8 +64,8 @@ extern const struct PersonFetchedProperties {
@interface _Person (CoreDataGeneratedPrimitiveAccessors)


- (NSData *)primitivePhoto;
- (void)setPrimitivePhoto:(NSData *)value;
- (NSData*)primitivePhoto;
- (void)setPrimitivePhoto:(NSData*)value;



Expand Down
2 changes: 1 addition & 1 deletion FTASyncDemo/FTASyncDemo/DataClasses/_Person.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ - (PersonID*)objectID {
return (PersonID*)[super objectID];
}

+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
+ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];


Expand Down
18 changes: 11 additions & 7 deletions FTASyncDemo/FTASyncDemo/DataClasses/_ToDoItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,19 @@ extern const struct ToDoItemFetchedProperties {



@property (nonatomic, strong) NSString *name;

@property (nonatomic, strong) NSString* name;



//- (BOOL)validateName:(id*)value_ error:(NSError**)error_;




@property (nonatomic, strong) NSNumber *priority;

@property (nonatomic, strong) NSNumber* priority;



@property int16_t priorityValue;
Expand All @@ -54,7 +58,7 @@ extern const struct ToDoItemFetchedProperties {



@property (nonatomic, strong) Person* person;
@property (nonatomic, strong) Person *person;

//- (BOOL)validatePerson:(id*)value_ error:(NSError**)error_;

Expand All @@ -71,14 +75,14 @@ extern const struct ToDoItemFetchedProperties {
@interface _ToDoItem (CoreDataGeneratedPrimitiveAccessors)


- (NSString *)primitiveName;
- (void)setPrimitiveName:(NSString *)value;
- (NSString*)primitiveName;
- (void)setPrimitiveName:(NSString*)value;




- (NSNumber *)primitivePriority;
- (void)setPrimitivePriority:(NSNumber *)value;
- (NSNumber*)primitivePriority;
- (void)setPrimitivePriority:(NSNumber*)value;

- (int16_t)primitivePriorityValue;
- (void)setPrimitivePriorityValue:(int16_t)value_;
Expand Down
3 changes: 2 additions & 1 deletion FTASyncDemo/FTASyncDemo/DataClasses/_ToDoItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ - (ToDoItemID*)objectID {
return (ToDoItemID*)[super objectID];
}

+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
+ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];

if ([key isEqualToString:@"priorityValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"priority"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
return keyPaths;
}

return keyPaths;
Expand Down
3 changes: 2 additions & 1 deletion FTASyncDemo/FTASyncDemo/FTAPersonTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ - (void)addPerson {
- (void)syncPerson {
DCLog(@"SYNCING PERSON");
//[[FTASyncHandler sharedInstance] syncEntity:[NSEntityDescription entityForName:@"Reward" inManagedObjectContext:[NSManagedObjectContext MR_context]]];
[[FTASyncHandler sharedInstance] syncWithCompletionBlock:^{
[[FTASyncHandler sharedInstance] syncWithCompletionBlock:^(BOOL success, NSError *error) {
assert(success);
DCLog(@"Completion Block Called");
} progressBlock:^(float progress, NSString *message) {
DLog(@"PROGRESS UPDATE: %f - %@", progress, message);
Expand Down
6 changes: 4 additions & 2 deletions FTASyncDemo/FTASyncDemo/FTASetupViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ - (void)resetData {
- (void)logInViewController:(PFLogInViewController *)logInController didLogInUser:(PFUser *)user {
[self.tabBarController dismissModalViewControllerAnimated:YES];
DCLog(@"Login Success!");
[[FTASyncHandler sharedInstance] syncWithCompletionBlock:^{
[[FTASyncHandler sharedInstance] syncWithCompletionBlock:^(BOOL success, NSError *error) {
assert(success);
DCLog(@"Completion Block Called");
} progressBlock:^(float progress, NSString *message) {
DLog(@"PROGRESS UPDATE: %f - %@", progress, message);
Expand All @@ -150,7 +151,8 @@ - (void)logInViewController:(PFLogInViewController *)logInController didFailToLo
- (void)signUpViewController:(PFSignUpViewController *)signUpController didSignUpUser:(PFUser *)user {
DCLog(@"Signup Success!");
[self.tabBarController dismissModalViewControllerAnimated:YES];
[[FTASyncHandler sharedInstance] syncWithCompletionBlock:^{
[[FTASyncHandler sharedInstance] syncWithCompletionBlock:^(BOOL success, NSError *error) {
assert(success);
DCLog(@"Completion Block Called");
} progressBlock:^(float progress, NSString *message) {
DLog(@"PROGRESS UPDATE: %f - %@", progress, message);
Expand Down
3 changes: 2 additions & 1 deletion FTASyncDemo/FTASyncDemo/FTAToDoTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ - (void)addToDo {
- (void)syncToDo {
DCLog(@"SYNCING TODO");
//[[FTASyncHandler sharedInstance] syncEntity:[NSEntityDescription entityForName:@"Reward" inManagedObjectContext:[NSManagedObjectContext MR_context]]];
[[FTASyncHandler sharedInstance] syncWithCompletionBlock:^{
[[FTASyncHandler sharedInstance] syncWithCompletionBlock:^(BOOL success, NSError *error) {
assert(success);
DCLog(@"Completion Block Called");
} progressBlock:^(float progress, NSString *message) {
DLog(@"PROGRESS UPDATE: %f - %@", progress, message);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading