-
Notifications
You must be signed in to change notification settings - Fork 53
Add support for Windows #10
Comments
FWIW, I also tried it on WSL without success:
|
thank you for trying! We'll see what we can do. I wonder if it is a shell difference, like bash isn't behaving the same? It might be trivial to fix as it seems to just be a for loop failure? |
I will mention that I do not have a Windows development rig, so anyone that can help with this I will grant one virtual 🍺 and 20 internet points ;-) |
Alright, so turns out I just didn't know how to use the WSL correctly. Just needed, update, upgrade and re-install npm. But now I am getting a different message.
Am I missing a step here? |
🤔 hmm @laurent22 reported windows success so there must be something going on. It's possible though apparently, just maybe touchy. Hopefully we can document it well shortly (and fix if needed, of course) |
Oh I added |
That's an important clue! I mention you can add it globally if you want but if that doesn't work I need to update the README, thank you for keeping after it to find out. Glad it's working! |
Still can't get it work on windows 10. |
@pavelustenko, from WSL, did you try to specify the jetify path directly? eg. |
Yes, just tried. But same result. |
I've just tried like this:
And that worked for me, it started processing the java files. What happens if you try this? |
I've just realized that jetify script needs bash to run... |
The system cannot find the path specified |
I can add to the README that we need bash, and that you should try the path directly for windows ( |
Sorry for nubbie question, I couldn't get that thing work on Win10. My task was to build a RN project that suddenly refused to build causelessly. I solved it using "refactor->migrate to androidx" in Android Studio. Does this program does the same? |
@pavelustenko https://github.com/mikehardy/jetifier/blob/master/README.md#L19 this converts source in node_modules in addition to normal android studio jetifier |
I'm not really sure where to put this, but for those with Windows but still can't use this tool, I ported it over to Python. It's here and written in Python 2.7. You'll need the glob2 package to run it as well. To run, copy both files to your project directory and type in |
If you want to make a PR that installs this as a different method and installs it as jetifier.py or similar, that'd be fine - just make sure it passes rn-androidx-demo as a test suite first :-) - but you might like jetifire (note slightly different spelling, linked on the performance issue here) which is pure javascript. |
This is a great tool, it would be good if windows were also supported, right now I am getting the following error:
Thanks!
The text was updated successfully, but these errors were encountered: