miyabi / react-native-passkit-wallet

React Native module to handle PassKit.
MIT License
52 stars 37 forks source link

"android.support.v4.content.FileProvider" should be "androidx.core.content.FileProvider"[AndroidX dependency] #13

Open TylerIlunga opened 4 years ago

TylerIlunga commented 4 years ago

I ran into errors when following the instructions using class "android.support.v4.content.FileProvider"

If anyone else is facing this issue, I was able to solve this problem by referring to https://stackoverflow.com/questions/54914229/unresolved-class-fileprovider

MadaShindeInai commented 4 years ago

and add xmlns:tools="http://schemas.android.com/tools" in manifest

dmlux commented 3 years ago

This seems to be also an issue when releasing the app using Fastlane. The Java sources referencing android.support.v4. When building locally the Jettifier resolves this issue on the fly but for some reason this does not happen during fastlane deployment. I was able to overcome the problem by running the app locally on emulator which involves jettifier to solve the issue. Afterwards I could deploy the App using Fastlane. I think it would be great if this module moves over to AndroidX by default to prevent such issues to appear anymore.

ebrahimhassan121 commented 2 years ago

you just need install jetifier in dev dependancies and add this script in package.json scripts "postinstall": "jetify"