Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[packages] Remove backward compatible workarounds and drop react-native 0.64 support #16446

Merged
merged 4 commits into from
Feb 28, 2022

Conversation

Kudo
Copy link
Contributor

@Kudo Kudo commented Feb 25, 2022

Why

basically because we cannot apply the okhttp/okio workaround to expo go versioned code. maintaining these workarounds increase maintenance cost. since we are doing expo modules for next sdk based on react-native 0.67 or even 0.68, there's no reason we should keep backward compatible with 0.64.

How

  • okhttp/okio upgrade to the version as react-native 0.67.2 and migrate deprecated kotlin code.
  • remove EXComponentDataCompatibleWrapper from expo-modules-core

Test Plan

  • ci pass
  • bare-expo launch

Checklist

  • Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md).
  • This diff will work correctly for expo build (eg: updated @expo/xdl).
  • This diff will work correctly for expo prebuild & EAS Build (eg: updated a module plugin).

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Feb 25, 2022
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Feb 25, 2022
@Kudo Kudo marked this pull request as ready for review February 25, 2022 18:28
@@ -778,7 +775,7 @@ open class FileSystemModule(
}

val body = createRequestBody(options, decorator, fileUri.toFile())
return requestBuilder.method(method, body).build()
return method?.let { requestBuilder.method(method, body).build() }
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch - previously this could throw NPE when method was null for some reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch - previously this could throw NPE when method was null for some reason.

thank to okhttp kotlin migration help to report this compile error 😂

@Kudo Kudo merged commit ffe6a63 into main Feb 28, 2022
@Kudo Kudo deleted the @kudo/drop-rn64-support branch February 28, 2022 15:29
Kudo added a commit that referenced this pull request Feb 28, 2022
…pgrade (#16401)

# Why

for sdk45 and based on #16400

# How

- [tools] Fix versioning tools for react-native 0.67.2 upgrade
- [expo-modules-core][ios] Fix missing `EX` prefix to some objective-c files for versioning support
- [autolinking] Apply our cocoapods fix for `React-Core` swift support to versioned code
- [expo-updates] fix an incompatible `ReactInstanceManager` in UpdatesPackage where UpdateController is unversioned but UpdatePackage is versioned.
- [expo-file-system] okhttp/okio code for new versioned code build successfully. this is done in #16446

# Test Plan

- `et add-sdk -p android -s 45.0.0` and build/launch sdk 45 expo go with sdk 45 ncl
- `et add-sdk -p ios -s 45.0.0` and build/launch sdk 45 expo go with sdk 45 ncl
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants