Skip to content

Commit

Permalink
feat!: deprecate CordovaPlugin's method initialize (apache#1771)
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu authored Jan 28, 2025
1 parent 1f349f2 commit b623311
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 b623311

Please sign in to comment.