PermissionsDispatcher Versions Save

A declarative API to handle Android runtime permissions.

3.2.0

6 years ago
  • 3.2.0 2018/04/17
    • Update: Address lint for Kotlin project #460
    • Add: Add JvmName annotation to generated file #458
    • Update: Deprecate android.app.Fragment #454
    • Fix: Kotlin file problem with CallOnRequestPermissionsResultDetector #449

3.1.0

6 years ago
  • 3.1.0 2017/12/18
    • Fix: nullable params with Kotlin #397
    • Fix: PD does not generate kt version of SYSTEM_ALERT_WINDOW #406

3.0.1

6 years ago
  • 3.0.1 2017/09/17
    • Fix: NeedsPermission annotated method with parameter doesn't work in Kotlin #376
    • Fix: CallNeedsPermission check incorrectly flags calls to methods of different class #377

3.0.0

6 years ago

Release note

  • 3.0.0 2017/09/16
    • Add fully Kotlin support!
    • Allow for Deterministic, Reproducible Builds with sorted inputs #342
    • Internal: Migrate Lint Rules to UAST 363
    • Rename withCheck to withPermissionCheck #365
    • Fix CallNeedsPermissionDetector to work correctly #368

Migration Guide

Diff

2.4.0

6 years ago
  • 2.4.0 2017/05/01
    • Fix SupportV13MissingException with newer Gradle #279.
      • Now we bundle support v13 library in the library, you don't have to add v13 dependency by yourself.
        • If you don't need v13 remove it rxpressly. ref: README
    • Remove a workaround in the case targetSdkVersion < 23 #305.
      • If you need the workaround please use older version.

2.3.2

7 years ago
  • 2.3.2 2017/03/10
    • Update minSdkVersion to API level 9 #286.
    • Add new compile-time check #284.
    • Fix the problem with receiver of startActivityForResult with WRITE_SETTINGS #280
    • Support nested annotated class #263

2.3.1

7 years ago
  • 2.3.1 2016/12/26
    • Fix a bug related to Xiaomi. #240.
    • Address #244 just in case.

2.3.0

7 years ago
  • 2.3.0 2016/12/14
    • Start Xiaomi support. #235.
    • Fix slight bug for lint check. #230.

2.2.1

7 years ago
  • 2.2.1 2016/12/08
    • Lint update: Migrate to Psi APIs #227.
    • Make sure to support Java 1.6 #222.

2.2.0

7 years ago
  • Support maxSdkVersion #204.
  • Add ProGuard support #175.
  • Some internal cleanup.

maxSdkVersion

Define permission with maxSdkVersion attribute as the following in your manifest.

<uses-permission
     android:name="android.permission.WRITE_EXTERNAL_STORAGE"
     android:maxSdkVersion="18" />

And define corresponding method. In this case generated method(showGetStorageWithCheck) doesn't check the permission if device api level is more than 18.

@NeedsPermission(value = Manifest.permission.WRITE_EXTERNAL_STORAGE, maxSdkVersion = 18)
void showGetStorage() {
  // use permission
}

See more detail in Android developers.