You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2026/06/29 06:06:18 UTC

(cordova-android) branch chore/add-deprecated-annotation created (now 7630ca38)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a change to branch chore/add-deprecated-annotation
in repository https://gitbox.apache.org/repos/asf/cordova-android.git


      at 7630ca38 chore: add missing [at]Deprecated Java annotation

This branch includes the following new commits:

     new 7630ca38 chore: add missing [at]Deprecated Java annotation

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


(cordova-android) 01/01: chore: add missing [at]Deprecated Java annotation

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch chore/add-deprecated-annotation
in repository https://gitbox.apache.org/repos/asf/cordova-android.git

commit 7630ca387ccb1b00684afe84a1a39e41b1003152
Author: Erisu <er...@apache.org>
AuthorDate: Mon Jun 29 15:05:55 2026 +0900

    chore: add missing [at]Deprecated Java annotation
---
 framework/src/org/apache/cordova/PermissionHelper.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/framework/src/org/apache/cordova/PermissionHelper.java b/framework/src/org/apache/cordova/PermissionHelper.java
index 90c6e169..c6196797 100644
--- a/framework/src/org/apache/cordova/PermissionHelper.java
+++ b/framework/src/org/apache/cordova/PermissionHelper.java
@@ -38,6 +38,7 @@ import android.content.pm.PackageManager;
  * @deprecated As of cordova-android 5.0.0, this class is no longer needed and will be removed in a future release.
  * You can call directly into {@link CordovaInterface} methods instead with {@link CordovaPlugin#cordova}.
  */
+@Deprecated
 public class PermissionHelper {
     /**
      * Requests a "dangerous" permission for the application at runtime. This is a helper method
@@ -50,6 +51,7 @@ public class PermissionHelper {
      * @param permission    The permission to be requested
      * @deprecated As of cordova-android 5.0.0, use {@link CordovaInterface#requestPermission()} instead.
      */
+    @Deprecated
     public static void requestPermission(CordovaPlugin plugin, int requestCode, String permission) {
         PermissionHelper.requestPermissions(plugin, requestCode, new String[] {permission});
     }
@@ -65,6 +67,7 @@ public class PermissionHelper {
      * @param permissions   The permissions to be requested
      * @deprecated As of cordova-android 5.0.0, use {@link CordovaInterface#requestPermissions()} instead.
      */
+    @Deprecated
     public static void requestPermissions(CordovaPlugin plugin, int requestCode, String[] permissions) {
         plugin.cordova.requestPermissions(plugin, requestCode, permissions);
     }
@@ -79,6 +82,7 @@ public class PermissionHelper {
      * @return              True if the permission has already been granted and false otherwise
      * @deprecated As of cordova-android 5.0.0, use {@link CordovaInterface#hasPermission()} instead.
      */
+    @Deprecated
     public static boolean hasPermission(CordovaPlugin plugin, String permission) {
         return plugin.cordova.hasPermission(permission);
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org