Skip to content

Update androidx#1626

Merged
CHaNGeTe merged 8 commits intoTheWidlarzGroup:release/5.0.0from
vokhuyetOz:update-androidx
Jul 25, 2019
Merged

Update androidx#1626
CHaNGeTe merged 8 commits intoTheWidlarzGroup:release/5.0.0from
vokhuyetOz:update-androidx

Conversation

@vokhuyetOz
Copy link
Copy Markdown

Just migrating to AndroidX

Comment thread examples/basic/android/app/src/main/java/com/videoplayer/MainApplication.java Outdated
@vokhuyetOz
Copy link
Copy Markdown
Author

Oh, it is my mistake, I used react-native link twice

@vokhuyetOz
Copy link
Copy Markdown
Author

I will make a commit tomorrow

@jensellfors
Copy link
Copy Markdown
Contributor

Thanks for this @vokhuyetOz. Looks like this forces people to use AndroidX? Or is this backwards compatible? (I'm not too familiar with Android :p )

@vokhuyetOz
Copy link
Copy Markdown
Author

Now, people have to use AndroidX whenever upgrade to new build tool version. As I know, google moves android support responsibilities to new location

@vokhuyetOz
Copy link
Copy Markdown
Author

From yesterday, I couldn’t build android app, the error is can’t import v4 AppCompat

@jensellfors
Copy link
Copy Markdown
Contributor

Have you upgraded to RN 0.60RC? From my understanding this will only be required after upgrading to RN 0.60 react-native-community/discussions-and-proposals#129

@jensellfors
Copy link
Copy Markdown
Contributor

And btw, I installed from your branch and then the android build fails. So it's not backwards compatible.

@vokhuyetOz
Copy link
Copy Markdown
Author

No, i still use 0.59

@vokhuyetOz
Copy link
Copy Markdown
Author

I just run it in example, i will check it again tomorrow, thank you for your report :)

@vokhuyetOz
Copy link
Copy Markdown
Author

@jenshandersson which error did you have?
i try and it works.

@vokhuyetOz
Copy link
Copy Markdown
Author

vokhuyetOz commented Jun 20, 2019

make sure that you have updated your gradle.properties and app/build.gradle.
i just have updated read.me file for this change :)

@kuraydev
Copy link
Copy Markdown

Waiting for this PR :) Thank you @vokhuyetOz

@jensellfors
Copy link
Copy Markdown
Contributor

@vokhuyetOz after doing your changes I get compile errors in other 3rd party libs... I assume those haven't been upgraded to use AndroidX then? One of them is react-native-gesture-handler (that is the error I'm getting as well).

> Task :react-native-gesture-handler:compileDebugJavaWithJavac FAILED
/Users/jensa/Developer/jensun/wingsy/RNWingsy/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.java:3: error: package android.support.v4.util does not exist
import android.support.v4.util.Pools;
> Task :react-native-purchases:compileDebugJavaWithJavac FAILED
/Users/jensa/Developer/jensun/wingsy/RNWingsy/node_modules/react-native-purchases/android/src/main/java/com/reactlibrary/RNPurchasesModule.java:4: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;

How do you propose I/we move forward with this? If we would merge this PR then a lot of people would have the same issues, right? (Sorry again for being a bit slow on the Android side)

@vokhuyetOz
Copy link
Copy Markdown
Author

a lot of libraries must migrate to AndroidX to fix it

@vokhuyetOz
Copy link
Copy Markdown
Author

i am also making a pull request for another library

@vokhuyetOz
Copy link
Copy Markdown
Author

i think i should make a PR for react-native-gesture-handler to fix it

@vokhuyetOz
Copy link
Copy Markdown
Author

@WrathChaos could you test this project?

@kuraydev
Copy link
Copy Markdown

@vokhuyetOz I already tried it, other libraries also crushes :( We need to update all of them... AndroidX ruined my day..

@vokhuyetOz
Copy link
Copy Markdown
Author

you should create a new project and check only this library :)

@kuraydev
Copy link
Copy Markdown

@vokhuyetOz I will try it when I have time :) Thank you for this contribution anyway.

@jensellfors
Copy link
Copy Markdown
Contributor

@vokhuyetOz after speaking to @kelset I now understand that AndroidX upgrade is not required. Since rn-video has a + as fallback in the build.gradle it will automatically pull in the latest version, and that is AndroidX. Instead of + we need to specify a version. (Anyone with Android knowledge please jump in here if I'm wrong)

Can you please create a new PR with setting explicit versions instead. Upgrading to 28 is fine. But we can't force a AndroidX upgrade of all users right now. See this PR: react-native-device-info/react-native-device-info@9588763

We will keep this PR as it will be required to move to AndroidX for RN 0.60, but let's wait with that.

@vokhuyetOz
Copy link
Copy Markdown
Author

Thank you, at the moment, it is not required, but from 11/2019 developers must update their apps whenever create or update new version. I will take a look at react native device info and make a change

@vokhuyetOz
Copy link
Copy Markdown
Author

@jenshandersson please check out #1629 . thank you !

@n1ru4l n1ru4l requested review from CHaNGeTe, cobarx and n1ru4l July 4, 2019 08:03
@n1ru4l
Copy link
Copy Markdown
Contributor

n1ru4l commented Jul 4, 2019

react-native 0.60 has now its first stable release. Should merge this asap and publish a new major release.

@CHaNGeTe
Copy link
Copy Markdown
Contributor

CHaNGeTe commented Jul 5, 2019

This PR will make also possible to update exoplayer to 2.10.x? or totally unrelated?

Comment thread examples/basic/android/build.gradle Outdated
Comment thread examples/basic/android/settings.gradle Outdated
@CHaNGeTe
Copy link
Copy Markdown
Contributor

CHaNGeTe commented Jul 9, 2019

Can we align with this PR also?
#1660

@CHaNGeTe CHaNGeTe mentioned this pull request Jul 9, 2019
@vokhuyetOz
Copy link
Copy Markdown
Author

Yes, of course

@CHaNGeTe
Copy link
Copy Markdown
Contributor

@vokhuyetOz does this change the min version of React required?

@vokhuyetOz
Copy link
Copy Markdown
Author

vokhuyetOz commented Jul 13, 2019

@CHaNGeTe no, it doesn't relate to min version of react required, sorry for my late.

@CHaNGeTe CHaNGeTe requested review from ashnfb and jensellfors July 15, 2019 07:22
@CHaNGeTe
Copy link
Copy Markdown
Contributor

hey @ashnfb @cobarx @n1ru4l @jenshandersson I need another approval for this one

Copy link
Copy Markdown
Contributor

@n1ru4l n1ru4l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Legit for breaking change release (major version number bump)

@CHaNGeTe
Copy link
Copy Markdown
Contributor

What makes it breaking change? (if RN version required does not change)

@n1ru4l
Copy link
Copy Markdown
Contributor

n1ru4l commented Jul 20, 2019

Doesn’t this force the user into changing their grade setup/ using jetifier?

@CHaNGeTe
Copy link
Copy Markdown
Contributor

ok! clear now!

CHaNGeTe added 4 commits July 23, 2019 11:29
Make installation parts easier to link
Make more obvious the changes needed via using diff
@CHaNGeTe
Copy link
Copy Markdown
Contributor

@vokhuyetOz I am preparing the merge. Do you know the minimum required gradle version for this to work?

@agungkes
Copy link
Copy Markdown

Aha it's good to know this PR will merge
Thanks you @CHaNGeTe

@karltaylor
Copy link
Copy Markdown
Contributor

Woohoo! 🎉

Comment thread android-exoplayer/build.gradle Outdated
implementation "com.android.support:support-annotations:${safeExtGet('supportLibVersion', '+')}"
implementation "com.android.support:support-compat:${safeExtGet('supportLibVersion', '+')}"
implementation "com.android.support:support-media-compat:${safeExtGet('supportLibVersion', '+')}"
// implementation "com.android.support:support-annotations:${safeExtGet('supportLibVersion', '+')}"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be removed instead of commented out?

Comment thread examples/basic/android/app/build.gradle Outdated
release {
signingConfig signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds
matchingFallbacks = ['release', 'debug']
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't remember exactly why i add it. i will remove it in the next commit :D

@vokhuyetOz
Copy link
Copy Markdown
Author

vokhuyetOz commented Jul 24, 2019

@vokhuyetOz I am preparing the merge. Do you know the minimum required gradle version for this to work?

sorry, i don't find any information about the minimum required gradle version. But i find
Screen Shot 2019-07-24 at 9 08 05 AM

Hope it helps you!

@CHaNGeTe CHaNGeTe merged commit 1fb07b5 into TheWidlarzGroup:release/5.0.0 Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants