Skip to content

Commit

Permalink
Update android-permissions plugin (#171)
Browse files Browse the repository at this point in the history
* Update android-permissions plugin

* Bump version
  • Loading branch information
jwasnoggin committed Nov 30, 2023
1 parent 99ebea3 commit 4474400
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import com.github.jparkie.promise.Promise;
import com.intentfilter.androidpermissions.PermissionManager;
import com.intentfilter.androidpermissions.models.DeniedPermissions;
import com.marianhello.bgloc.data.BackgroundActivity;
import com.marianhello.bgloc.data.BackgroundLocation;
import com.marianhello.bgloc.data.ConfigurationDAO;
Expand Down Expand Up @@ -226,7 +227,7 @@ public void onPermissionGranted() {
}

@Override
public void onPermissionDenied() {
public void onPermissionDenied(DeniedPermissions deniedPermissions) {
logger.info("User denied requested permissions");
if (mDelegate != null) {
mDelegate.onAuthorizationChanged(BackgroundGeolocationFacade.AUTHORIZATION_DENIED);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.github.jparkie.promise.Promise;
import com.github.jparkie.promise.Promises;
import com.intentfilter.androidpermissions.PermissionManager;
import com.intentfilter.androidpermissions.models.DeniedPermissions;

import java.util.Arrays;
import java.util.concurrent.CountDownLatch;
Expand Down Expand Up @@ -58,7 +59,7 @@ public void onPermissionGranted() {
}

@Override
public void onPermissionDenied() {
public void onPermissionDenied(DeniedPermissions deniedPermissions) {
promise.setError(new PermissionDeniedException());
}
});
Expand Down
4 changes: 1 addition & 3 deletions android/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ dependencies {
implementation 'com.github.tony19:logback-android:1.1.1-9'
implementation 'org.slf4j:slf4j-api:1.7.21'
// android-permissions
implementation('io.github.nishkarsh:android-permissions:0.1.7') {
exclude group: 'com.android.support', module: 'appcompat-v7'
}
implementation 'io.github.nishkarsh:android-permissions:2.1.8'
// promises
implementation 'com.github.jparkie:promise:1.0.3'
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-background-geolocation-plugin",
"version": "2.0.9",
"version": "2.0.10",
"description": "Cordova Background Geolocation Plugin",
"main": "./www/BackgroundGeolocation.js",
"types": "./www/BackgroundGeolocation.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-background-geolocation-plugin"
version="2.0.9">
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-background-geolocation-plugin"
version="2.0.10">
<name>cordova-background-geolocation-plugin</name>
<description>Cordova Background Geolocation Plugin</description>
<license>Apache-2.0</license>
Expand Down

0 comments on commit 4474400

Please sign in to comment.