Skip to content

Commit 76ba4b6

Browse files
committed
chore: remove unused react-native-config-reader
The only consumer was `isOfficial = RNConfigReader.IS_OFFICIAL`, deleted in #7322 (remove Experimental code paths) along with the `official` product flavor that produced the `IS_OFFICIAL` BuildConfig field (#7325). Since then the package has had zero JS imports — it was autolinked dead weight. Removes: - the dependency and its @types - the ambient `declare module` in externalModules.d.ts - the orphaned iOS podspec patch (patch-package was erroring on it) - the `rn_config_reader_custom_package` resValue in build.gradle, which only the now-removed native module read Verified: pnpm install + patch-package clean, tsc passes.
1 parent 42c68c9 commit 76ba4b6

5 files changed

Lines changed: 0 additions & 38 deletions

File tree

android/app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ android {
9393
versionName "4.74.0"
9494
vectorDrawables.useSupportLibrary = true
9595
manifestPlaceholders = [BugsnagAPIKey: BugsnagAPIKey as String]
96-
resValue "string", "rn_config_reader_custom_package", "chat.rocket.reactnative"
9796
}
9897

9998
signingConfigs {

app/externalModules.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
declare module 'remove-markdown';
22
declare module '@rocket.chat/sdk';
3-
declare module 'react-native-config-reader';
43
declare module 'react-native-mime-types';
54
declare module 'react-native-restart';
65
declare module 'react-native-math-view';

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
"react-native-background-timer": "2.4.1",
9393
"react-native-bootsplash": "^6.3.8",
9494
"react-native-callkeep": "4.3.16",
95-
"react-native-config-reader": "4.1.1",
9695
"react-native-console-time-polyfill": "1.2.3",
9796
"react-native-device-info": "11.1.0",
9897
"react-native-easy-grid": "0.2.2",
@@ -189,7 +188,6 @@
189188
"@types/lodash": "^4.14.188",
190189
"@types/react": "~19.1.0",
191190
"@types/react-native-background-timer": "^2.0.2",
192-
"@types/react-native-config-reader": "^4.1.3",
193191
"@types/semver": "7.3.13",
194192
"@types/ua-parser-js": "^0.7.36",
195193
"@types/url-parse": "^1.4.8",

patches/react-native-config-reader+4.1.1.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

pnpm-lock.yaml

Lines changed: 0 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)