Skip to content

Commit 05738ec

Browse files
committed
fix android build
1 parent e4ef935 commit 05738ec

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

Example/testHotUpdate/src/index.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -204,17 +204,18 @@ const styles = StyleSheet.create({
204204
});
205205

206206
// use Pushy for China users
207-
// const updateClient = new Pushy({
208-
// appKey,
209-
// debug: true,
210-
// });
211-
212-
// use Cresc for global users
213-
const updateClient = new Cresc({
207+
const updateClient = new Pushy({
214208
appKey,
215209
debug: true,
210+
// updateStrategy: 'silentAndLater',
216211
});
217212

213+
// use Cresc for global users
214+
// const updateClient = new Cresc({
215+
// appKey,
216+
// debug: true,
217+
// });
218+
218219
export default function Root() {
219220
return (
220221
<UpdateProvider client={updateClient}>

android/src/newarch/cn/reactnative/modules/update/UpdateModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void reloadUpdate(ReadableMap options,Promise promise) {
9999

100100
@Override
101101
public void restartApp(Promise promise) {
102-
UpdateModuleImpl.restartApp(updateContext, mContext, promise);
102+
UpdateModuleImpl.restartApp(mContext, promise);
103103
}
104104

105105
@Override

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update",
3-
"version": "10.28.0",
3+
"version": "10.28.1",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"scripts": {

0 commit comments

Comments
 (0)