We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0b87c5 commit f656e5bCopy full SHA for f656e5b
firestore/ios/firestore-snippets-cpp/AppDelegate.mm
@@ -17,17 +17,23 @@
17
#import "AppDelegate.h"
18
#import <Firebase/Firebase.h>
19
#include "firebase/app.h"
20
+#include "firebase/firestore.h"
21
22
@interface AppDelegate ()
23
24
@end
25
26
@implementation AppDelegate
27
-
28
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
29
[FIRApp configure];
30
+#pragma clang diagnostic push
31
+#pragma clang diagnostic ignored "-Wunused-variable"
32
+ // [START get_firestore_instance]
33
firebase::App::Create();
34
+ auto db = firebase::firestore::Firestore::GetInstance();
35
+ // [END get_firestore_instance]
36
+#pragma clang diagnostic pop
37
return YES;
38
}
39
0 commit comments