-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathschema.json
3691 lines (3691 loc) · 146 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$ref": "#/definitions/ManifestConfig",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"AndroidFeature": {
"type": "string"
},
"AndroidPermission": {
"type": "string"
},
"AndroidPermissionOrFeature": {
"anyOf": [
{
"$ref": "#/definitions/AndroidPermission"
},
{
"$ref": "#/definitions/AndroidFeature"
}
]
},
"AppPlus": {
"properties": {
"allowsInlineMediaPlayback": {
"default": true,
"description": "是否允许 H5 中视频非全屏播放,仅 iOS 生效",
"type": "boolean"
},
"cache": {
"deprecated": true,
"description": "webview 窗口默认使用的缓存模式,uni-app 项目已废弃",
"properties": {
"mode": {
"default": "default",
"enum": [
"default",
"cacheElseNetwork",
"noCache",
"cacheOnly"
],
"type": "string"
}
},
"type": "object"
},
"cers": {
"description": "应用的异常崩溃与错误报告系统配置",
"properties": {
"crash": {
"description": "是否提交应用异常崩溃信息",
"type": "boolean"
}
},
"type": "object"
},
"channel": {
"description": "渠道标识",
"type": "string"
},
"checkPermissionDenied": {
"default": false,
"description": "是否校验已拒绝权限,如果拒绝则不会再申请\n\ntrue 校验已拒绝权限\n\nfalse 不校验已拒绝权限",
"type": "boolean"
},
"compatible": {
"description": "编译器兼容性配置,详见 <https://ask.dcloud.net.cn/article/35627>",
"properties": {
"compilerVersion": {
"description": "编译环境版本号,通常配置为当前 HBuilderX 的版本号或 cli 编译器版本,不可以配置多个",
"type": "string"
},
"ignoreVersion": {
"default": false,
"description": "是否忽略运行环境与编译环境不一致的问题",
"type": "boolean"
},
"runtimeVersion": {
"description": "应用兼容的 uni-app 运行环境版本号,可以配置多个版本号,使用英文字符 `,` 分隔",
"type": "string"
}
},
"type": "object"
},
"compilerVersion": {
"default": 2,
"description": "编译器版本,详见 <https://ask.dcloud.net.cn/article/36599>",
"enum": [
2,
3
],
"type": "number"
},
"confusion": {
"description": "原生混淆加密配置,详见 <https://uniapp.dcloud.net.cn/tutorial/app-sec-confusion.html>",
"properties": {
"description": {
"description": "原生混淆描述",
"type": "string"
},
"resources": {
"additionalProperties": {
"type": "object"
},
"description": "原生混淆文件配置",
"type": "object"
}
},
"type": "object"
},
"distribute": {
"description": "APP 云端打包配置",
"properties": {
"android": {
"description": "Android 平台云端打包配置",
"properties": {
"abiFilters": {
"description": "Android 平台 APP 支持的 CPU 类型,详见 <https://uniapp.dcloud.io/tutorial/app-android-abifilters>",
"items": {
"enum": [
"armeabi-v7a",
"arm64-v8a",
"x86",
"x86_64"
],
"type": "string"
},
"type": "array"
},
"aliasname": {
"description": "Android 签名证书别名",
"type": "string"
},
"buildFeatures": {
"description": "Android 平台云端打包时 build.gradle 的 buildFeatures 配置项,详见 <https://uniapp.dcloud.net.cn/collocation/manifest-app.html#buildfeatures>",
"properties": {
"dataBinding": {
"default": false,
"description": "是否设置 dataBinding",
"type": "boolean"
},
"viewBinding": {
"default": false,
"description": "是否设置 viewBinding",
"type": "boolean"
}
},
"type": "object"
},
"custompermissions": {
"description": "是否自定义 Android 权限配置",
"type": "boolean"
},
"debuggable": {
"default": false,
"description": "是否开启 Android 调试开关",
"type": "boolean"
},
"enableOAID": {
"default": true,
"description": "是否支持获取 OAID(匿名设备标识符),详见 <https://uniapp.dcloud.net.cn/collocation/manifest-app.html#enableoaid>",
"type": "boolean"
},
"excludePermissions": {
"description": "Android 平台 APP 不使用的权限,详见 <https://uniapp.dcloud.net.cn/tutorial/app-permission-android.html> 和 <https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html>",
"items": {
"$ref": "#/definitions/AndroidPermissionOrFeature"
},
"type": "array"
},
"forceDarkAllowed": {
"default": false,
"description": "是否强制允许暗黑模式",
"type": "boolean"
},
"hasTaskAffinity": {
"default": false,
"description": "是否设置 android: taskAffinity,详见 <https://uniapp.dcloud.net.cn/tutorial/app-sec-android.html#strandhogg%E6%BC%8F%E6%B4%9E>",
"type": "boolean"
},
"jsEngine": {
"deprecated": true,
"description": "uni-app 使用的 JS 引擎",
"enum": [
"v8",
"jsc"
],
"type": "string"
},
"keystore": {
"description": "Android 签名证书文件路径",
"type": "string"
},
"locale": {
"description": "应用的默认语言",
"type": "string"
},
"minSdkVersion": {
"description": "Android 平台最低支持版本,详见 <https://uniapp.dcloud.io/tutorial/app-android-minsdkversion>",
"type": "number"
},
"packagename": {
"description": "Android 平台云端打包包名",
"type": "string"
},
"packagingOptions": {
"description": "Android 平台云端打包时 build.gradle 的 packagingOptions 配置项",
"examples": [
[
"doNotStrip '/armeabi-v7a/.so'"
]
],
"items": {
"type": "string"
},
"type": "array"
},
"password": {
"description": "Android 签名证书文件密码",
"type": "string"
},
"permissionExternalStorage": {
"description": "Android 平台 APP 启动时申请读写手机存储权限策略配置,详见 <https://ask.dcloud.net.cn/article/36549>",
"properties": {
"prompt": {
"description": "用户拒绝时弹出提示框上的内容,国际化配置参考 <https://ask.dcloud.net.cn/article/35860#strings>",
"type": "string"
},
"request": {
"description": "Android 平台 APP 启动时申请读写手机存储权限策略的策略\n\n\"none\" 启动时不申请\n\n\"once\" 第一次启动时申请,用户可以拒绝\n\n\"always\" 每次启动都申请,用户必须允许,用户拒绝时弹出提示框引导用户重新允许",
"enum": [
"none",
"once",
"always"
],
"type": "string"
}
},
"type": "object"
},
"permissionPhoneState": {
"description": "Android 平台 APP 启动时申请读取设备信息权限配置,详见 <https://ask.dcloud.net.cn/article/36549>",
"properties": {
"prompt": {
"description": "用户拒绝时弹出提示框上的内容,国际化配置参考 <https://ask.dcloud.net.cn/article/35860#strings>",
"type": "string"
},
"request": {
"description": "Android 平台 APP 启动时申请读取设备信息权限的策略\n\n\"none\" 启动时不申请\n\n\"once\" 第一次启动时申请,用户可以拒绝\n\n\"always\" 每次启动都申请,用户必须允许,用户拒绝时弹出提示框引导用户重新允许",
"enum": [
"none",
"once",
"always"
],
"type": "string"
}
},
"type": "object"
},
"permissions": {
"description": "Android 平台 APP 使用的权限,详见 <https://uniapp.dcloud.net.cn/tutorial/app-permission-android.html> 和 <https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html>",
"items": {
"$ref": "#/definitions/AndroidPermissionOrFeature"
},
"type": "array"
},
"pushRegisterMode": {
"const": "manual",
"description": "延迟初始化 uni-push 的配置,当配置此项值为 manual 后 uni-push 不会初始化,直到首次调用 getPushClientId、getClientInfo、getClientInfoAsync 时才会初始化\n\n调用获取 cid 的方法后,下次 APP 启动不再延迟初始化 uni-push",
"type": "string"
},
"resizeableActivity": {
"default": false,
"description": "是否支持分屏调整窗口大小",
"type": "boolean"
},
"schemes": {
"description": "Android 平台 APP 注册的 scheme,多个 scheme 使用 `,` 分割,详见 <https://uniapp.dcloud.io/tutorial/app-android-schemes>",
"type": "string"
},
"targetSdkVersion": {
"description": "Android 平台目标版本,详见 <https://uniapp.dcloud.net.cn/tutorial/app-android-targetsdkversion>",
"type": "number"
}
},
"type": "object"
},
"icons": {
"additionalProperties": false,
"description": "APP 图标配置,详见 <https://uniapp.dcloud.net.cn/tutorial/app-icons.html>\n\n注意事项:\n\n- 必须使用 PNG 格式,其它格式需要使用图片工具转换,不要直接将 PNG 等其它格式直接改为 PNG\n- Android 系统没有对图标分辨率进行限制,按照建议的分辨率配置即可\n- Android 图片支持透明区域,建议使用圆角图标\n- iOS 图标必须是直角,不要使用圆角图标,否则不过审\n- iOS 打包提交 App Store 时,必须配置分辨率 1024x1024 AppStore 图标,云端打包机默认使用纯白色图标\n- iOS 所有图标不要包含透明信息(alpha 通道),否则提交 AppStore 会报错",
"properties": {
"android": {
"description": "Android 平台图标配置,详见 <https://uniapp.dcloud.net.cn/tutorial/app-icons.html#android%E5%B9%B3%E5%8F%B0>\n\n注意事项:\n\n- 必须使用 PNG 格式,其它格式需要使用图片工具转换,不要直接将 PNG 等其它格式直接改为 PNG\n- 系统没有对图标分辨率进行限制,按照建议的分辨率配置即可\n- 图片支持透明区域,建议使用圆角图标",
"properties": {
"hdpi": {
"$ref": "#/definitions/PNG",
"description": "高分屏设备程序图标,分辨率 72x72"
},
"ldpi": {
"$ref": "#/definitions/PNG",
"deprecated": true,
"description": "普通屏设备程序图标,分辨率 48x48"
},
"mdpi": {
"$ref": "#/definitions/PNG",
"deprecated": true,
"description": "大屏设备程序图标,分辨率 48x48"
},
"xhdpi": {
"$ref": "#/definitions/PNG",
"description": "720P 高分屏设备程序图标,分辨率 96x96"
},
"xxhdpi": {
"$ref": "#/definitions/PNG",
"description": "1080P 高分屏设备程序图标,分辨率 144x144"
},
"xxxhdpi": {
"$ref": "#/definitions/PNG",
"description": "2K 屏设备程序图标,分辨率 192x192"
}
},
"type": "object"
},
"ios": {
"description": "iOS 平台图标配置,详见 <https://uniapp.dcloud.net.cn/tutorial/app-icons.html#ios%E5%B9%B3%E5%8F%B0>\n\n注意事项:\n\n- 必须使用 PNG 格式,其它格式需要使用图片工具转换,不要直接将 PNG 等其它格式直接改为 PNG\n- 图标必须是直角,不要使用圆角图标,否则不过审\n- 打包提交 App Store 时,必须配置分辨率 1024x1024 AppStore 图标,云端打包机默认使用纯白色图标\n- 所有图标不要包含透明信息(alpha 通道),否则提交 AppStore 会报错",
"properties": {
"appstore": {
"$ref": "#/definitions/PNG",
"description": "App Store 图标路径,分辨率 1024x1024"
},
"ipad": {
"description": "iPad 设备程序图标",
"properties": {
"app": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 设备程序主图标,分辨率 76x76"
},
"app@2x": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 设备程序主图标,分辨率 152x152"
},
"notification": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 设备通知栏图标,分辨率 20x20"
},
"notification@2x": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 高分屏设备通知栏图标,分辨率 40x40"
},
"proapp@2x": {
"$ref": "#/definitions/PNG",
"description": "iOS9+ iPad Pro(12.9英寸)设备程序主图标,分辨率 167x167"
},
"settings": {
"$ref": "#/definitions/PNG",
"description": "iOS5+ 设备 Settings 设置图标,分辨率 29x29"
},
"settings@2x": {
"$ref": "#/definitions/PNG",
"description": "iOS5+ 高分屏设备 Settings 设置图标,分辨率 58x58"
},
"spotlight": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 设备 Spotlight 搜索图标,分辨率 40x40"
},
"spotlight@2x": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 高分屏设备 Spotlight 搜索图标,分辨率 80x80"
}
},
"type": "object"
},
"iphone": {
"description": "iPhone 设备程序图标",
"properties": {
"app@2x": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 设备程序主图标,分辨率 120x120"
},
"app@3x": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 设备程序主图标,分辨率 180x180"
},
"notification@2x": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 设备通知栏图标,分辨率 40x40"
},
"notification@3x": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 设备通知栏图标,分辨率 60x60"
},
"settings@2x": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 设备 Settings 设置图标,分辨率 58x58"
},
"settings@3x": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 设备 Settings 设置图标,分辨率 87x87"
},
"spotlight@2x": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 设备 Spotlight 搜索图标,分辨率 80x80"
},
"spotlight@3x": {
"$ref": "#/definitions/PNG",
"description": "iOS7+ 设备 Spotlight 搜索图标,分辨率 120x120"
}
},
"required": [
"app@2x",
"app@3x",
"spotlight@2x",
"spotlight@3x",
"settings@2x",
"settings@3x",
"notification@2x",
"notification@3x"
],
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
},
"ios": {
"description": "iOS 平台云端打包配置",
"properties": {
"CFBundleName": {
"default": "HBuilder",
"description": "应用的CFBundleName名称",
"type": "string"
},
"UIBackgroundModes": {
"description": "应用后台运行模式,详见 <https://uniapp.dcloud.net.cn/tutorial/app-ios-uibackgroundmodes.html>\n\n\"audio\" 后台播放音乐\n\n\"location\" 后台定位",
"enum": [
"audio",
"location"
],
"type": "string"
},
"appid": {
"description": "iOS 平台云端打包使用的 Bundle ID",
"type": "string"
},
"capabilities": {
"additionalProperties": false,
"description": "应用的能力配置(Capabilities),根据 XCode 规范分别配置到 entitlements 和 plist 文件中",
"properties": {
"entitlements": {
"description": "合并到工程 entitlements 文件的数据,json 格式",
"type": "object"
},
"plists": {
"description": "合并到工程 Info.plist 文件的数据,json格式",
"type": "object"
}
},
"type": "object"
},
"deploymentTarget": {
"description": "iOS 支持的最低版本",
"type": "string"
},
"devices": {
"description": "iOS支持的设备类型\n\n\"iphone\" 仅支持 iPhone 设备\n\n\"ipad\" 仅支持 iPad 设备\n\n\"universal\" 同时支持iPhone和iPad设备",
"enum": [
"iphone",
"ipad",
"universal"
],
"type": "string"
},
"frameworks": {
"description": "依赖的系统库,推荐使用 uni 原生插件扩展使用系统依赖库",
"items": {
"type": "string"
},
"type": "array"
},
"idfa": {
"default": true,
"description": "是否使用广告标识",
"type": "boolean"
},
"mobileprovision": {
"description": "iOS 平台云端打包使用的 profile 文件路径",
"type": "string"
},
"p12": {
"description": "iOS 平台云端打包使用的证书文件路径",
"type": "string"
},
"password": {
"description": "iOS 打包使用的证书密码",
"type": "string"
},
"privacyDescription": {
"description": "iOS 隐私信息访问的许可描述",
"properties": {
"NFCReaderUsageDescription": {
"description": "使用 NFC 权限描述",
"type": "string"
},
"NSAppleMusicUsageDescription": {
"description": "使用媒体资料库权限描述",
"type": "string"
},
"NSBluetoothAlwaysUsageDescription": {
"description": "后台使用蓝牙权限描述",
"type": "string"
},
"NSBluetoothPeripheralUsageDescription": {
"description": "使用蓝牙权限描述",
"type": "string"
},
"NSCalendarsUsageDescription": {
"description": "使用日历权限描述",
"type": "string"
},
"NSCameraUsageDescription": {
"description": "摄像头使用权限描述",
"type": "string"
},
"NSContactsUsageDescription": {
"description": "使用通讯录权限描述",
"type": "string"
},
"NSFaceIDUsageDescription": {
"description": "使用 FaceID 权限描述",
"type": "string"
},
"NSHealthClinicalHealthRecordsShareUsageDescription": {
"description": "访问临床记录权限描述",
"type": "string"
},
"NSHealthShareUsageDescription": {
"description": "使用健康分享权限描述",
"type": "string"
},
"NSHealthUpdateUsageDescription": {
"description": "使用健康更新权限描述",
"type": "string"
},
"NSHomeKitUsageDescription": {
"description": "访问 HomeKit 权限描述",
"type": "string"
},
"NSLocalNetworkUsageDescription": {
"description": "访问本地网络权限描述",
"type": "string"
},
"NSLocationAlwaysAndWhenInUseUsageDescription": {
"description": "运行期后后台访问位置权限描述",
"type": "string"
},
"NSLocationAlwaysUsageDescription": {
"description": "后台运行访问位置权限描述",
"type": "string"
},
"NSLocationWhenInUseUsageDescription": {
"description": "运行期访问位置权限描述",
"type": "string"
},
"NSMicrophoneUsageDescription": {
"description": "麦克风使用权限描述",
"type": "string"
},
"NSMotionUsageDescription": {
"description": "使用运动与健康权限描述",
"type": "string"
},
"NSPhotoLibraryAddUsageDescription": {
"description": "相册写入权限描述",
"type": "string"
},
"NSPhotoLibraryUsageDescription": {
"description": "相册读取权限描述",
"type": "string"
},
"NSRemindersUsageDescription": {
"description": "系统提醒事项权限描述",
"type": "string"
},
"NSSiriUsageDescription": {
"description": "访问 Siri 权限描述",
"type": "string"
},
"NSSpeechRecognitionUsageDescription": {
"description": "系统语音识别权限描述",
"type": "string"
},
"NSUserTrackingUsageDescription": {
"description": "跟踪用户活动权限描述",
"type": "string"
}
},
"type": "object"
},
"privacyRegisterMode": {
"description": "\"manual\" 用户同意隐私政策后才获取相关隐私信息\n\n其它 应用启动时自动获取\n\n详见 <https://uniapp.dcloud.net.cn/collocation/manifest#privacyRegisterMode>",
"type": "string"
},
"pushRegisterMode": {
"description": "使用 Push(消息推送)模块时申请系统推送权限模式\n\n\"manual\" 调用 push 相关 API 时申请\n\n其它 应用启动时自动申请",
"type": "string"
},
"urlschemewhitelist": {
"description": "应用访问白名单列表,多个白名单使用 `,` 分割,详见 <https://uniapp.dcloud.io/tutorial/app-ios-schemewhitelist>",
"type": "string"
},
"urltypes": {
"description": "iOS 平台 APP 注册的 scheme,多个 scheme 使用 `,` 分割,详见 <https://uniapp.dcloud.io/tutorial/app-ios-schemes>",
"type": "string"
},
"validArchitectures": {
"description": "编译时支持的 CPU 指令",
"items": {
"enum": [
"arm64",
"arm64e",
"armv7",
"armv7s",
"x86_64"
],
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"orientation": {
"deprecated": "使用 screenOrientation 替代",
"description": "重力感应、横竖屏配置\n\n\"portrait-primary\" 竖屏正方向\n\n\"portrait-secondary\" 竖屏反方向\n\n\"landscape-primary\" 横屏正方向\n\n\"landscape-secondary\" 横屏反方向",
"items": {
"enum": [
"portrait-primary",
"portrait-secondary",
"landscape-primary",
"landscape-secondary"
],
"type": "string"
},
"type": "array"
},
"sdkConfigs": {
"description": "SDK 配置,仅打包生效",
"properties": {
"ad": {
"description": "uni-ad 配置",
"properties": {
"360": {
"description": "360 广告联盟",
"type": "object"
},
"BXM-AD": {
"description": "互动游戏(变现猫)",
"type": "object"
},
"bd": {
"description": "百度百青藤广告联盟",
"type": "object"
},
"csj": {
"description": "今日头条穿山甲广告联盟",
"type": "object"
},
"gdt": {
"description": "腾讯优量汇广告联盟",
"type": "object"
},
"gg": {
"description": "Google AdMob",
"type": "object"
},
"hw": {
"description": "华为广告联盟",
"type": "object"
},
"ks": {
"description": "快手广告联盟",
"type": "object"
},
"ks-content": {
"description": "快手内容联盟",
"type": "object"
},
"pg": {
"description": "Pangle(海外穿山甲)",
"type": "object"
},
"sigmob": {
"description": "Sigmob广告联盟",
"type": "object"
}
},
"type": "object"
},
"geolocation": {
"additionalProperties": false,
"description": "定位,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款\n\n详见 <https://uniapp.dcloud.net.cn/tutorial/app-geolocation.html>",
"properties": {
"amap": {
"description": "高德定位,需要申请高德服务并配置,高德地图和高德定位配置信息应保持一致",
"properties": {
"__platform__": {
"description": "支持平台,至少选一个",
"items": {
"enum": [
"ios",
"android"
],
"type": "string"
},
"type": "array"
},
"appkey_android": {
"description": "Android 平台高德定位地图应用 key",
"type": "string"
},
"appkey_ios": {
"description": "iOS 平台高德定位地图应用 key",
"type": "string"
},
"name": {
"description": "高德用户名",
"type": "string"
}
},
"type": "object"
},
"baidu": {
"description": "百度定位,需要申请百度服务并配置,百度地图和百度定位配置信息应保持一致",
"properties": {
"__platform__": {
"description": "支持平台,至少选一个",
"items": {
"enum": [
"ios",
"android"
],
"type": "string"
},
"type": "array"
},
"appkey_android": {
"description": "Android 平台百度地图应用 key",
"type": "string"
},
"appkey_ios": {
"description": "iOS 平台百度地图应用 key",
"type": "string"
}
},
"type": "object"
},
"system": {
"description": "系统定位,由手机厂商提供定位服务,无需商业授权",
"properties": {
"__platform__": {
"description": "支持平台,至少选一个",
"items": {
"enum": [
"ios",
"android"
],
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
},
"maps": {
"description": "地图,只能选一个,部分国产 Android 手机获取位置必须申请定位服务商的SDK\n\n依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款\n\n详见 <https://uniapp.dcloud.net.cn/tutorial/app-maps.html>",
"properties": {
"amap": {
"description": "高德地图,需要申请高德服务并配置,高德地图和高德定位配置信息应保持一致",
"properties": {
"appkey_android": {
"description": "Android 平台高德地图应用 key",
"type": "string"
},
"appkey_ios": {
"description": "iOS 平台高德地图应用 key",
"type": "string"
},
"name": {
"description": "高德用户名",
"type": "string"
}
},
"type": "object"
},
"baidu": {
"description": "百度地图,需要申请百度服务并配置,百度地图和百度定位配置信息应保持一致\n\n不支持 nvue",
"properties": {
"appkey_android": {
"description": "Android 平台百度地图应用 key",
"type": "string"
},
"appkey_ios": {
"description": "iOS 平台百度地图应用 key",
"type": "string"
}
},
"type": "object"
},
"google": {
"description": "Google 地图",
"properties": {
"APIKey_android": {
"description": "Android 平台 Google 地图 API 密钥",
"type": "string"
},
"APIKey_ios": {
"description": "iOS 平台 Google 地图 API 密钥",
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"oauth": {
"description": "登录鉴权,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款\n\n详见 <https://uniapp.dcloud.net.cn/tutorial/app-oauth.html>",
"properties": {
"apple": {
"description": "苹果登录,iOS 13+ 支持\n\n如果开发者提供任何第三方登录,则必须同时提供苹果登录",
"type": "object"
},
"facebook": {
"description": "Facebook 脸书登录",
"properties": {
"appid": {
"description": "Facebook 开发者中心获取的应用编号",
"type": "string"
},
"client_token": {
"description": "Facebook 开发者中心获取的 client_token",
"type": "string"
}
},
"type": "object"
},
"google": {
"description": "Google登录",
"properties": {
"clientid": {
"description": "Google API Console 项目中获取的 OAuth 客户端 ID",
"type": "string"
}
},
"type": "object"
},
"qq": {
"description": "QQ 登录,QQ 登录和 QQ 分享的配置信息应保持一致",
"properties": {
"UniversalLinks": {
"description": "腾讯 QQ 开放平台申请应用时配置的 Universal Links",
"type": "string"
},
"appid": {
"description": "腾讯 QQ 开放平台申请应用的 AppID 值",
"type": "string"
}
},
"type": "object"
},
"sina": {
"description": "新浪微博登录,新浪微博登录和新浪微博分享的配置信息应保持一致",
"properties": {
"UniversalLinks": {
"description": "新浪微博开放平台申请应用时配置的 Universal Links",
"type": "string"
},
"appkey": {
"description": "新浪微博开放平台应用 appkey",
"type": "string"
},
"redirect_uri": {
"description": "新浪微博开放平台应用授权回调页地址",
"type": "string"
}
},
"type": "object"
},
"univerify": {
"description": "一键登录",
"type": "object"
},
"weixin": {
"description": "微信登录,微信登录、微信分享和微信支付的配置信息应保持一致",
"properties": {
"UniversalLinks": {
"description": "微信开放平台申请应用时配置的 Universal Links",
"type": "string"
},
"appid": {
"description": "微信开放平台申请应用的 AppID 值",
"type": "string"
},
"appsecret": {
"description": "微信开放平台申请应用的 AppSecret 值",
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"payment": {
"description": "支付,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款\n\n详见 <https://uniapp.dcloud.net.cn/tutorial/app-payment.html>",
"properties": {
"alipay": {
"additionalProperties": false,
"description": "支付宝支付",
"properties": {
"__platform__": {
"description": "支持平台,至少选一个",
"items": {
"enum": [
"ios",
"android"
],
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"appleiap": {
"description": "Apple 应用内支付,仅 iOS 支持",
"type": "object"
},
"google": {
"description": "Google 支付",
"type": "object"
},
"paypal": {
"properties": {
"__platform__": {
"description": "支持平台,至少选一个",
"items": {
"enum": [
"ios",
"android"
],
"type": "string"
},
"type": "array"
},
"returnURL_android": {
"description": "Android 平台返回 URL 地址,推荐使用 `包名+://paypalpay`,要求使用小写",
"type": "string"
},
"returnURL_ios": {
"description": "iOS 平台返回 URL 地址,推荐使用 `包名+://paypalpay`,要求使用小写",
"type": "string"
}
},
"type": "object"
},
"stripe": {
"properties": {
"__platform__": {
"description": "支持平台,至少选一个",
"items": {
"enum": [
"ios",
"android"
],
"type": "string"
},
"type": "array"
},
"returnURL_ios": {
"description": "iOS 平台返回 URL 地址,格式为 `协议名称://stripe`",
"type": "string"
}
},
"type": "object"
},
"weixin": {
"description": "微信支付,微信登录、微信分享和微信支付的配置信息应保持一致",
"properties": {
"UniversalLinks": {
"description": "微信开放平台申请应用时配置的 Universal Links",
"type": "string"
},
"__platform__": {
"description": "支持平台,至少选一个",
"items": {
"enum": [