chore: cleanup PermissionHelper#1925
Conversation
- AndroidStudio complained about methods not found linked in JavaDoc for the class CordovaInterface: requestPermission(), requestPermissions() and hasPermission(). The parameter types were missing and were added. - Removing unused imports
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1925 +/- ##
=======================================
Coverage 61.43% 61.43%
=======================================
Files 24 24
Lines 4922 4922
=======================================
Hits 3024 3024
Misses 1898 1898 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I'm not sure whether this class should be deprecated and would like to hear others' opinions. GitHub search isn't always thorough, but it appears that 846 files are importing this class. Also, I believe the 846 files include forked repos, but there are some unique plugin repositories in the list. https://github.com/search?q=import+org.apache.cordova.PermissionHelper&type=code Deprecation would only warn, not break builds, but I'm concerned about how many of these plugins are unmaintained and whether removing the class entirely in the future could cause issues. |
|
I looked through the search results and |
Platforms affected
Motivation and Context
@DeprecatedJava annotationsDescription
Testing
Checklist
(platform)if this change only applies to one platform (e.g.(android))