Skip to content

[fix] Fix Android build error on react-native 0.67 #90

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

Merged
merged 1 commit into from
Jan 24, 2022

Conversation

Kudo
Copy link
Contributor

@Kudo Kudo commented Jan 24, 2022

Why

react-native 0.67 upgrade to gradle 7 which drop maven plugin support.

fix #87

How

i think this library does not have to publish as aar format, so i just remove all publish related gradle code. if it's necessary, i can update as the packages' change in the pr: expo/expo#16038

Test Plan

npx react-native init RN067 --version 0.67
cd RN067
yarn add react-native-shared-element
cd android
./gradlew :app:assembleDebug

@Kudo Kudo mentioned this pull request Jan 24, 2022
10 tasks
@IjzerenHein
Copy link
Owner

Yeah this looks good to me. I also wanted to clean up the build.gradle, thanks for doing so ❤️

@IjzerenHein IjzerenHein merged commit c742cfb into IjzerenHein:main Jan 24, 2022
@Kudo Kudo deleted the @kudo/rn67-maven branch January 25, 2022 00:52
@Kudo
Copy link
Contributor Author

Kudo commented Jan 25, 2022

thanks @IjzerenHein! also appreciate your help to publish new release.

Kudo added a commit to expo/expo that referenced this pull request Feb 17, 2022
# Why

try to bump react-native version for sdk 45

# How

- [x] upgrade package.json version to `[email protected]`
- [x] apply changes from [upgrade helper](https://react-native-community.github.io/upgrade-helper/?from=0.66.4&to=0.67.2)
- [x] since 0.67 upgrade to gradle 7 and remove `maven` plugin. ~this pr also migrate packages to use `maven-publish` plugin~ landed in separated pr #16080
- [x] [bare-expo][android] maven plugin from third-party: `react-native-appearance`. ~consider it's archived and deprecated, how to deal with this.~ since we are going to drop sdk 42, i've removed this dependency.
- [x] [bare-expo][android] maven plugin from third-party: `react-native-shared-element`. IjzerenHein/react-native-shared-element#90
- [x] [dev-launcher][android] having a `DevLauncherDevSupportManager.kt` for 0.67 and passing null to the new `SurfaceDelegateFactory`. simply to fix the build error first.
- [x] [dev-menu][android] it will crash from missing libjsc.so in hermes mode. ~workaround to use jsc mode first~. fix pr: #16099

# Test Plan

- bare-expo launch
prakashbask pushed a commit to prakashbask/expo that referenced this pull request Mar 16, 2022
# Why

try to bump react-native version for sdk 45

# How

- [x] upgrade package.json version to `[email protected]`
- [x] apply changes from [upgrade helper](https://react-native-community.github.io/upgrade-helper/?from=0.66.4&to=0.67.2)
- [x] since 0.67 upgrade to gradle 7 and remove `maven` plugin. ~this pr also migrate packages to use `maven-publish` plugin~ landed in separated pr expo#16080
- [x] [bare-expo][android] maven plugin from third-party: `react-native-appearance`. ~consider it's archived and deprecated, how to deal with this.~ since we are going to drop sdk 42, i've removed this dependency.
- [x] [bare-expo][android] maven plugin from third-party: `react-native-shared-element`. IjzerenHein/react-native-shared-element#90
- [x] [dev-launcher][android] having a `DevLauncherDevSupportManager.kt` for 0.67 and passing null to the new `SurfaceDelegateFactory`. simply to fix the build error first.
- [x] [dev-menu][android] it will crash from missing libjsc.so in hermes mode. ~workaround to use jsc mode first~. fix pr: expo#16099

# Test Plan

- bare-expo launch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android: Does not build on RN 0.67 with Gradle 7.
2 participants