Skip to content
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

[0.29] rnpm and react-native link stopped working #8603

Closed
st0ffern opened this issue Jul 6, 2016 · 9 comments
Closed

[0.29] rnpm and react-native link stopped working #8603

st0ffern opened this issue Jul 6, 2016 · 9 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@st0ffern
Copy link

st0ffern commented Jul 6, 2016

After the update to 0.29: rnpm link and react-native link is not linking correct!

It will try to link everything into MainActivity.java resulting in import and nothing more, while MainApplication.java is empty.

@foghina this is broken after your update.

@GantMan
Copy link
Contributor

GantMan commented Jul 6, 2016

Wow. That's a helluva miscommunication. I'll try to ring whatever alarm bells I can find.

@st0ffern st0ffern changed the title [0.29] rnpm and react-native stopped working [0.29] rnpm and react-native link stopped working Jul 6, 2016
@charpeni
Copy link
Contributor

charpeni commented Jul 6, 2016

cc @grabbou @mkonicek

@foghina
Copy link
Contributor

foghina commented Jul 6, 2016

cc @Kureev

@skellock
Copy link
Contributor

skellock commented Jul 6, 2016

Changing from MainActivity.java to MainApplication.java fixes this issue in this file:

https://github.com/facebook/react-native/blob/master/local-cli/rnpm/core/src/config/android/index.js#L38

This will, however, break < 0.29 which sucks.

I noticed there's a patching system whereby you detect version numbers for breaking changes? I didn't go further than this for now.

For a work around in our own repos, we can change native_modules/react-native/local-cli/rnpm/core/src/config/android/index.js.

@st0ffern
Copy link
Author

st0ffern commented Jul 6, 2016

Changing the path is not a good solution.
We need to add a new path to the config and do a check if MainApplication.java exists, if so then write to that file instead.

@grabbou you fix?

@GantMan
Copy link
Contributor

GantMan commented Jul 6, 2016

@Stoffern and @skellock - integrated that feedback into a quick PR. Hopefully this helps.

@grabbou
Copy link
Contributor

grabbou commented Jul 7, 2016

We don't have to care about versioning here since rnpm is bundled with react-native and always version specific.

@Kureev @GantMan can you submit a quick patch since that's Android-part? CC me, I'll ship it and we will do the .2 version since that's crucial.

ghost pushed a commit that referenced this issue Jul 8, 2016
Summary:
rnpm aka `react-native link` is broken with Android 0.29 - #8603

This gets it back to working again by checking for new MyApplication.java file, and curtailing the path when needed.
Closes #8612

Differential Revision: D3533960

fbshipit-source-id: 95d799eaebb26ba1d876c88107ccd2af72427f55
@st0ffern
Copy link
Author

st0ffern commented Jul 8, 2016

@GantMan guess we can close thisone now?

@satya164 satya164 closed this as completed Jul 8, 2016
grabbou pushed a commit that referenced this issue Jul 13, 2016
Summary:
rnpm aka `react-native link` is broken with Android 0.29 - #8603

This gets it back to working again by checking for new MyApplication.java file, and curtailing the path when needed.
Closes #8612

Differential Revision: D3533960

fbshipit-source-id: 95d799eaebb26ba1d876c88107ccd2af72427f55
grabbou pushed a commit that referenced this issue Jul 21, 2016
Summary:
rnpm aka `react-native link` is broken with Android 0.29 - #8603

This gets it back to working again by checking for new MyApplication.java file, and curtailing the path when needed.
Closes #8612

Differential Revision: D3533960

fbshipit-source-id: 95d799eaebb26ba1d876c88107ccd2af72427f55
bubblesunyum pushed a commit to iodine/react-native that referenced this issue Aug 23, 2016
Summary:
rnpm aka `react-native link` is broken with Android 0.29 - facebook#8603

This gets it back to working again by checking for new MyApplication.java file, and curtailing the path when needed.
Closes facebook#8612

Differential Revision: D3533960

fbshipit-source-id: 95d799eaebb26ba1d876c88107ccd2af72427f55
mpretty-cyro pushed a commit to HomePass/react-native that referenced this issue Aug 25, 2016
Summary:
rnpm aka `react-native link` is broken with Android 0.29 - facebook#8603

This gets it back to working again by checking for new MyApplication.java file, and curtailing the path when needed.
Closes facebook#8612

Differential Revision: D3533960

fbshipit-source-id: 95d799eaebb26ba1d876c88107ccd2af72427f55
@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

8 participants