File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
firestore/ios/firestore-snippets-cpp Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 15
15
runs-on : macOS-latest
16
16
strategy :
17
17
matrix :
18
- destination : ['platform=iOS Simulator,OS=13.5 ,name=iPhone 11']
18
+ destination : ['platform=iOS Simulator,OS=latest ,name=iPhone 11']
19
19
steps :
20
20
- name : Checkout
21
21
uses : actions/checkout@master
Original file line number Diff line number Diff line change 17
17
#import " AppDelegate.h"
18
18
#import < Firebase/Firebase.h>
19
19
#include " firebase/app.h"
20
+ #include " firebase/firestore.h"
21
+
22
+ using firebase::App;
23
+ using firebase::firestore::Firestore;
20
24
21
25
@interface AppDelegate ()
22
26
23
27
@end
24
28
25
29
@implementation AppDelegate
26
30
27
-
28
31
- (BOOL )application : (UIApplication *)application didFinishLaunchingWithOptions : (NSDictionary *)launchOptions {
29
32
[FIRApp configure ];
30
- firebase::App::Create ();
33
+ // [START get_firestore_instance]
34
+ // Make sure the call to `Create()` happens some time before you call Firestore::GetInstance().
35
+ App::Create ();
36
+ Firestore* db = Firestore::GetInstance ();
37
+ // [END get_firestore_instance]
38
+ (void )db; // suppress unused variable warning
31
39
return YES ;
32
40
}
33
41
You can’t perform that action at this time.
0 commit comments