Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add firebase cloud messaging #6

Merged
merged 1 commit into from
Aug 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions firestack.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ export class Firestack {
constructor(options) {
this.options = options || {};

this._remoteConfig = options.remoteConfig || {};
this._remoteConfig = this.options.remoteConfig || {};
delete options.remoteConfig;

this.configured = false;
this.configured = this.options.configured || false;
this._debug = options.debug || false;
this.auth = null;

this.eventHandlers = {};

this.configure(options);
if (!this.configured) {
this.configure(options);
}
}

configure(opts) {
Expand Down Expand Up @@ -278,4 +280,4 @@ export class Firestack {
}
}

export default Firestack
export default Firestack
3 changes: 2 additions & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def common_specs
'Firebase/Auth',
'Firebase/Storage',
'Firebase/Database',
'Firebase/RemoteConfig'
'Firebase/RemoteConfig',
'Firebase/Messaging'
].each do |lib|
pod lib
end
Expand Down
13 changes: 12 additions & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ PODS:
- Firebase/Database (3.4.0):
- Firebase/Analytics
- FirebaseDatabase (= 3.0.2)
- Firebase/Messaging (3.4.0):
- Firebase/Analytics
- FirebaseMessaging (= 1.1.1)
- Firebase/RemoteConfig (3.4.0):
- Firebase/Analytics
- FirebaseRemoteConfig (= 1.2.0)
Expand All @@ -28,6 +31,12 @@ PODS:
- FirebaseDatabase (3.0.2):
- FirebaseAnalytics (~> 3.2)
- FirebaseInstanceID (1.0.8)
- FirebaseMessaging (1.1.1):
- FirebaseAnalytics (~> 3.3)
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleIPhoneUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- FirebaseRemoteConfig (1.2.0):
- FirebaseAnalytics (~> 3.3)
- FirebaseInstanceID (~> 1.0)
Expand Down Expand Up @@ -56,6 +65,7 @@ DEPENDENCIES:
- Firebase/Auth
- Firebase/Core
- Firebase/Database
- Firebase/Messaging
- Firebase/RemoteConfig
- Firebase/Storage

Expand All @@ -65,6 +75,7 @@ SPEC CHECKSUMS:
FirebaseAuth: 26fd291c3b552fc9658420b867520d5ae080421c
FirebaseDatabase: 59bea2e7dfd81b3b8b2f8e396caf1a52c2ced6f7
FirebaseInstanceID: ba1e640935235e5fac39dfa816fe7660e72e1a8a
FirebaseMessaging: 6bc7cd2ecb875c1a9c0f8b94956398aa3145bbb8
FirebaseRemoteConfig: c5378e689c1edb54ff62061b8f6a908263dd80ae
FirebaseStorage: fa2a87dee81f682f553af6839daa37a750e65f6a
GoogleInterchangeUtilities: def8415a862effc67d549d5b5b0b9c7a2f97d4de
Expand All @@ -74,6 +85,6 @@ SPEC CHECKSUMS:
GoogleSymbolUtilities: 33117db1b5f290c6fbf259585e4885b4c84b98d7
GoogleUtilities: 56c5ac05b7aa5dc417a1bb85221a9516e04d7032

PODFILE CHECKSUM: 7c7fd1e44ea19ff5da075fa03510b062b8fd32c2
PODFILE CHECKSUM: 5d5f8420a09165006b0ea75e2e7cf13a52b1ea7c

COCOAPODS: 1.0.1
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading