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

observerevent event type issue fixed #2

Merged
merged 4 commits into from
May 24, 2018

Conversation

RavindraChherke
Copy link
Contributor

Looks like the MAKE_SYSTEM_PROP was not setting event values properly. I think keeping it in Module file is a good idea. Also, DATA_EVENT_TYPE_VALUE was set to FIRDataEventTypeChildAdded. Now changed to FIRDataEventTypeValue.

Looks like the MAKE_SYSTEM_PROP was not setting event values properly. I think keeping it in Module file is a good idea. Also, DATA_EVENT_TYPE_VALUE was set to FIRDataEventTypeChildAdded. Now changed to FIRDataEventTypeValue.
MAKE_SYSTEM_PROP(DATA_EVENT_TYPE_ADD, FIRDataEventTypeChildAdded);
MAKE_SYSTEM_PROP(DATA_EVENT_TYPE_REMOVE, FIRDataEventTypeChildRemoved);
MAKE_SYSTEM_PROP(DATA_EVENT_TYPE_MOVE, FIRDataEventTypeChildMoved);
MAKE_SYSTEM_PROP(DATA_EVENT_TYPE_CHANGE, FIRDataEventTypeChildChanged);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! One typo I noticed (that was in my initial implementation as well) is that we should include the CHILD phrase as well, e.g.:

  • DATA_EVENT_TYPE_CHILD_ADDED
  • DATA_EVENT_TYPE_CHILD_REMOVED
  • DATA_EVENT_TYPE_CHILD_MOVED
  • DATA_EVENT_TYPE_CHILD_CHANGED

Can you change that in code and docs?

Copy link
Owner

@hansemannn hansemannn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one review comment. Also, please bump the version in ios/manifest to the next patch version.

Observerevent name changed. Documentation updated.
@RavindraChherke
Copy link
Contributor Author

I have made the changes as suggested. Please check. Thanks!

@hansemannn
Copy link
Owner

It should be a patch bump (1.1.1) instead of a minor bump (1.2.0), referring to the semver specs. Also, the constants should be suffixed with _CHANGED instead of _CHANGE. Please update that last piece and attach the new module version. Thx!

1. Typo fixed.
2. According to https://semver.org the patch version should be 1.1.1 Now it has been corrected.
@RavindraChherke
Copy link
Contributor Author

RavindraChherke commented May 24, 2018

Sorry, I should pay more attention to details. This is my first time contributing to other project.

I have build the module with Titanium SDK 7.1.1 There are changes in titanium.xcconfig. Is that OK?

Please find the attached zip file.

firebase.database-iphone-1.1.1.zip

@hansemannn
Copy link
Owner

Looks perfect! PR approved. Keep up the great contributions to the community.

@hansemannn hansemannn merged commit 3c783fd into hansemannn:master May 24, 2018
@hansemannn
Copy link
Owner

@RavindraChherke RavindraChherke deleted the callback_issue branch June 22, 2018 15:02
@RavindraChherke RavindraChherke restored the callback_issue branch June 22, 2018 15:03
@RavindraChherke RavindraChherke deleted the callback_issue branch June 22, 2018 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants