Skip to content

Commit

Permalink
Prepare version 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vanniktech committed Aug 18, 2022
1 parent 351b2e8 commit 229fdd9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Change Log

Version 0.9.0 *(In development)*
--------------------------------
Version 0.9.0 *(2022-08-18)*
----------------------------

- RxPermission: hasRequested API to check if Permission has been requested once before. [\#105](https://github.com/vanniktech/RxPermission/pull/105) ([vanniktech](https://github.com/vanniktech))
- Add Dependency Guard plugin. [\#96](https://github.com/vanniktech/RxPermission/pull/96) ([vanniktech](https://github.com/vanniktech))
- Add licensee plugin for License verification. [\#95](https://github.com/vanniktech/RxPermission/pull/95) ([vanniktech](https://github.com/vanniktech))
- Lint: Fail upon SyntheticAccessor issues. [\#94](https://github.com/vanniktech/RxPermission/pull/94) ([vanniktech](https://github.com/vanniktech))

Version 0.8.0 *(2022-06-16)*
----------------------------
Expand Down
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,30 @@ This library wraps the Android Runtime Permissions with RxJava 2. It's based on
# Download

```groovy
implementation 'com.vanniktech:rxpermission:0.8.0'
implementation 'com.vanniktech:rxpermission:0.9.0'
implementation 'com.vanniktech:rxpermission:0.9.0-SNAPSHOT'
```

# Usage

The core functionality is provided via an interface:

```java
public interface RxPermission {
/** Requests a single permission. */
Single<Permission> request(String permission);
```kotlin
interface RxPermission {
/** Requests a single permission. */
@CheckReturnValue fun request(permission: String): Single<Permission?>

/** Requests multiple permissions. */
@CheckReturnValue fun requestEach(vararg permissions: String): Observable<Permission?>

/** Requests multiple permissions. */
Observable<Permission> requestEach(String... permissions);
/** Returns true when the given permission is granted. */
@CheckReturnValue fun isGranted(permission: String): Boolean

/** Returns true when the given permission is granted. */
boolean isGranted(String permission);
/** Returns true when the given permission is revoked by a policy. */
@CheckReturnValue fun isRevokedByPolicy(permission: String): Boolean

/** Returns true when the given permission is revoked by a policy. */
boolean isRevokedByPolicy(String permission);
/** Returns tue when the given permission has been request at least once using either [request] or [requestEach]. */
@CheckReturnValue fun hasRequested(permission: String): Boolean
}
```

Expand Down Expand Up @@ -80,7 +83,7 @@ RealRxPermission.getInstance(application)
In addition the library offers you a `MockRxPermission` that can be used for testing.

```gradle
implementation 'com.vanniktech:rxpermission-testing:0.8.0'
implementation 'com.vanniktech:rxpermission-testing:0.9.0'
```

The constructor takes a vararg of Permissions.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=com.vanniktech
VERSION_NAME=0.9.0-SNAPSHOT
VERSION_NAME=0.9.0

POM_DESCRIPTION=Reactive permissions for Android

Expand Down

0 comments on commit 229fdd9

Please sign in to comment.