PermissionsDispatcher

A declarative API to handle Android runtime permissions.

APACHE-2.0 License

Stars
11.2K
Committers
34

Bot releases are hidden (Show)

PermissionsDispatcher - Latest Release

Published by hotchemi over 3 years ago

PermissionsDispatcher - 4.7.0

Published by hotchemi over 4 years ago

PermissionsDispatcher - 4.5.0

Published by hotchemi over 5 years ago

  • 4.5.0 2019/07/01
    • Improve: Incremental annotation processing for Kotlin #626
    • Fix: lint CallNeedsPermission on same named function #602
    • Fix: java-kotlin conversion issue #603 #620
    • Fix: Remove redundant BuildConfig file #607
PermissionsDispatcher -

Published by hotchemi over 5 years ago

  • Add: Add support for internal classes #574
PermissionsDispatcher - 4.3.0

Published by hotchemi almost 6 years ago

  • Add: Conductor support #574
PermissionsDispatcher - 4.2.0

Published by hotchemi almost 6 years ago

  • Add: OnShowRationale API change with keeping backward compatibility #569
  • Update: Change maven groupId from com.github.hotchemi to org.permissionsdispatcher #560
  • Doc: Publish document site! https://permissions-dispatcher.github.io
  • Fix: Any is translated to java.lang.Object #545
  • Add: Support Java incremental compilation #473
PermissionsDispatcher - 4.1.0

Published by hotchemi almost 6 years ago

  • Fix: compile time validation for detecting OnNeverAskAgain with special permissions #549
  • Update: Drop Xiaomi support #548
  • Fix: Fix CallNeedsPermissionDetector to scan only annotated classes #536
PermissionsDispatcher - 4.0.0-alpha1

Published by hotchemi over 6 years ago

  • Remove: Remove native Fragment support#498
  • Add: Jetpack support #494
PermissionsDispatcher - 3.3.1

Published by hotchemi over 6 years ago

  • Internal: Update using Kotlin ver to 1.2.50 #489
  • Add: Add a lint rule for not call WithPermissionCheck inside onResume #486
  • Fix: Fix compile error when request SYSTEM_ALERT_WINDOW on SupportFragment #482
  • Fix: Fix the problem with order matter "Useless @OnShowRationale declaration #479
PermissionsDispatcher - 3.2.0

Published by hotchemi over 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
PermissionsDispatcher - 3.1.0

Published by hotchemi almost 7 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
PermissionsDispatcher - 3.0.1

Published by hotchemi about 7 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
PermissionsDispatcher - 3.0.0

Published by hotchemi about 7 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

PermissionsDispatcher -

Published by hotchemi over 7 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.
PermissionsDispatcher - 2.3.2

Published by hotchemi over 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
PermissionsDispatcher - 2.3.1

Published by hotchemi almost 8 years ago

  • 2.3.1 2016/12/26
    • Fix a bug related to Xiaomi. #240.
    • Address #244 just in case.
PermissionsDispatcher - 2.3.0

Published by hotchemi almost 8 years ago

  • 2.3.0 2016/12/14
    • Start Xiaomi support. #235.
    • Fix slight bug for lint check. #230.
PermissionsDispatcher - 2.2.1

Published by hotchemi almost 8 years ago

  • 2.2.1 2016/12/08
    • Lint update: Migrate to Psi APIs #227.
    • Make sure to support Java 1.6 #222.
PermissionsDispatcher - 2.2.0

Published by hotchemi about 8 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.

Package Rankings
Top 6.65% on Repo1.maven.org
Badges
Extracted from project README
PermissionsDispatcher Download
Related Projects