From b623311efa2a809bff9dbf96897fcef097dc2d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A8=E3=83=AA=E3=82=B9?= Date: Tue, 28 Jan 2025 12:28:32 +0900 Subject: [PATCH] feat!: deprecate CordovaPlugin's method initialize (#1771) --- framework/src/org/apache/cordova/CordovaPlugin.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/src/org/apache/cordova/CordovaPlugin.java b/framework/src/org/apache/cordova/CordovaPlugin.java index 1140c4af..8adeb7a1 100644 --- a/framework/src/org/apache/cordova/CordovaPlugin.java +++ b/framework/src/org/apache/cordova/CordovaPlugin.java @@ -64,7 +64,11 @@ public class CordovaPlugin { * 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) { } @@ -416,7 +420,7 @@ public class CordovaPlugin { * @param requestCode * @param permissions * @param grantResults - * + * * @deprecated Use {@link #onRequestPermissionsResult} instead. */ @Deprecated