mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 10:21:37 +08:00
fix android build
This commit is contained in:
@@ -204,17 +204,18 @@ const styles = StyleSheet.create({
|
|||||||
});
|
});
|
||||||
|
|
||||||
// use Pushy for China users
|
// use Pushy for China users
|
||||||
// const updateClient = new Pushy({
|
const updateClient = new Pushy({
|
||||||
|
appKey,
|
||||||
|
debug: true,
|
||||||
|
// updateStrategy: 'silentAndLater',
|
||||||
|
});
|
||||||
|
|
||||||
|
// use Cresc for global users
|
||||||
|
// const updateClient = new Cresc({
|
||||||
// appKey,
|
// appKey,
|
||||||
// debug: true,
|
// debug: true,
|
||||||
// });
|
// });
|
||||||
|
|
||||||
// use Cresc for global users
|
|
||||||
const updateClient = new Cresc({
|
|
||||||
appKey,
|
|
||||||
debug: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
export default function Root() {
|
export default function Root() {
|
||||||
return (
|
return (
|
||||||
<UpdateProvider client={updateClient}>
|
<UpdateProvider client={updateClient}>
|
||||||
|
@@ -99,7 +99,7 @@ public class UpdateModule extends NativePushySpec {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void restartApp(Promise promise) {
|
public void restartApp(Promise promise) {
|
||||||
UpdateModuleImpl.restartApp(updateContext, mContext, promise);
|
UpdateModuleImpl.restartApp(mContext, promise);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update",
|
"name": "react-native-update",
|
||||||
"version": "10.28.0",
|
"version": "10.28.1",
|
||||||
"description": "react-native hot update",
|
"description": "react-native hot update",
|
||||||
"main": "src/index",
|
"main": "src/index",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Reference in New Issue
Block a user