Commit 66c2504 1 parent bbda721 commit 66c2504 Copy full SHA for 66c2504
File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import {
16
16
} from './core' ;
17
17
18
18
const SERVER_PRESETS = {
19
+ // cn
19
20
pushy : {
20
21
main : 'https://update.react-native.cn/api' ,
21
22
backups : [ 'https://update.reactnative.cn/api' ] ,
@@ -24,6 +25,7 @@ const SERVER_PRESETS = {
24
25
'https://cdn.jsdelivr.net/gh/reactnativecn/react-native-update@master/endpoints.json' ,
25
26
] ,
26
27
} ,
28
+ // i18n
27
29
cresc : {
28
30
main : 'https://api.cresc.dev' ,
29
31
backups : [ 'https://api.cresc.app' ] ,
@@ -48,6 +50,7 @@ const defaultClientOptions: ClientOptions = {
48
50
throwError : false ,
49
51
} ;
50
52
53
+ // for China users
51
54
export class Pushy {
52
55
options : ClientOptions = {
53
56
...defaultClientOptions ,
@@ -504,6 +507,7 @@ export class Pushy {
504
507
} ;
505
508
}
506
509
510
+ // for international users
507
511
export class Cresc extends Pushy {
508
512
clientType : 'cresc' | 'pushy' = 'cresc' ;
509
513
options : ClientOptions = {
You can’t perform that action at this time.
0 commit comments