-
Notifications
You must be signed in to change notification settings - Fork 465
Closed
Labels
🚨This issue needs some love.This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.semver: patchA minor bug fix or small change.A minor bug fix or small change.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
com.google.api.client.util.store.FileDataStoreFactory.setPermissionsToOwnerOnly
uses PosixFilePermission
This class was added only in Android API 26. Running on lower API devices results in:
Fatal Exception: java.lang.NoClassDefFoundError
Failed resolution of: Ljava/nio/file/attribute/PosixFilePermission;
com.google.api.client.util.store.FileDataStoreFactory.setPermissionsToOwnerOnly
Crash happens when trying to store OAuth credentials and doing something trivial like
new FileDataStoreFactory(filesDir)
Maybe since the package releases as "Android-compatible" this should be documented?
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.semver: patchA minor bug fix or small change.A minor bug fix or small change.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.