File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import {
1616} from './core' ;
1717
1818const SERVER_PRESETS = {
19+ // cn
1920 pushy : {
2021 main : 'https://update.react-native.cn/api' ,
2122 backups : [ 'https://update.reactnative.cn/api' ] ,
@@ -24,6 +25,7 @@ const SERVER_PRESETS = {
2425 'https://cdn.jsdelivr.net/gh/reactnativecn/react-native-update@master/endpoints.json' ,
2526 ] ,
2627 } ,
28+ // i18n
2729 cresc : {
2830 main : 'https://api.cresc.dev' ,
2931 backups : [ 'https://api.cresc.app' ] ,
@@ -48,6 +50,7 @@ const defaultClientOptions: ClientOptions = {
4850 throwError : false ,
4951} ;
5052
53+ // for China users
5154export class Pushy {
5255 options : ClientOptions = {
5356 ...defaultClientOptions ,
@@ -504,6 +507,7 @@ export class Pushy {
504507 } ;
505508}
506509
510+ // for international users
507511export class Cresc extends Pushy {
508512 clientType : 'cresc' | 'pushy' = 'cresc' ;
509513 options : ClientOptions = {
You can’t perform that action at this time.
0 commit comments