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

Accepting ApplicationContext as an alternative #72

Merged
merged 2 commits into from
Jun 16, 2020

Conversation

k4w21
Copy link
Contributor

@k4w21 k4w21 commented Jun 8, 2020

Reason

We would like to consume this lib in another library which normally only have ApplicationContext available rather than Application.

Changes

  • Adding new constructor accepting applicationContext
  • Return applicationContext when possible in getApplicationContext

- Adding new constructor accepting applicationContext
- Return applicationContext when possible in getApplicationContext
@TheRealAgentK TheRealAgentK self-assigned this Jun 8, 2020
Copy link
Contributor

@TheRealAgentK TheRealAgentK left a comment

Choose a reason for hiding this comment

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

  • code duplication is not ideal, please change so that there's shared code both your new constructor and the existing constructor could use.
  • new constructor in this setup needs to provide the same signature as the full-signature init(), otherwise missing version will cause issues.

@k4w21
Copy link
Contributor Author

k4w21 commented Jun 8, 2020

Hi, @TheRealAgentK I've updated the implementation, can you please review? thanks

@k4w21 k4w21 requested a review from TheRealAgentK June 8, 2020 23:17
@TheRealAgentK
Copy link
Contributor

Pulled in, will need further modifications though on my end.

@TheRealAgentK TheRealAgentK merged commit cd25527 into MindscapeHQ:master Jun 16, 2020
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