A declarative API to handle Android runtime permissions.
APACHE-2.0 License
Bot releases are hidden (Show)
Published by hotchemi over 4 years ago
Published by hotchemi almost 6 years ago
com.github.hotchemi
to org.permissionsdispatcher
#560
Published by hotchemi over 6 years ago
Published by hotchemi over 6 years ago
Published by hotchemi about 7 years ago
SupportV13MissingException
with newer Gradle #279.
targetSdkVersion < 23
#305.
Published by hotchemi about 8 years ago
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.