-
Notifications
You must be signed in to change notification settings - Fork 1.6k
rnpm link fails if android folder has non-standard structure #116
Comments
@xxsnakerxx , thanks for the advice !! I'll add a more detailed error message to the link script !! |
Just got bitten by this, too. Actually, the proper solution would be to remove whole prelink script and mention in readme what permissions need to be added. Some apps might have the permissions already, so having the modifications listed twice there wont be good. For me it was enough reason to find alternative component, or at least fork this one for the sole purpose of removing prelink.js completely. |
@Nopik , thanks for the advice. I think the For developers who do not, or don't have the knowledge changing native code, the script makes the installation easier. On the other hand, React Native is changing in very fast pace, sometimes the library just broken after a new release, one purpose of the script is to make the library working properly on different version. I'm agree with you that implicitly changing permission is not a good idea. What if adding an option to For example
Of course, there will be a more detailed instruction about manually linking the library. How do you think ? |
Well, for me it would mean that we always will need to run One of the better methods would be to detect the missing changes and either notify user about those (e.g. |
@Nopik , it sounds pretty make sense 👍 I'll change the way it works, thank you for your great suggestion 😄 |
The change has launched in |
Hi!
My android folder has following structure
/android/app/src/main/java/com/{companyName}/{appName}/MainApplication.java
In this case
rnpm link
fails with error that described hereIt would be better just use
console.log('Warning, ...')
instead ofthrown
The text was updated successfully, but these errors were encountered: