Skip to content

Commit aa952bb

Browse files
chore: Upgrade the example applications (#896)
* chore: Upgrade SampleApp to RN v0.65.1 * chore: Upgrade NativeMessaging to RN v0.65.1 * chore: Upgrade TypeScriptMessaging to RN v0.65.1 * chore: Update lockfiles for expo package & sample * chore: Upgrades ExpoMessaging to expo v42.0.0 * fix: Set the correct Flipper version in examples * docs: Update compability table * docs: Update compability table, and move it to doc * docs: Reorder columns in compability table Co-authored-by: Vishal Narkhede <[email protected]> Co-authored-by: Vishal Narkhede <[email protected]>
1 parent 198c437 commit aa952bb

File tree

33 files changed

+3096
-2679
lines changed

33 files changed

+3096
-2679
lines changed

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,6 @@
3131
- [Keep in mind](#-keep-in-mind)
3232
- [Contributing](#-contributing)
3333

34-
## 🔐 React Native Compatibility
35-
36-
To use this library you need to ensure you match up with the correct version of React Native you are using.
37-
38-
| `stream-chat-react-native` version | React Native Version | `stream-chat` Version |
39-
| ---------------------------------- | --------------------- | --------------------- |
40-
| `3.2.0` | `>= 0.60` | `>= 3.5.1` |
41-
| `3.0.0` | `>= 0.60` | `>= 3.0.0` |
42-
| `2.x.x` | `>= 0.60` | `< 3.0.0` |
43-
| `1.x.x` | `>= 0.59` | `< 3.0.0` |
44-
| `0.x.x` | `*` | `< 3.0.0` |
45-
4634
## 📖 React Native Chat Tutorial
4735

4836
The best place to start is the [React Native Chat Tutorial](https://github.com/GetStream/stream-chat-react-native/wiki/Tutorial-v3.0). It teaches you how to use this SDK and also shows how to make frequently required changes.

docusaurus/docs/reactnative/basics/getting_started.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ Most if not all of the required packages now support auto-linking so setup shoul
8787

8888
For iOS on a Mac install the pods `npx pod-install ios`.
8989

90+
#### Version compabilities
91+
92+
To be able to use the Stream Chat React Native SDK, a few dependencies must meet the following version requirements:
93+
94+
| react-native | stream-chat-react-native (min required) | react-native-reanimated (min required) |
95+
| - | - | - |
96+
| 0.65 | 3.9.0 | 2.2.1 |
97+
| 0.64 | 3.6.2 | 2.2.0 |
98+
| 0.63 | 3.0.0 | 2.2.0 |
99+
90100
### Additional Steps
91101

92102
- `react-native` - [additional installation steps](https://reactnative.dev/docs/image#gif-and-webp-support-on-android)

examples/ExpoMessaging/package.json

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,31 @@
1212
"@react-native-community/netinfo": "6.0.0",
1313
"@react-navigation/native": "5.8.10",
1414
"@react-navigation/stack": "5.12.8",
15-
"expo": "41.0.1",
16-
"expo-blur": "9.0.3",
17-
"expo-document-picker": "9.1.2",
18-
"expo-file-system": "11.0.2",
19-
"expo-haptics": "10.0.0",
20-
"expo-image-manipulator": "9.1.0",
21-
"expo-image-picker": "10.1.4",
22-
"expo-media-library": "12.0.2",
23-
"expo-sharing": "9.1.2",
15+
"expo": "^42.0.0",
16+
"expo-blur": "~9.0.3",
17+
"expo-document-picker": "~9.2.4",
18+
"expo-file-system": "~11.1.3",
19+
"expo-haptics": "~10.1.0",
20+
"expo-image-manipulator": "~9.2.2",
21+
"expo-image-picker": "~10.2.2",
22+
"expo-media-library": "~12.1.2",
23+
"expo-sharing": "~9.2.1",
2424
"react": "16.13.1",
2525
"react-dom": "16.13.1",
26-
"react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz",
27-
"react-native-gesture-handler": "1.10.2",
28-
"react-native-reanimated": "2.1.0",
26+
"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
27+
"react-native-gesture-handler": "~1.10.2",
28+
"react-native-reanimated": "~2.2.0",
2929
"react-native-safe-area-context": "3.2.0",
30-
"react-native-screens": "3.0.0",
31-
"react-native-svg": "12.1.0",
30+
"react-native-screens": "~3.4.0",
31+
"react-native-svg": "12.1.1",
3232
"stream-chat-expo": "link:../../package/expo-package",
3333
"stream-chat-react-native-core": "link:../../package"
3434
},
3535
"devDependencies": {
36-
"@babel/core": "7.12.9",
37-
"babel-preset-expo": "8.3.0"
36+
"@babel/core": "~7.9.0",
37+
"@types/react-native": "~0.63.2",
38+
"babel-preset-expo": "8.3.0",
39+
"typescript": "~4.0.0"
3840
},
3941
"private": true
4042
}

examples/ExpoMessaging/yarn.lock

Lines changed: 588 additions & 793 deletions
Large diffs are not rendered by default.

examples/NativeMessaging/.flowconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ node_modules/react-native/flow/
2323
[options]
2424
emoji=true
2525

26-
esproposal.optional_chaining=enable
27-
esproposal.nullish_coalescing=enable
28-
2926
extract_by_default=true
3027

3128
module.file_ext=.js
@@ -63,4 +60,4 @@ untyped-import
6360
untyped-type-import
6461

6562
[version]
66-
^0.137.0
63+
^0.149.0

examples/NativeMessaging/android/app/build.gradle

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,6 @@ android {
125125

126126
compileSdkVersion rootProject.ext.compileSdkVersion
127127

128-
compileOptions {
129-
sourceCompatibility JavaVersion.VERSION_1_8
130-
targetCompatibility JavaVersion.VERSION_1_8
131-
}
132-
133128
defaultConfig {
134129
applicationId "com.nativemessaging"
135130
minSdkVersion rootProject.ext.minSdkVersion
@@ -217,7 +212,7 @@ dependencies {
217212
// Run this once to be able to run the application with BUCK
218213
// puts all compile dependencies into folder libs for BUCK to use
219214
task copyDownloadableDepsToLibs(type: Copy) {
220-
from configurations.compile
215+
from configurations.implementation
221216
into 'libs'
222217
}
223218

examples/NativeMessaging/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ buildscript {
1313
}
1414
repositories {
1515
google()
16-
jcenter()
16+
mavenCentral()
1717
}
1818
dependencies {
19-
classpath('com.android.tools.build:gradle:4.1.0')
19+
classpath('com.android.tools.build:gradle:4.2.1')
2020
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
2121

2222
// NOTE: Do not place your application dependencies here; they belong
@@ -26,6 +26,7 @@ buildscript {
2626

2727
allprojects {
2828
repositories {
29+
mavenCentral()
2930
mavenLocal()
3031
maven {
3132
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
@@ -37,7 +38,6 @@ allprojects {
3738
}
3839

3940
google()
40-
jcenter()
4141
maven { url 'https://maven.google.com' }
4242
maven { url 'https://www.jitpack.io' }
4343
maven {

examples/NativeMessaging/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ android.useAndroidX=true
2525
android.enableJetifier=true
2626

2727
# Version of flipper SDK to use with React Native
28-
FLIPPER_VERSION=0.75.1
28+
FLIPPER_VERSION=0.93.0

examples/NativeMessaging/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip

examples/NativeMessaging/ios/NativeMessaging.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@
563563
COPY_PHASE_STRIP = NO;
564564
ENABLE_STRICT_OBJC_MSGSEND = YES;
565565
ENABLE_TESTABILITY = YES;
566-
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 i386";
566+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
567567
GCC_C_LANGUAGE_STANDARD = gnu99;
568568
GCC_DYNAMIC_NO_PIC = NO;
569569
GCC_NO_COMMON_BLOCKS = YES;
@@ -628,7 +628,7 @@
628628
COPY_PHASE_STRIP = YES;
629629
ENABLE_NS_ASSERTIONS = NO;
630630
ENABLE_STRICT_OBJC_MSGSEND = YES;
631-
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 i386";
631+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
632632
GCC_C_LANGUAGE_STANDARD = gnu99;
633633
GCC_NO_COMMON_BLOCKS = YES;
634634
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;

0 commit comments

Comments
 (0)