[go: nahoru, domu]

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

Ensure Messaging instance is usable after FIRApp's delete #3579

Merged
merged 4 commits into from
Aug 14, 2019

Conversation

ryanwilson
Copy link
Member

This fixes #3411. Test fails before the code change, and succeeds
afterwards.

This fixes #3411. Test fails before the code change, and succeeds
afterwards.
@@ -52,7 +52,7 @@ device, and it is completely free.
s.dependency 'Protobuf', '~> 3.1'

s.test_spec 'unit' do |unit_tests|
unit_tests.source_files = 'Example/Messaging/Tests/*.[mh]'
unit_tests.source_files = 'Example/Messaging/Tests/*.{m,h,swift}'
Copy link
Member

Choose a reason for hiding this comment

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

Awesome! swift unit tests!

Copy link
Contributor
@maksymmalyhin maksymmalyhin left a comment

Choose a reason for hiding this comment

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

LGTM

import FirebaseMessaging
import XCTest

class FIRMessagingInstanceTest: XCTestCase {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, tests in Swift!

@paulb777
Copy link
Member

Add to release notes and bug to milestone if this fix is going in M54 (6.7.0) cc: @chliangGoogle

@ryanwilson
Copy link
Member Author

@chliangGoogle does this make sense that setup then teardown and setup could be called again, or will this case issues?

Copy link
Contributor
@charlotteliang charlotteliang left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

Copy link
Contributor
@charlotteliang charlotteliang left a comment

Choose a reason for hiding this comment

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

Can you also update the CHANGELOG if this goes into M54 release?

@ryanwilson ryanwilson added this to the 6.7.0 milestone Aug 14, 2019
@ryanwilson
Copy link
Member Author

Can you also update the CHANGELOG if this goes into M54 release?

Done!

@@ -1,6 +1,7 @@
# 2019-08-20 -- v4.1.3
- [changed] Cleaned up the documents, unused macros, and folders. (#3490, #3537, #3556, #3498)
- [changed] Updated the header path to pod repo relative. (#3527)
- [fixed] Fix singleton functionality after a FirebaseApp is deleted and recreated. (#3579)
Copy link
Member

Choose a reason for hiding this comment

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

Use bug number - #3411

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch!

@ryanwilson ryanwilson merged commit 615c20c into master Aug 14, 2019
@ryanwilson ryanwilson deleted the rw-delete-singleton branch August 14, 2019 19:07
@paulb777
Copy link
Member

Building the swift file fails with the --use-libraries test in the cron job. https://travis-ci.org/firebase/firebase-ios-sdk/jobs/572152503

@firebase firebase locked and limited conversation to collaborators Oct 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using FirebaseApp.delete() results in unusable Messaging singleton
5 participants