Skip to content

Commit 4ef9813

Browse files
committed
update objc sample
1 parent c1102cd commit 4ef9813

8 files changed

+8
-9
lines changed

FirebaseUI_dev_auth.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 = 'FirebaseAuthUI'
3-
s.version = '1.0.0'
3+
s.version = '3.0.0'
44
s.summary = 'UI Auth Base library for Firebase.'
55
s.homepage = 'https://github.com/firebase/FirebaseUI-iOS'
66
s.license = { :type => 'Apache 2.0' }

FirebaseUI_dev_db.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 = 'FirebaseDatabaseUI'
3-
s.version = '1.0.0'
3+
s.version = '3.0.0'
44
s.summary = 'Firebase Database UI binding library.'
55
s.homepage = 'https://github.com/firebase/FirebaseUI-iOS'
66
s.license = { :type => 'Apache 2.0' }

FirebaseUI_dev_fb.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 = 'FirebaseFacebookAuthUI'
3-
s.version = '1.0.0'
3+
s.version = '3.0.0'
44
s.summary = 'Facebook UI binding library for Firebase.'
55
s.homepage = 'https://github.com/firebase/FirebaseUI-iOS'
66
s.license = { :type => 'Apache 2.0' }

FirebaseUI_dev_ggl.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 = 'FirebaseGoogleAuthUI'
3-
s.version = '1.0.0'
3+
s.version = '3.0.0'
44
s.summary = 'Google UI binding library for Firebase.'
55
s.homepage = 'https://github.com/firebase/FirebaseUI-iOS'
66
s.license = { :type => 'Apache 2.0' }

FirebaseUI_dev_storage.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 = 'FirebaseStorageUI'
3-
s.version = '1.0.0'
3+
s.version = '3.0.0'
44
s.summary = 'UI Storage library for Firebase.'
55
s.homepage = 'https://github.com/firebase/FirebaseUI-iOS'
66
s.license = { :type => 'Apache 2.0' }

FirebaseUI_dev_tw.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 = 'FirebaseTwitterAuthUI'
3-
s.version = '1.0.0'
3+
s.version = '3.0.0'
44
s.summary = 'Twitter UI binding library for Firebase.'
55
s.homepage = 'https://github.com/firebase/FirebaseUI-iOS'
66
s.license = { :type => 'Apache 2.0' }

samples/objc/FirebaseUI-demo-objc/Samples/Chat/FUIChatMessageDataSource.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ - (void)tableView:(UITableView *)tableView
2626
commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
2727
forRowAtIndexPath:(NSIndexPath *)indexPath {
2828
if (editingStyle == UITableViewCellEditingStyleDelete) {
29-
[[self refForIndex:indexPath.row] removeValue];
29+
[[self snapshotAtIndex:indexPath.row].ref removeValue];
3030
}
3131
}
3232

samples/objc/FirebaseUI-demo-objc/Samples/Chat/FUIChatViewController.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ - (void)viewDidLoad {
3434
[self.tableView registerNib:nib forCellReuseIdentifier:identifier];
3535
self.dataSource =
3636
[[FUIChatMessageDataSource alloc] initWithQuery:self.ref
37-
view:self.tableView
3837
populateCell:^UITableViewCell *(UITableView *tableView,
3938
NSIndexPath *indexPath,
4039
FIRDataSnapshot *snap) {
@@ -68,7 +67,7 @@ - (void)viewDidLoad {
6867
return cell;
6968
}];
7069

71-
self.tableView.dataSource = self.dataSource;
70+
[self.dataSource bindToView:self.tableView];
7271
self.tableView.delegate = self;
7372

7473
if (![FIRAuth auth].currentUser) {

0 commit comments

Comments
 (0)