Skip to content

Commit

Permalink
feat!: deprecate CordovaPlugin's method initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu committed Dec 28, 2024
1 parent bb37da0 commit d9f256a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion framework/src/org/apache/cordova/CordovaPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ public final void privateInitialize(String serviceName, CordovaInterface cordova
* Called after plugin construction and fields have been initialized.
* Prefer to use pluginInitialize instead since there is no value in
* having parameters on the initialize() function.
*
* @deprecated Use {@link #pluginInitialize()} instead. This method is no longer recommended
* and will be removed in future versions.
*/
@Deprecated
public void initialize(CordovaInterface cordova, CordovaWebView webView) {
}

Expand Down Expand Up @@ -416,7 +420,7 @@ public boolean hasPermisssion() {
* @param requestCode
* @param permissions
* @param grantResults
*
*
* @deprecated Use {@link #onRequestPermissionsResult} instead.
*/
@Deprecated
Expand Down

0 comments on commit d9f256a

Please sign in to comment.