-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat: overload PluginEntry constructor to set onload property #1166
Conversation
b8aee02
to
b86751d
Compare
b86751d
to
f2a0f06
Compare
@@ -52,6 +52,10 @@ public PluginEntry(String service, CordovaPlugin plugin) { | |||
this(service, plugin.getClass().getName(), true, plugin); | |||
} | |||
|
|||
public PluginEntry(String service, CordovaPlugin plugin, boolean onload) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a JavaDoc comment for this overload? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jblejder would you be able to add in the JavaDoc comment?
You can use the below public PluginEntry
overloaded method's comment block as an example for your overloaded method.
After this PR is updated, I can merge it in for next release.
Codecov Report
@@ Coverage Diff @@
## master #1166 +/- ##
=========================================
Coverage ? 71.97%
=========================================
Files ? 21
Lines ? 1695
Branches ? 0
=========================================
Hits ? 1220
Misses ? 475
Partials ? 0 Continue to review full report at Codecov.
|
…#1166) Co-authored-by: Erisu <[email protected]>
Platforms affected
Android
Motivation and Context
resolves #1164
This will allow to specify already instantiated PluginEntries with
onload = false
.Which will stop Cordova from initialising them multiple time and fix issue on AGP 4.1.2 that enables all asserts in debug
Is setting onLoad false valid option here?
Testing
have a look at test exposing issue:
jblejder#1
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)