react-native-health-connect
react-native-health-connect copied to clipboard
fix(expo-config-plugin): rework expo-config-plugin to fix `lateinit` error
Updated the expo-config-plugin to handle:
- Android 13 and lower with an activity triggered by
androidx.health.ACTION_SHOW_PERMISSIONS_RATIONALEintent - Android 14 with an activity-alias triggered by
android.intent.action.VIEW_PERMISSION_USAGEintent - The activity code is to be provided by users
- Updated docs
Tested on expo 49/java MainActivity & expo 50/kotlin MainActivity
Fixes #71
Hey!
Thanks for the contribution and helping with the expo plugin. I will review it as soon as I find some time.
Hello @brentvatne Thanks for your review. I clearly think migrating this library to expo modules is out of scope of this PR
Hello @brentvatne Thanks for your review. I clearly think migrating this library to expo modules is out of scope of this PR
my suggestion was not to migrate it to expo modules, but to use the expo modules api when it is already available in the library consumer's app to automatically set up parts of this library, rather than use regexes to modify code
Closing this in favor of the adapter library:
https://github.com/matinzd/expo-health-connect
Thanks for the contribution!