-
Notifications
You must be signed in to change notification settings - Fork 291
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
AndroidX support for react-native 0.60 #263
Conversation
Is there anything we can do to get this merged sooner? The repo hasn't been updated for 2 months. Have you found any workarounds building your Android app @yfuks? AppCenter always fails to build for me.
|
I don't have any access to this repo. Just need @wmcmahan to take time and review.
No i don't. But you could try using jetifier |
Time to fork this library and say goodbye thanks |
Ok, so - 1- it would be nice if this project was active but being a maintainer is hard. I just checked the forks and there are no active forks. If it was easy there'd be one right? If someone else wanted to take this up, that would be great of course. Just remember it is easy to criticize but it's hard to do the work. At the same time, it is rewarding so if anyone feels like giving this a go fork and it and start merging some of these old pull requests. |
Also, there's always patch-package (I just patched this locally to tolerate read-only calendar access for instance, and it worked great) |
Just to confirm, as @mikehardy mentioned, jetifier also worked for me 👍🏻
|
Is there a chance that we merge this? I can't use jetifier and it would be easier for everyone, thanks |
Just out of curiosity, as jetifier maintainer, why not use jetifier? (I mean, it literally runs by default in the CLI now - is there something tragically wrong with it in your project? I know there is a pending wish that there was exclusion capability, maybe that would help?) |
@mikehardy fewer pre/post install steps the better imho. |
Agreed. But that's preference ("fewer is better") not necessity ("I can't"). Working software is better than preference of course. Don't get me wrong, I want things natively AndroidX. PRs to do so should merge. I was just fishing for any "I can't because..." reasons. Those are things to do. Preferences are just things to talk about ;-) |
@mikehardy fair enough, the project was on 0.57 react native when he came to me and after upgrade to 0.59 jetifier is broken and can't upgrade all the packages like this library, and a couple more so I needed to check with the maintainer and see are they willing to give support for anrdoidx, don't get me wrong I love using expo just because of this things, but can't with this one but you are right with
I'm sorry for my approach, I should explain why rather then just |
Well, you're in luck :-), this library is one of the ones I use personally and I'm the jetifier maintainer, it really should work, it does for me. If you can show me a reproducible example of jetifier not working, I'll do my best to fix it. The jetifier repo is quiet not because I'm not listening just that there hasn't been anything to do for months. Happy to fix any bugs ASAP |
Thanks for the patience (I have been added as a maintainer for this repo). |
@MoOx hey! Welcome to the party :-) |
@mikehardy Which version of react native are you using? I was trying with RN 0.62.2 and jetifier enabled but I have the same issue.. Do you have any example how did you configure it? I was trying to follow this instructions and also without this manual steps but without luck. Thanks |
@mezhik91 It has worked in every version above RN59. I'm currently 0.62.2 yes. I have "the same issue" - as a maintainer I hate that phrase :-). Everyone thinks they have the same issue, and so frequently everyone has different issues. I strongly prefer all the relevant versions and the text of an error message. For this module, at this point, all you should do is yarn add react-native-calendar-events - but I will note that I use it in combination with https://github.com/react-native-community/react-native-permissions to manage the permissions. |
Hey there, I'm wondering if there's a way to use this today. |
@SudoPlz take a look to https://github.com/mikehardy/jetifier until I find some time to test latest merged changes (nobody really maintain this package, I asked for proper rights but I am having hard time to dedicate some time for this package) |
As I mentioned above: I use this package personally in work projects So I'll make sure this module runs. And it runs :-) If that is still not good enough for your personal situation, behold the magical patch-package: https://github.com/ds300/patch-package I do actually use patch-package on this particular module but not for AndroidX conversion, I use it to remove the need for calendar write permission. Also works great. |
Hi here's my build log with errors this package worked fine for the last 5 releases but won't build today.
FAILURE: Build failed with an exception.
|
@bruxalldev by reading this thread perhaps and applying the solution provided? (hint: it's using jetifier) |
@mikehardy thanks I see now what I need to do: For others reading this if you have RN ^6.0 run |
Yes - if you are running gradle manually for whatever reason you will want to run npx jetify before you do that. Ideally you run it then as package.json::postinstall step so you never forget and it only has to run once. |
Hi,
this is a breaking change
should be published under a new major version