-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Conversation
@@ -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() } |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
wasnull
for some reason.
thank to okhttp kotlin migration help to report this compile error 😂
…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
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
EXComponentDataCompatibleWrapper
from expo-modules-coreTest Plan
Checklist
expo build
(eg: updated@expo/xdl
).expo prebuild
& EAS Build (eg: updated a module plugin).