Skip to content

Commit 955c046

Browse files
committed
WIP: modules
1 parent 6e3d84c commit 955c046

39 files changed

+1331
-1247
lines changed

ios/Firestack.xcodeproj/project.pbxproj

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
/* Begin PBXBuildFile section */
1010
59F628FCB5C2B2900F31879C /* libPods-Firestack.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58A186F11042C569425E5D5F /* libPods-Firestack.a */; };
1111
D950369E1D19C77400F7094D /* Firestack.m in Sources */ = {isa = PBXBuildFile; fileRef = D950369D1D19C77400F7094D /* Firestack.m */; };
12+
D96290331D6D145A0099A3EC /* FirestackAuth.m in Sources */ = {isa = PBXBuildFile; fileRef = D96290321D6D145A0099A3EC /* FirestackAuth.m */; };
13+
D962903F1D6D15B00099A3EC /* FirestackErrors.m in Sources */ = {isa = PBXBuildFile; fileRef = D962903E1D6D15B00099A3EC /* FirestackErrors.m */; };
14+
D96290451D6D16100099A3EC /* FirestackAnalytics.m in Sources */ = {isa = PBXBuildFile; fileRef = D96290441D6D16100099A3EC /* FirestackAnalytics.m */; };
15+
D96290491D6D1D8C0099A3EC /* FirestackMessaging.m in Sources */ = {isa = PBXBuildFile; fileRef = D96290481D6D1D8C0099A3EC /* FirestackMessaging.m */; };
16+
D96290851D6D28B80099A3EC /* FirestackDatabase.m in Sources */ = {isa = PBXBuildFile; fileRef = D96290841D6D28B80099A3EC /* FirestackDatabase.m */; };
1217
D97261661D550CF5000F703F /* GoogleInterchangeUtilities.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D97261651D550CF5000F703F /* GoogleInterchangeUtilities.framework */; };
1318
D97261691D550D03000F703F /* GoogleIPhoneUtilities.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D97261681D550D03000F703F /* GoogleIPhoneUtilities.framework */; };
1419
D972616B1D550D07000F703F /* GoogleNetworkingUtilities.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D972616A1D550D07000F703F /* GoogleNetworkingUtilities.framework */; };
@@ -64,6 +69,17 @@
6469
D950369C1D19C77400F7094D /* Firestack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Firestack.h; path = Firestack/Firestack.h; sourceTree = "<group>"; };
6570
D950369D1D19C77400F7094D /* Firestack.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Firestack.m; path = Firestack/Firestack.m; sourceTree = "<group>"; };
6671
D95036B31D19C90300F7094D /* Pods.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Pods.xcodeproj; path = Pods/Pods.xcodeproj; sourceTree = "<group>"; };
72+
D96290311D6D145A0099A3EC /* FirestackAuth.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FirestackAuth.h; sourceTree = "<group>"; };
73+
D96290321D6D145A0099A3EC /* FirestackAuth.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FirestackAuth.m; sourceTree = "<group>"; };
74+
D96290391D6D152A0099A3EC /* FirestackEvents.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FirestackEvents.h; path = Firestack/FirestackEvents.h; sourceTree = "<group>"; };
75+
D962903D1D6D15B00099A3EC /* FirestackErrors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FirestackErrors.h; path = Firestack/FirestackErrors.h; sourceTree = "<group>"; };
76+
D962903E1D6D15B00099A3EC /* FirestackErrors.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = FirestackErrors.m; path = Firestack/FirestackErrors.m; sourceTree = "<group>"; };
77+
D96290431D6D16100099A3EC /* FirestackAnalytics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FirestackAnalytics.h; path = Firestack/FirestackAnalytics.h; sourceTree = "<group>"; };
78+
D96290441D6D16100099A3EC /* FirestackAnalytics.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = FirestackAnalytics.m; path = Firestack/FirestackAnalytics.m; sourceTree = "<group>"; };
79+
D96290471D6D1D8C0099A3EC /* FirestackMessaging.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FirestackMessaging.h; path = Firestack/FirestackMessaging.h; sourceTree = "<group>"; };
80+
D96290481D6D1D8C0099A3EC /* FirestackMessaging.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = FirestackMessaging.m; path = Firestack/FirestackMessaging.m; sourceTree = "<group>"; };
81+
D96290831D6D28B80099A3EC /* FirestackDatabase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FirestackDatabase.h; path = Firestack/FirestackDatabase.h; sourceTree = "<group>"; };
82+
D96290841D6D28B80099A3EC /* FirestackDatabase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = FirestackDatabase.m; path = Firestack/FirestackDatabase.m; sourceTree = "<group>"; };
6783
D97261651D550CF5000F703F /* GoogleInterchangeUtilities.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GoogleInterchangeUtilities.framework; path = Pods/GoogleInterchangeUtilities/Frameworks/GoogleInterchangeUtilities.framework; sourceTree = "<group>"; };
6884
D97261681D550D03000F703F /* GoogleIPhoneUtilities.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GoogleIPhoneUtilities.framework; path = Pods/GoogleIPhoneUtilities/Frameworks/GoogleIPhoneUtilities.framework; sourceTree = "<group>"; };
6985
D972616A1D550D07000F703F /* GoogleNetworkingUtilities.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GoogleNetworkingUtilities.framework; path = Pods/GoogleNetworkingUtilities/Frameworks/GoogleNetworkingUtilities.framework; sourceTree = "<group>"; };
@@ -151,6 +167,7 @@
151167
58B511D21A9E6C8500147676 = {
152168
isa = PBXGroup;
153169
children = (
170+
D96290351D6D145F0099A3EC /* Modules */,
154171
D9CFBE441D531058002623BF /* buildScript.sh */,
155172
D950369C1D19C77400F7094D /* Firestack.h */,
156173
D950369D1D19C77400F7094D /* Firestack.m */,
@@ -177,6 +194,24 @@
177194
name = Products;
178195
sourceTree = "<group>";
179196
};
197+
D96290351D6D145F0099A3EC /* Modules */ = {
198+
isa = PBXGroup;
199+
children = (
200+
D96290311D6D145A0099A3EC /* FirestackAuth.h */,
201+
D96290321D6D145A0099A3EC /* FirestackAuth.m */,
202+
D96290391D6D152A0099A3EC /* FirestackEvents.h */,
203+
D962903D1D6D15B00099A3EC /* FirestackErrors.h */,
204+
D962903E1D6D15B00099A3EC /* FirestackErrors.m */,
205+
D96290431D6D16100099A3EC /* FirestackAnalytics.h */,
206+
D96290441D6D16100099A3EC /* FirestackAnalytics.m */,
207+
D96290471D6D1D8C0099A3EC /* FirestackMessaging.h */,
208+
D96290481D6D1D8C0099A3EC /* FirestackMessaging.m */,
209+
D96290831D6D28B80099A3EC /* FirestackDatabase.h */,
210+
D96290841D6D28B80099A3EC /* FirestackDatabase.m */,
211+
);
212+
name = Modules;
213+
sourceTree = "<group>";
214+
};
180215
/* End PBXGroup section */
181216

182217
/* Begin PBXNativeTarget section */
@@ -285,7 +320,12 @@
285320
isa = PBXSourcesBuildPhase;
286321
buildActionMask = 2147483647;
287322
files = (
323+
D96290451D6D16100099A3EC /* FirestackAnalytics.m in Sources */,
324+
D96290331D6D145A0099A3EC /* FirestackAuth.m in Sources */,
325+
D962903F1D6D15B00099A3EC /* FirestackErrors.m in Sources */,
288326
D950369E1D19C77400F7094D /* Firestack.m in Sources */,
327+
D96290491D6D1D8C0099A3EC /* FirestackMessaging.m in Sources */,
328+
D96290851D6D28B80099A3EC /* FirestackDatabase.m in Sources */,
289329
);
290330
runOnlyForDeploymentPostprocessing = 0;
291331
};

ios/Firestack/Firestack.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88
#import "Firebase.h"
99
#import "RCTBridgeModule.h"
1010
#import "RCTEventDispatcher.h"
11+
#import "RCTEventEmitter.h"
1112

12-
@interface Firestack : NSObject <RCTBridgeModule> {
13+
@interface Firestack : RCTEventEmitter <RCTBridgeModule> {
1314
FIRAuthStateDidChangeListenerHandle authListenerHandle;
1415
}
1516

17+
+ (void) registerForNotification:(NSString *) typeStr andToken:(NSData *)deviceToken;
18+
1619
@property (nonatomic) BOOL debug;
1720
@property (atomic) BOOL configured;
1821
@property (nonatomic, strong) NSDictionary *configuration;

0 commit comments

Comments
 (0)