Skip to content

Commit

Permalink
Updated to Realm 0.82.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcheok committed Aug 6, 2014
1 parent 830f262 commit a537412
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions Demo/RealmJSONDemo/MCTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ @implementation MCTableViewController
- (IBAction)reloadData {
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
[manager GET:@"https://www.nsscreencast.com/api/episodes.json" parameters:nil success: ^(AFHTTPRequestOperation *operation, id responseObject) {
// NSLog(@"JSON: %@", responseObject);

NSArray *array = responseObject;
[MCEpisode createInRealm:[RLMRealm defaultRealm] withJSONArray:array];
dispatch_async(dispatch_get_main_queue(), ^{
[MCEpisode createInRealm:[RLMRealm defaultRealm] withJSONArray:array];
});
} failure: ^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"Error: %@", error);
}];
Expand All @@ -41,8 +41,6 @@ - (IBAction)reloadData {
- (void)refreshData {
self.results = [[MCEpisode allObjectsInRealm:[RLMRealm defaultRealm]] arraySortedByProperty:@"publishedDate" ascending:NO];
[self.tableView reloadData];

NSLog(@"episode %@", [[self.results firstObject] JSONDictionary]);
}

#pragma mark - UIViewController
Expand Down
6 changes: 3 additions & 3 deletions Realm+JSON.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Realm+JSON'
s.version = '0.1.1'
s.version = '0.1.2'
s.ios.deployment_target = '6.0'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'A concise Mantle-like way of working with Realm and JSON.'
Expand All @@ -15,8 +15,8 @@ Pod::Spec.new do |s|
s.source_files = 'Realm+JSON/*.{h,m}'
s.public_header_files = 'Realm+JSON/*.h'

s.dependency 'Realm', '0.81'
s.dependency 'Realm', '0.82.0'
s.xcconfig = {
'FRAMEWORK_SEARCH_PATHS' => '$(PODS_ROOT)/Realm/realm-cocoapods-0.81.0/ios'
'FRAMEWORK_SEARCH_PATHS' => '$(PODS_ROOT)/Realm/realm-cocoapods-0.82.0/ios'
}
end

0 comments on commit a537412

Please sign in to comment.