Skip to content

Commit 357fcdb

Browse files
authored
chore: Merge 4.58.0 into master (#6199)
2 parents 0e5e5c8 + 2e9eec1 commit 357fcdb

File tree

59 files changed

+578
-456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+578
-456
lines changed

android/app/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ android {
106106

107107
signingConfigs {
108108
release {
109+
v1SigningEnabled false
109110
if (project.hasProperty('KEYSTORE')) {
110111
storeFile file(KEYSTORE)
111112
storePassword KEYSTORE_PASSWORD
@@ -195,7 +196,6 @@ dependencies {
195196
}
196197

197198
implementation project(':@react-native-community_viewpager')
198-
// implementation "androidx.core:core-splashscreen:1.0.0"
199199
playImplementation project(':react-native-notifications')
200200
playImplementation "com.google.firebase:firebase-messaging:23.3.1"
201201
playImplementation project(':@react-native-firebase_app')
@@ -204,14 +204,10 @@ dependencies {
204204
implementation project(':watermelondb-jsi')
205205

206206
implementation "com.google.code.gson:gson:2.8.9"
207-
implementation "com.github.bumptech.glide:glide:4.9.0"
208-
annotationProcessor "com.github.bumptech.glide:compiler:4.9.0"
209207
implementation "com.tencent:mmkv-static:1.2.10"
210208
androidTestImplementation('com.wix:detox:+')
211209
implementation 'androidx.appcompat:appcompat:1.1.0'
212210
implementation 'com.facebook.soloader:soloader:0.10.4'
213-
implementation("com.facebook.fresco:animated-gif:2.5.0")
214-
implementation "com.facebook.fresco:imagepipeline-okhttp3:3.1.3"
215211
}
216212

217213
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
424 Bytes
Binary file not shown.

android/app/src/main/java/chat/rocket/reactnative/networking/SSLPinningModule.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@
3636

3737
import com.reactnativecommunity.webview.RNCWebViewManager;
3838

39-
import com.dylanvann.fastimage.FastImageOkHttpUrlLoader;
40-
4139
import expo.modules.av.player.datasource.SharedCookiesDataSourceFactory;
4240
import expo.modules.filesystem.FileSystemModule;
41+
import expo.modules.image.okhttp.ExpoImageOkHttpClientGlideModule;
4342

4443
public class SSLPinningModule extends ReactContextBaseJavaModule implements KeyChainAliasCallback {
4544

@@ -98,24 +97,26 @@ public void alias(String alias) {
9897
@ReactMethod
9998
public void setCertificate(String data, Promise promise) {
10099
this.alias = data;
100+
OkHttpClient client = getOkHttpClient();
101101

102102
// HTTP Fetch react-native layer
103103
NetworkingModule.setCustomClientBuilder(new CustomClient());
104104
// Websocket react-native layer
105105
WebSocketModule.setCustomClientBuilder(new CustomClient());
106106
// Image networking react-native layer
107107
ImagePipelineConfig config = OkHttpImagePipelineConfigFactory
108-
.newBuilder(this.reactContext, getOkHttpClient())
108+
.newBuilder(this.reactContext, client)
109109
.build();
110110
Fresco.initialize(this.reactContext, config);
111111
// RNCWebView onReceivedClientCertRequest
112112
RNCWebViewManager.setCertificateAlias(data);
113-
// FastImage Glide network layer
114-
FastImageOkHttpUrlLoader.setOkHttpClient(getOkHttpClient());
113+
115114
// Expo AV network layer
116-
SharedCookiesDataSourceFactory.setOkHttpClient(getOkHttpClient());
115+
SharedCookiesDataSourceFactory.setOkHttpClient(client);
117116
// Expo File System network layer
118-
FileSystemModule.setOkHttpClient(getOkHttpClient());
117+
FileSystemModule.setOkHttpClient(client);
118+
// Expo Image network layer
119+
ExpoImageOkHttpClientGlideModule.Companion.setOkHttpClient(client);
119120

120121
promise.resolve(null);
121122
}

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44

55
ext {
66
buildToolsVersion = "34.0.0"
7-
minSdkVersion = 23
7+
minSdkVersion = 24
88
compileSdkVersion = 34
99
targetSdkVersion = 34
1010
ndkVersion = "25.1.8937393"

app/containers/Avatar/Avatar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { View } from 'react-native';
3-
import FastImage from 'react-native-fast-image';
3+
import { Image } from 'expo-image';
44
import Touchable from 'react-native-platform-touchable';
55
import { settings as RocketChatSettings } from '@rocket.chat/sdk';
66

@@ -79,13 +79,13 @@ const Avatar = React.memo(
7979
}
8080

8181
image = (
82-
<FastImage
82+
<Image
8383
style={avatarStyle}
8484
source={{
8585
uri,
86-
headers: RocketChatSettings.customHeaders,
87-
priority: FastImage.priority.high
86+
headers: RocketChatSettings.customHeaders
8887
}}
88+
priority='high'
8989
/>
9090
);
9191
}

app/containers/CustomIcon/mappedIcons.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ export const mappedIcons = {
166166
'prune': 59817,
167167
'queue': 59818,
168168
'quote': 59819,
169+
'radio-checked': 59855,
170+
'radio-unchecked': 59867,
169171
'reaction-add': 59820,
170172
'record': 59821,
171173
'refresh': 59822,

app/containers/CustomIcon/selection.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

app/containers/EmojiPicker/CustomEmoji.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { StyleProp } from 'react-native';
3-
import FastImage, { ImageStyle } from 'react-native-fast-image';
3+
import { Image, ImageStyle } from 'expo-image';
44

55
import { useAppSelector } from '../../lib/hooks';
66
import { ICustomEmoji } from '../../definitions';
@@ -14,13 +14,12 @@ const CustomEmoji = React.memo(
1414
({ emoji, style }: ICustomEmojiProps) => {
1515
const baseUrl = useAppSelector(state => state.server.server);
1616
return (
17-
<FastImage
17+
<Image
1818
style={style}
1919
source={{
20-
uri: `${baseUrl}/emoji-custom/${encodeURIComponent(emoji.name)}.${emoji.extension}`,
21-
priority: FastImage.priority.high
20+
uri: `${baseUrl}/emoji-custom/${encodeURIComponent(emoji.name)}.${emoji.extension}`
2221
}}
23-
resizeMode={FastImage.resizeMode.contain}
22+
contentFit='contain'
2423
/>
2524
);
2625
},

app/containers/ImageViewer/ImageViewer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { useState } from 'react';
2-
import { LayoutChangeEvent, StyleSheet, StyleProp, ViewStyle, ImageStyle, View } from 'react-native';
2+
import { LayoutChangeEvent, StyleSheet, StyleProp, ViewStyle, View } from 'react-native';
33
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
44
import Animated, { withTiming, useSharedValue, useAnimatedStyle, withSpring } from 'react-native-reanimated';
5-
import FastImage from 'react-native-fast-image';
5+
import { Image, ImageStyle } from 'expo-image';
66

77
import { useTheme } from '../../theme';
88

@@ -114,10 +114,10 @@ export const ImageViewer = ({ uri = '', width, height, ...props }: ImageViewerPr
114114
<View style={[styles.flex, { width, height, backgroundColor: colors.surfaceNeutral }]}>
115115
<GestureDetector gesture={gesture}>
116116
<Animated.View onLayout={onLayout} style={[styles.flex, style]}>
117-
<FastImage
117+
<Image
118118
// @ts-ignore
119119
style={styles.image}
120-
resizeMode='contain'
120+
contentFit='contain'
121121
source={{ uri }}
122122
{...props}
123123
/>

app/containers/List/ListHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const ListHeader = React.memo(({ title, translateTitle = true, numberOfLines = 1
2929

3030
return (
3131
<View style={styles.container}>
32-
<Text style={[styles.title, { color: themes[theme].fontHint }]} numberOfLines={numberOfLines}>
32+
<Text accessibilityRole='header' style={[styles.title, { color: themes[theme].fontHint }]} numberOfLines={numberOfLines}>
3333
{translateTitle ? I18n.t(title) : title}
3434
</Text>
3535
</View>

0 commit comments

Comments
 (0)