fix: SDK 51-54 support — dynamic build.gradle, peer dep range, remove deprecated APIs#99
Merged
Merged
Conversation
…deprecated createJSModules
8 tasks
This was referenced Mar 4, 2026
maniac-tech
commented
Mar 4, 2026
maniac-tech
left a comment
Owner
Author
There was a problem hiding this comment.
Tested this with SDK versions 51 - 54. Good to merge,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes compatibility issues preventing the library from working on Expo SDK 51–54.
Bumps version to
9.1.1.Changes
android/build.gradleminSdkVersionfrom34→21— the previous value was blocking any app targeting Android 5.0+, which is the vast majority of production appscompileSdkandtargetSdkVersiondynamic viasafeExtGet()— the library now defers to the host app's values instead of hardcoding themreact-nativedependency from0.73.6→+— picks up the host app's bundled version at build time, preventing version conflictspackage.json9.0.2-alpha→9.1.1peerDependencies:"react-native": "*"→">=0.73"— accurately documents the minimum supported version (SDK 51 = RN 0.74) while staying compatible with all SDK 51–54 usersexpo,otpRNExpoReadSmsPackage.javacreateJSModules()override — this method was removed from the React Native API in RN 0.47 and its presence causes compile warnings/errors on newer RN versionsRNExpoReadSmsModule.javaBuildimportmsgReceiver = nullonstopReadSMSto prevent potential memory leaksTesting
Verified against 4 TestApp branches:
sdk-51— Expo 51 / RN 0.74 — ExpoReadSMS-TestApp PR #22sdk-52— Expo 52 / RN 0.76 — ExpoReadSMS-TestApp PR #23sdk-53— Expo 53 / RN 0.79 — ExpoReadSMS-TestApp PR #24sdk-54— Expo 54 / RN 0.81 — ExpoReadSMS-TestApp PR #25Related