Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returning NULL on released version #114

Closed
rsk-pr opened this issue Aug 20, 2019 · 5 comments
Closed

Returning NULL on released version #114

rsk-pr opened this issue Aug 20, 2019 · 5 comments

Comments

@rsk-pr
Copy link

rsk-pr commented Aug 20, 2019

I implemented the device_callendar 0.2.2 and everything works great on debug but when I release the app on android, the device asks for the permission to access the calendar just fine but the list of calendars come back null. The amount of calendars retrieved from the release version come back the same as in debug but the .id and the .name come back null for each calendar. On iOS released version everything works great as in debug. Am I missing something?

I trippled checked my android manifest and the permisions are there:

<uses-permission android:name="android.permission.READ_CALENDAR"/>
<uses-permission android:name="android.permission.WRITE_CALENDAR"/>
<uses-permission android:name="android.permission.INTERNET"/>
@rsk-pr
Copy link
Author

rsk-pr commented Aug 20, 2019

I seems the problem is proguard. Once I enable it, the device_calendar returns null.

@rsk-pr
Copy link
Author

rsk-pr commented Aug 20, 2019

-keep class com.builttoroam.devicecalendar.** { *; }

@rsk-pr rsk-pr closed this as completed Aug 20, 2019
@nickrandolph
Copy link
Contributor

@MaikuB did we add info somewhere on the use of proguard - can we elevate it to the Readme so it's easy for developers to find
I'm reopening this item just so we can track the update to the docs

@nickrandolph nickrandolph reopened this Aug 20, 2019
@MaikuB
Copy link
Contributor

MaikuB commented Aug 20, 2019

Yes another issue was raised on this and the change is currently in #112

@nickrandolph
Copy link
Contributor

Closing this item as it's addressed in linked PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants