@oiyo/config 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +7 -0
- package/dist/index.cjs +7 -1
- package/dist/index.d.cts +3986 -28
- package/dist/index.d.mts +3986 -28
- package/dist/index.mjs +7 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,3974 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/config v0.
|
|
2
|
+
* @oiyo/config v0.7.0
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
|
+
//#region src/manifest/interfaces/common.d.ts
|
|
8
|
+
type AndroidPermissionSuffix = 'ACCEPT_HANDOVER' | 'ACCESS_BACKGROUND_LOCATION' | 'ACCESS_BLOBS_ACROSS_USERS' | 'ACCESS_CHECKIN_PROPERTIES' | 'ACCESS_COARSE_LOCATION' | 'ACCESS_FINE_LOCATION' | 'ACCESS_LOCATION_EXTRA_COMMANDS' | 'ACCESS_MEDIA_LOCATION' | 'ACCESS_NETWORK_STATE' | 'ACCESS_NOTIFICATION_POLICY' | 'ACCESS_WIFI_STATE' | 'ACCOUNT_MANAGER' | 'ACTIVITY_RECOGNITION' | 'ADD_VOICEMAIL' | 'ANSWER_PHONE_CALLS' | 'BATTERY_STATS' | 'BIND_ACCESSIBILITY_SERVICE' | 'BIND_APPWIDGET' | 'BIND_AUTOFILL_SERVICE' | 'BIND_CALL_REDIRECTION_SERVICE' | 'BIND_CARRIER_MESSAGING_CLIENT_SERVICE' | 'BIND_CARRIER_MESSAGING_SERVICE' | 'BIND_CARRIER_SERVICES' | 'BIND_CHOOSER_TARGET_SERVICE' | 'BIND_COMPANION_DEVICE_SERVICE' | 'BIND_CONDITION_PROVIDER_SERVICE' | 'BIND_CONTROLS' | 'BIND_CREDENTIAL_PROVIDER_SERVICE' | 'BIND_DEVICE_ADMIN' | 'BIND_DREAM_SERVICE' | 'BIND_INCALL_SERVICE' | 'BIND_INPUT_METHOD' | 'BIND_MIDI_DEVICE_SERVICE' | 'BIND_NFC_SERVICE' | 'BIND_NOTIFICATION_LISTENER_SERVICE' | 'BIND_PRINT_SERVICE' | 'BIND_QUICK_ACCESS_WALLET_SERVICE' | 'BIND_QUICK_SETTINGS_TILE' | 'BIND_REMOTEVIEWS' | 'BIND_SCREENING_SERVICE' | 'BIND_TELECOM_CONNECTION_SERVICE' | 'BIND_TEXT_SERVICE' | 'BIND_TV_INPUT' | 'BIND_TV_INTERACTIVE_APP' | 'BIND_VISUAL_VOICEMAIL_SERVICE' | 'BIND_VOICE_INTERACTION' | 'BIND_VPN_SERVICE' | 'BIND_VR_LISTENER_SERVICE' | 'BIND_WALLPAPER' | 'BLUETOOTH' | 'BLUETOOTH_ADMIN' | 'BLUETOOTH_ADVERTISE' | 'BLUETOOTH_CONNECT' | 'BLUETOOTH_PRIVILEGED' | 'BLUETOOTH_SCAN' | 'BODY_SENSORS' | 'BODY_SENSORS_BACKGROUND' | 'BROADCAST_PACKAGE_REMOVED' | 'BROADCAST_SMS' | 'BROADCAST_STICKY' | 'BROADCAST_WAP_PUSH' | 'CALL_COMPANION_APP' | 'CALL_PHONE' | 'CALL_PRIVILEGED' | 'CAMERA' | 'CAPTURE_AUDIO_OUTPUT' | 'CHANGE_COMPONENT_ENABLED_STATE' | 'CHANGE_CONFIGURATION' | 'CHANGE_NETWORK_STATE' | 'CHANGE_WIFI_MULTICAST_STATE' | 'CHANGE_WIFI_STATE' | 'CLEAR_APP_CACHE' | 'CONFIGURE_WIFI_DISPLAY' | 'CONTROL_LOCATION_UPDATES' | 'CREDENTIAL_MANAGER_QUERY_CANDIDATE_CREDENTIALS' | 'CREDENTIAL_MANAGER_SET_ALLOWED_PROVIDERS' | 'CREDENTIAL_MANAGER_SET_ORIGIN' | 'DELETE_CACHE_FILES' | 'DELETE_PACKAGES' | 'DELIVER_COMPANION_MESSAGES' | 'DETECT_SCREEN_CAPTURE' | 'DETECT_SCREEN_RECORDING' | 'DIAGNOSTIC' | 'DISABLE_KEYGUARD' | 'DUMP' | 'ENFORCE_UPDATE_OWNERSHIP' | 'EXECUTE_APP_ACTION' | 'EXPAND_STATUS_BAR' | 'FACTORY_TEST' | 'FOREGROUND_SERVICE' | 'FOREGROUND_SERVICE_CAMERA' | 'FOREGROUND_SERVICE_CONNECTED_DEVICE' | 'FOREGROUND_SERVICE_DATA_SYNC' | 'FOREGROUND_SERVICE_HEALTH' | 'FOREGROUND_SERVICE_LOCATION' | 'FOREGROUND_SERVICE_MEDIA_PLAYBACK' | 'FOREGROUND_SERVICE_MEDIA_PROCESSING' | 'FOREGROUND_SERVICE_MEDIA_PROJECTION' | 'FOREGROUND_SERVICE_MICROPHONE' | 'FOREGROUND_SERVICE_PHONE_CALL' | 'FOREGROUND_SERVICE_REMOTE_MESSAGING' | 'FOREGROUND_SERVICE_SPECIAL_USE' | 'FOREGROUND_SERVICE_SYSTEM_EXEMPTED' | 'GET_ACCOUNTS' | 'GET_ACCOUNTS_PRIVILEGED' | 'GET_PACKAGE_SIZE' | 'GET_TASKS' | 'GLOBAL_SEARCH' | 'HIDE_OVERLAY_WINDOWS' | 'HIGH_SAMPLING_RATE_SENSORS' | 'INSTALL_LOCATION_PROVIDER' | 'INSTALL_PACKAGES' | 'INSTALL_SHORTCUT' | 'INSTANT_APP_FOREGROUND_SERVICE' | 'INTERACT_ACROSS_PROFILES' | 'INTERNET' | 'KILL_BACKGROUND_PROCESSES' | 'LAUNCH_CAPTURE_CONTENT_ACTIVITY_FOR_NOTE' | 'LAUNCH_MULTI_PANE_SETTINGS_DEEP_LINK' | 'LOADER_USAGE_STATS' | 'LOCATION_HARDWARE' | 'MANAGE_DEVICE_LOCK_STATE' | 'MANAGE_DEVICE_POLICY_ACCESSIBILITY' | 'MANAGE_DEVICE_POLICY_ACCOUNT_MANAGEMENT' | 'MANAGE_DEVICE_POLICY_ACROSS_USERS' | 'MANAGE_DEVICE_POLICY_ACROSS_USERS_FULL' | 'MANAGE_DEVICE_POLICY_ACROSS_USERS_SECURITY_CRITICAL' | 'MANAGE_DEVICE_POLICY_AIRPLANE_MODE' | 'MANAGE_DEVICE_POLICY_APPS_CONTROL' | 'MANAGE_DEVICE_POLICY_APP_RESTRICTIONS' | 'MANAGE_DEVICE_POLICY_APP_USER_DATA' | 'MANAGE_DEVICE_POLICY_AUDIO_OUTPUT' | 'MANAGE_DEVICE_POLICY_AUTOFILL' | 'MANAGE_DEVICE_POLICY_BACKUP_SERVICE' | 'MANAGE_DEVICE_POLICY_BLUETOOTH' | 'MANAGE_DEVICE_POLICY_BUGREPORT' | 'MANAGE_DEVICE_POLICY_CALLS' | 'MANAGE_DEVICE_POLICY_CAMERA' | 'MANAGE_DEVICE_POLICY_CERTIFICATES' | 'MANAGE_DEVICE_POLICY_COMMON_CRITERIA_MODE' | 'MANAGE_DEVICE_POLICY_CONTENT_PROTECTION' | 'MANAGE_DEVICE_POLICY_DEBUGGING_FEATURES' | 'MANAGE_DEVICE_POLICY_DEFAULT_SMS' | 'MANAGE_DEVICE_POLICY_DEVICE_IDENTIFIERS' | 'MANAGE_DEVICE_POLICY_DISPLAY' | 'MANAGE_DEVICE_POLICY_FACTORY_RESET' | 'MANAGE_DEVICE_POLICY_FUN' | 'MANAGE_DEVICE_POLICY_INPUT_METHODS' | 'MANAGE_DEVICE_POLICY_INSTALL_UNKNOWN_SOURCES' | 'MANAGE_DEVICE_POLICY_KEEP_UNINSTALLED_PACKAGES' | 'MANAGE_DEVICE_POLICY_KEYGUARD' | 'MANAGE_DEVICE_POLICY_LOCALE' | 'MANAGE_DEVICE_POLICY_LOCATION' | 'MANAGE_DEVICE_POLICY_LOCK' | 'MANAGE_DEVICE_POLICY_LOCK_CREDENTIALS' | 'MANAGE_DEVICE_POLICY_LOCK_TASK' | 'MANAGE_DEVICE_POLICY_METERED_DATA' | 'MANAGE_DEVICE_POLICY_MICROPHONE' | 'MANAGE_DEVICE_POLICY_MOBILE_NETWORK' | 'MANAGE_DEVICE_POLICY_MODIFY_USERS' | 'MANAGE_DEVICE_POLICY_MTE' | 'MANAGE_DEVICE_POLICY_NEARBY_COMMUNICATION' | 'MANAGE_DEVICE_POLICY_NETWORK_LOGGING' | 'MANAGE_DEVICE_POLICY_ORGANIZATION_IDENTITY' | 'MANAGE_DEVICE_POLICY_OVERRIDE_APN' | 'MANAGE_DEVICE_POLICY_PACKAGE_STATE' | 'MANAGE_DEVICE_POLICY_PHYSICAL_MEDIA' | 'MANAGE_DEVICE_POLICY_PRINTING' | 'MANAGE_DEVICE_POLICY_PRIVATE_DNS' | 'MANAGE_DEVICE_POLICY_PROFILES' | 'MANAGE_DEVICE_POLICY_PROFILE_INTERACTION' | 'MANAGE_DEVICE_POLICY_PROXY' | 'MANAGE_DEVICE_POLICY_QUERY_SYSTEM_UPDATES' | 'MANAGE_DEVICE_POLICY_RESET_PASSWORD' | 'MANAGE_DEVICE_POLICY_RESTRICT_PRIVATE_DNS' | 'MANAGE_DEVICE_POLICY_RUNTIME_PERMISSIONS' | 'MANAGE_DEVICE_POLICY_RUN_IN_BACKGROUND' | 'MANAGE_DEVICE_POLICY_SAFE_BOOT' | 'MANAGE_DEVICE_POLICY_SCREEN_CAPTURE' | 'MANAGE_DEVICE_POLICY_SCREEN_CONTENT' | 'MANAGE_DEVICE_POLICY_SECURITY_LOGGING' | 'MANAGE_DEVICE_POLICY_SETTINGS' | 'MANAGE_DEVICE_POLICY_SMS' | 'MANAGE_DEVICE_POLICY_STATUS_BAR' | 'MANAGE_DEVICE_POLICY_SUPPORT_MESSAGE' | 'MANAGE_DEVICE_POLICY_SUSPEND_PERSONAL_APPS' | 'MANAGE_DEVICE_POLICY_SYSTEM_APPS' | 'MANAGE_DEVICE_POLICY_SYSTEM_DIALOGS' | 'MANAGE_DEVICE_POLICY_SYSTEM_UPDATES' | 'MANAGE_DEVICE_POLICY_TIME' | 'MANAGE_DEVICE_POLICY_USB_DATA_SIGNALLING' | 'MANAGE_DEVICE_POLICY_USB_FILE_TRANSFER' | 'MANAGE_DEVICE_POLICY_USERS' | 'MANAGE_DEVICE_POLICY_VPN' | 'MANAGE_DEVICE_POLICY_WALLPAPER' | 'MANAGE_DEVICE_POLICY_WIFI' | 'MANAGE_DEVICE_POLICY_WINDOWS' | 'MANAGE_DEVICE_POLICY_WIPE_DATA' | 'MANAGE_DOCUMENTS' | 'MANAGE_EXTERNAL_STORAGE' | 'MANAGE_MEDIA' | 'MANAGE_ONGOING_CALLS' | 'MANAGE_OWN_CALLS' | 'MANAGE_WIFI_INTERFACES' | 'MANAGE_WIFI_NETWORK_SELECTION' | 'MASTER_CLEAR' | 'MEDIA_CONTENT_CONTROL' | 'MEDIA_ROUTING_CONTROL' | 'MODIFY_AUDIO_SETTINGS' | 'MODIFY_PHONE_STATE' | 'MOUNT_FORMAT_FILESYSTEMS' | 'MOUNT_UNMOUNT_FILESYSTEMS' | 'NEARBY_WIFI_DEVICES' | 'NFC' | 'NFC_PREFERRED_PAYMENT_INFO' | 'NFC_TRANSACTION_EVENT' | 'OVERRIDE_WIFI_CONFIG' | 'PACKAGE_USAGE_STATS' | 'PERSISTENT_ACTIVITY' | 'POST_NOTIFICATIONS' | 'PROCESS_OUTGOING_CALLS' | 'PROVIDE_OWN_AUTOFILL_SUGGESTIONS' | 'PROVIDE_REMOTE_CREDENTIALS' | 'QUERY_ALL_PACKAGES' | 'READ_ASSISTANT_APP_SEARCH_DATA' | 'READ_BASIC_PHONE_STATE' | 'READ_CALENDAR' | 'READ_CALL_LOG' | 'READ_CONTACTS' | 'READ_EXTERNAL_STORAGE' | 'READ_HOME_APP_SEARCH_DATA' | 'READ_INPUT_STATE' | 'READ_LOGS' | 'READ_MEDIA_AUDIO' | 'READ_MEDIA_IMAGES' | 'READ_MEDIA_VIDEO' | 'READ_MEDIA_VISUAL_USER_SELECTED' | 'READ_NEARBY_STREAMING_POLICY' | 'READ_PHONE_NUMBERS' | 'READ_PHONE_STATE' | 'READ_PRECISE_PHONE_STATE' | 'READ_SMS' | 'READ_SYNC_SETTINGS' | 'READ_SYNC_STATS' | 'READ_VOICEMAIL' | 'REBOOT' | 'RECEIVE_BOOT_COMPLETED' | 'RECEIVE_MMS' | 'RECEIVE_SMS' | 'RECEIVE_WAP_PUSH' | 'RECORD_AUDIO' | 'REORDER_TASKS' | 'REQUEST_COMPANION_PROFILE_APP_STREAMING' | 'REQUEST_COMPANION_PROFILE_AUTOMOTIVE_PROJECTION' | 'REQUEST_COMPANION_PROFILE_COMPUTER' | 'REQUEST_COMPANION_PROFILE_GLASSES' | 'REQUEST_COMPANION_PROFILE_NEARBY_DEVICE_STREAMING' | 'REQUEST_COMPANION_PROFILE_WATCH' | 'REQUEST_COMPANION_RUN_IN_BACKGROUND' | 'REQUEST_COMPANION_SELF_MANAGED' | 'REQUEST_COMPANION_START_FOREGROUND_SERVICES_FROM_BACKGROUND' | 'REQUEST_COMPANION_USE_DATA_IN_BACKGROUND' | 'REQUEST_DELETE_PACKAGES' | 'REQUEST_IGNORE_BATTERY_OPTIMIZATIONS' | 'REQUEST_INSTALL_PACKAGES' | 'REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE' | 'REQUEST_PASSWORD_COMPLEXITY' | 'RESTART_PACKAGES' | 'RUN_BACKUP_JOBS' | 'RUN_USER_INITIATED_JOBS' | 'SCHEDULE_EXACT_ALARM' | 'SEND_RESPOND_VIA_MESSAGE' | 'SEND_SMS' | 'SET_ALARM' | 'SET_ALWAYS_FINISH' | 'SET_ANIMATION_SCALE' | 'SET_DEBUG_APP' | 'SET_PREFERRED_APPLICATIONS' | 'SET_PROCESS_LIMIT' | 'SET_TIME' | 'SET_TIME_ZONE' | 'SET_WALLPAPER' | 'SET_WALLPAPER_HINTS' | 'SIGNAL_PERSISTENT_PROCESSES' | 'SMS_FINANCIAL_TRANSACTIONS' | 'START_FOREGROUND_SERVICES_FROM_BACKGROUND' | 'START_VIEW_APP_FEATURES' | 'START_VIEW_PERMISSION_USAGE' | 'STATUS_BAR' | 'SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE' | 'SYSTEM_ALERT_WINDOW' | 'TRANSMIT_IR' | 'TURN_SCREEN_ON' | 'UNINSTALL_SHORTCUT' | 'UPDATE_DEVICE_STATS' | 'UPDATE_PACKAGES_WITHOUT_USER_ACTION' | 'USE_BIOMETRIC' | 'USE_EXACT_ALARM' | 'USE_FINGERPRINT' | 'USE_FULL_SCREEN_INTENT' | 'USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER' | 'USE_SIP' | 'UWB_RANGING' | 'VIBRATE' | 'WAKE_LOCK' | 'WRITE_APN_SETTINGS' | 'WRITE_CALENDAR' | 'WRITE_CALL_LOG' | 'WRITE_CONTACTS' | 'WRITE_EXTERNAL_STORAGE' | 'WRITE_GSERVICES' | 'WRITE_SECURE_SETTINGS' | 'WRITE_SETTINGS' | 'WRITE_SYNC_SETTINGS' | 'WRITE_VOICEMAIL' | 'FLASHLIGHT' | 'RECEIVE_USER_PRESENT';
|
|
9
|
+
type AndroidPermissionOther = 'com.asus.msa.SupplementaryDID.ACCESS' | 'com.huawei.android.launcher.permission.CHANGE_BADGE' | 'com.android.launcher.permission.INSTALL_SHORTCUT' | 'com.android.launcher.permission.UNINSTALL_SHORTCUT' | 'com.google.android.gms.permission.AD_ID';
|
|
10
|
+
type AndroidPermissionName = `android.permission.${AndroidPermissionSuffix}` | AndroidPermissionOther;
|
|
11
|
+
type AndroidHardwareFeatureSuffix = 'audio.low_latency' | 'audio.output' | 'audio.pro' | 'microphone' | 'bluetooth' | 'bluetooth_le' | 'camera.any' | 'camera' | 'camera.front' | 'camera.external' | 'camera.autofocus' | 'camera.flash' | 'camera.capability.manual_post_processing' | 'camera.capability.manual_sensor' | 'camera.capability.raw' | 'camera.level.full' | 'type.automotive' | 'type.television' | 'type.watch' | 'type.pc' | 'fingerprint' | 'gamepad' | 'consumerir' | 'location' | 'location.gps' | 'location.network' | 'nfc' | 'nfc.hce' | 'opengles.aep' | 'sensor.accelerometer' | 'sensor.ambient_temperature' | 'sensor.barometer' | 'sensor.compass' | 'sensor.gyroscope' | 'sensor.hifi_sensors' | 'sensor.heartrate' | 'sensor.heartrate.ecg' | 'sensor.light' | 'sensor.proximity' | 'sensor.relative_humidity' | 'sensor.stepcounter' | 'sensor.stepdetector' | 'screen.landscape' | 'screen.portrait' | 'telephony' | 'telephony.cdma' | 'telephony.gsm' | 'faketouch' | 'faketouch.multitouch.distinct' | 'faketouch.multitouch.jazzhand' | 'touchscreen' | 'touchscreen.multitouch' | 'touchscreen.multitouch.distinct' | 'touchscreen.multitouch.jazzhand' | 'usb.accessory' | 'usb.host' | 'vulkan.compute' | 'vulkan.level' | 'vulkan.version' | 'wifi' | 'wifi.direct';
|
|
12
|
+
type AndroidSoftwareFeatureSuffix = 'sip' | 'webview' | 'input_methods' | 'backup' | 'device_admin' | 'managed_users' | 'securely_removes_users' | 'verified_boot' | 'midi' | 'print' | 'leanback' | 'live_tv' | 'app_widgets' | 'home_screen' | 'live_wallpaper';
|
|
13
|
+
type AndroidFeatureName = `android.hardware.${AndroidHardwareFeatureSuffix}` | `android.software.${AndroidSoftwareFeatureSuffix}`;
|
|
14
|
+
type AndroidPermission = `<uses-permission android:name="${AndroidPermissionName}" />` | `<uses-permission android:name="${AndroidPermissionName}"/>` | `<uses-permission android:name="${AndroidPermissionName}" android:maxSdkVersion="${number}" />` | `<uses-permission android:name="${AndroidPermissionName}" android:maxSdkVersion="${number}"/>`;
|
|
15
|
+
type AndroidFeature = `<uses-feature android:name="${AndroidFeatureName}" />` | `<uses-feature android:name="${AndroidFeatureName}"/>` | `<uses-feature android:name="${AndroidFeatureName}" android:required="true" />` | `<uses-feature android:name="${AndroidFeatureName}" android:required="false" />` | `<uses-feature android:name="${AndroidFeatureName}" android:required="true"/>` | `<uses-feature android:name="${AndroidFeatureName}" android:required="false"/>` | `<uses-feature android:name="${AndroidFeatureName}" android:glEsVersion="${number}" />` | `<uses-feature android:name="${AndroidFeatureName}" android:glEsVersion="${number}"/>` | `<uses-feature android:name="${AndroidFeatureName}" android:required="true" android:glEsVersion="${number}" />` | `<uses-feature android:name="${AndroidFeatureName}" android:required="false" android:glEsVersion="${number}" />` | `<uses-feature android:name="${AndroidFeatureName}" android:required="true" android:glEsVersion="${number}"/>` | `<uses-feature android:name="${AndroidFeatureName}" android:required="false" android:glEsVersion="${number}"/>`;
|
|
16
|
+
type AndroidPermissionOrFeature = AndroidPermission | AndroidFeature;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/manifest/interfaces/app.d.ts
|
|
19
|
+
/**
|
|
20
|
+
* uni-app-x Android 图标配置
|
|
21
|
+
*
|
|
22
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#icons-android>
|
|
23
|
+
*/
|
|
24
|
+
interface AppIconsAndroid {
|
|
25
|
+
/** 高分屏设备应用图标,分辨率要求 72x72,PNG 格式 */
|
|
26
|
+
hdpi?: string;
|
|
27
|
+
/** 720P 高分屏设备应用图标,分辨率要求 96x96,PNG 格式 */
|
|
28
|
+
xhdpi?: string;
|
|
29
|
+
/** 1080P 高分屏设备应用图标,分辨率要求 144x144,PNG 格式 */
|
|
30
|
+
xxhdpi?: string;
|
|
31
|
+
/** 2K 屏设备应用图标,分辨率要求 192x192,PNG 格式 */
|
|
32
|
+
xxxhdpi?: string;
|
|
33
|
+
[x: string]: any;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* uni-app-x iOS 图标配置
|
|
37
|
+
*
|
|
38
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#icons-ios>
|
|
39
|
+
*/
|
|
40
|
+
interface AppIconsIos {
|
|
41
|
+
/** iPhone/iPad 设备应用图标,分辨率要求 1024x1024,PNG 格式,不能存在透明区域 */
|
|
42
|
+
appstore?: string;
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* uni-app-x App 端图标配置
|
|
47
|
+
*
|
|
48
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#distribute-icons>
|
|
49
|
+
*/
|
|
50
|
+
interface AppIcons {
|
|
51
|
+
/** Android 图标配置 */
|
|
52
|
+
android?: AppIconsAndroid;
|
|
53
|
+
/** iOS 图标配置 */
|
|
54
|
+
ios?: AppIconsIos;
|
|
55
|
+
[x: string]: any;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* uni-app-x Android 平台启动界面配置
|
|
59
|
+
*
|
|
60
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#splashscreens-android>
|
|
61
|
+
*/
|
|
62
|
+
interface AppSplashScreensAndroid {
|
|
63
|
+
/**
|
|
64
|
+
* 暗色模式下的启动界面背景色,仅 Android12 及以上设备生效
|
|
65
|
+
*
|
|
66
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#配置启动界面背景颜色>
|
|
67
|
+
*
|
|
68
|
+
* @since HBuilderX 4.75+
|
|
69
|
+
*/
|
|
70
|
+
'background@night'?: string;
|
|
71
|
+
/** 适用于(ldpi)密度屏幕(~120dpi),建议分辨率 240x320,通常可以不用设置这项 */
|
|
72
|
+
'ldpi'?: string;
|
|
73
|
+
/** 适用于(mdpi)密度屏幕(~160dpi),建议分辨率 320x480,通常可以不用设置这项 */
|
|
74
|
+
'mdpi'?: string;
|
|
75
|
+
/** 适用于(hdpi)密度屏幕(~240dpi),建议分辨率 480x800,通常可以不用设置这项 */
|
|
76
|
+
'hdpi'?: string;
|
|
77
|
+
/** 适用于(xhdpi)密度屏幕(~320dpi),建议分辨率 720x1280 */
|
|
78
|
+
'xhdpi'?: string;
|
|
79
|
+
/** 适用于(xxhdpi)密度屏幕(~480dpi),建议分辨率 1080x1920 */
|
|
80
|
+
'xxhdpi'?: string;
|
|
81
|
+
/** 适用于(xxxhdpi)密度屏幕(~640dpi),建议分辨率 2160x3840 */
|
|
82
|
+
'xxxhdpi'?: string;
|
|
83
|
+
[x: string]: any;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* uni-app-x Android12 启动界面 Logo 图标配置
|
|
87
|
+
*
|
|
88
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#android12-icon>
|
|
89
|
+
*/
|
|
90
|
+
interface AppSplashScreensAndroid12Icon {
|
|
91
|
+
/** 适用于(xhdpi)密度屏幕(~320dpi),建议分辨率 480x480 */
|
|
92
|
+
xhdpi?: string;
|
|
93
|
+
/** 适用于(xxhdpi)密度屏幕(~480dpi),建议分辨率 720x720 */
|
|
94
|
+
xxhdpi?: string;
|
|
95
|
+
/** 适用于(xxxhdpi)密度屏幕(~640dpi),建议分辨率 960x960 */
|
|
96
|
+
xxxhdpi?: string;
|
|
97
|
+
[x: string]: any;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* uni-app-x Android12 启动界面底部品牌图标配置
|
|
101
|
+
*
|
|
102
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#android12-brand>
|
|
103
|
+
*/
|
|
104
|
+
interface AppSplashScreensAndroid12Brand {
|
|
105
|
+
/** 适用于(xhdpi)密度屏幕(~320dpi),建议分辨率 400x160 */
|
|
106
|
+
xhdpi?: string;
|
|
107
|
+
/** 适用于(xxhdpi)密度屏幕(~480dpi),建议分辨率 600x240 */
|
|
108
|
+
xxhdpi?: string;
|
|
109
|
+
/** 适用于(xxxhdpi)密度屏幕(~640dpi),建议分辨率 800x320 */
|
|
110
|
+
xxxhdpi?: string;
|
|
111
|
+
[x: string]: any;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* uni-app-x Android12 启动界面配置
|
|
115
|
+
*
|
|
116
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#splashscreen-android12>
|
|
117
|
+
*/
|
|
118
|
+
interface AppSplashScreensAndroid12 {
|
|
119
|
+
/** 仅在 Android12 及以上设备生效,默认值为白色 */
|
|
120
|
+
background?: string;
|
|
121
|
+
/** Android12 启动界面中部 Logo 图标 */
|
|
122
|
+
icon?: AppSplashScreensAndroid12Icon;
|
|
123
|
+
/** Android12 启动界面底部品牌图标 */
|
|
124
|
+
brand?: AppSplashScreensAndroid12Brand;
|
|
125
|
+
[x: string]: any;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* uni-app-x iOS 平台启动界面配置
|
|
129
|
+
*
|
|
130
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#distribute-splashscreens-3>
|
|
131
|
+
*/
|
|
132
|
+
interface AppSplashScreensIos {
|
|
133
|
+
/** 用于 iOS 平台自定义 storyboard 启动界面 */
|
|
134
|
+
storyboard?: string;
|
|
135
|
+
[x: string]: any;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* uni-app-x App 端启动界面配置
|
|
139
|
+
*
|
|
140
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#distribute-splashscreens>
|
|
141
|
+
*/
|
|
142
|
+
interface AppSplashScreens {
|
|
143
|
+
/** Android 平台启动界面配置 */
|
|
144
|
+
android?: AppSplashScreensAndroid;
|
|
145
|
+
/** Android12 启动界面配置,无此配置项表示不适配支持 Android12 启动界面 */
|
|
146
|
+
android12?: AppSplashScreensAndroid12;
|
|
147
|
+
/** iOS 平台启动界面配置 */
|
|
148
|
+
ios?: AppSplashScreensIos;
|
|
149
|
+
[x: string]: any;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* uni-app-x 启动界面关闭时机配置
|
|
153
|
+
*
|
|
154
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#android平台splash关闭时机>
|
|
155
|
+
*/
|
|
156
|
+
interface AppSplashScreen {
|
|
157
|
+
/**
|
|
158
|
+
* 启动界面关闭时机
|
|
159
|
+
*
|
|
160
|
+
* @default "onShow"
|
|
161
|
+
*/
|
|
162
|
+
autoClose?: 'onShow' | 'onReady';
|
|
163
|
+
[x: string]: any;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* uni-app-x App-Android 平台发布配置
|
|
167
|
+
*
|
|
168
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#distribute-android>
|
|
169
|
+
*/
|
|
170
|
+
interface AppDistributeAndroid {
|
|
171
|
+
/**
|
|
172
|
+
* 额外添加的权限
|
|
173
|
+
*
|
|
174
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#incloudpermissions>
|
|
175
|
+
*/
|
|
176
|
+
permissions?: AndroidPermissionOrFeature[];
|
|
177
|
+
/**
|
|
178
|
+
* 强制移除的权限
|
|
179
|
+
*
|
|
180
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#excludepermissions>
|
|
181
|
+
*/
|
|
182
|
+
excludePermissions?: AndroidPermissionOrFeature[];
|
|
183
|
+
/**
|
|
184
|
+
* 应用兼容的最低 Android 版本(API 等级)
|
|
185
|
+
*
|
|
186
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#minsdkversion>
|
|
187
|
+
*
|
|
188
|
+
* @default 21
|
|
189
|
+
*/
|
|
190
|
+
minSdkVersion?: number;
|
|
191
|
+
/**
|
|
192
|
+
* 应用适配的目标 Android 版本(API 等级),部分应用市场要求设置较高的 targetSdkVersion 才能提交审核
|
|
193
|
+
*
|
|
194
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#targetsdkversion>
|
|
195
|
+
*
|
|
196
|
+
* @default 32
|
|
197
|
+
*/
|
|
198
|
+
targetSdkVersion?: number;
|
|
199
|
+
/**
|
|
200
|
+
* 应用支持的 CPU 类型
|
|
201
|
+
*
|
|
202
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#abifilters>
|
|
203
|
+
*
|
|
204
|
+
* @default ["arm64-v8a"]
|
|
205
|
+
*/
|
|
206
|
+
abiFilters?: ('armeabi-v7a' | 'arm64-v8a' | 'x86' | 'x86_64')[];
|
|
207
|
+
/**
|
|
208
|
+
* 是否开启 Android 原生 res 资源文件优化,开启后 res 资源文件名称会被混淆
|
|
209
|
+
*
|
|
210
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#enableresourceoptimizations>
|
|
211
|
+
*/
|
|
212
|
+
enableResourceOptimizations?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* aaptOptions 配置项
|
|
215
|
+
*
|
|
216
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#aaptoptions>
|
|
217
|
+
*/
|
|
218
|
+
aaptOptions?: string[];
|
|
219
|
+
/**
|
|
220
|
+
* buildFeatures 配置项
|
|
221
|
+
*
|
|
222
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#buildfeatures>
|
|
223
|
+
*/
|
|
224
|
+
buildFeatures?: string[];
|
|
225
|
+
/**
|
|
226
|
+
* packagingOptions 配置项
|
|
227
|
+
*
|
|
228
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#packagingoptions>
|
|
229
|
+
*/
|
|
230
|
+
packagingOptions?: string[];
|
|
231
|
+
/**
|
|
232
|
+
* 是否不压缩原生库(.so 文件),设置为 true 时 .so 文件以未压缩方式打包
|
|
233
|
+
*
|
|
234
|
+
* @since HBuilderX 5.21+
|
|
235
|
+
*
|
|
236
|
+
* @default false
|
|
237
|
+
*/
|
|
238
|
+
disableLegacyPackaging?: boolean;
|
|
239
|
+
[x: string]: any;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* uni-app-x iOS 平台发布配置
|
|
243
|
+
*
|
|
244
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#distribute-ios>
|
|
245
|
+
*/
|
|
246
|
+
interface AppDistributeIos {
|
|
247
|
+
/**
|
|
248
|
+
* iOS 支持的设备
|
|
249
|
+
*
|
|
250
|
+
* @default "auto"
|
|
251
|
+
*/
|
|
252
|
+
devices?: 'auto' | 'iphone' | 'ipad' | 'universal';
|
|
253
|
+
/**
|
|
254
|
+
* 应用内部名称(可作为开发者标识),最多可使用 15 个字符
|
|
255
|
+
*
|
|
256
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-ios.html#cfbundlename>
|
|
257
|
+
*
|
|
258
|
+
* @default "UniAppX"
|
|
259
|
+
*/
|
|
260
|
+
CFBundleName?: string;
|
|
261
|
+
/**
|
|
262
|
+
* 在 iPad 设备是否全屏显示,设置为 false 表示应用能够与其他应用共享屏幕显示(分屏显示)
|
|
263
|
+
*
|
|
264
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-ios.html#uirequiresfullscreen>
|
|
265
|
+
*
|
|
266
|
+
* @default false
|
|
267
|
+
*/
|
|
268
|
+
UIRequiresFullScreen?: boolean;
|
|
269
|
+
[x: string]: any;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* uni-app-x app 内置模块配置
|
|
273
|
+
*
|
|
274
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#distribute-modules>
|
|
275
|
+
*/
|
|
276
|
+
interface AppModules {
|
|
277
|
+
/**
|
|
278
|
+
* uni-ad 广告联盟模块
|
|
279
|
+
*
|
|
280
|
+
* 详见 <https://uniad.dcloud.net.cn/>
|
|
281
|
+
*/
|
|
282
|
+
'uni-ad'?: AppModulesUniAd;
|
|
283
|
+
/**
|
|
284
|
+
* canvas 画布组件模块(HBuilderX 4.25+)
|
|
285
|
+
*
|
|
286
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/component/canvas.html>
|
|
287
|
+
*/
|
|
288
|
+
'uni-canvas'?: Record<string, any>;
|
|
289
|
+
/**
|
|
290
|
+
* uniCloud 云函数/云对象模块(HBuilderX 4.25+)
|
|
291
|
+
*
|
|
292
|
+
* 详见 <https://doc.dcloud.net.cn/uniCloud/cf-functions.html>
|
|
293
|
+
*/
|
|
294
|
+
'uni-cloud-client'?: Record<string, any>;
|
|
295
|
+
/**
|
|
296
|
+
* 监听权限申请模块(HBuilderX 4.0+)
|
|
297
|
+
*
|
|
298
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/create-request-permission-listener.html>
|
|
299
|
+
*/
|
|
300
|
+
'uni-createRequestPermissionListener'?: Record<string, any>;
|
|
301
|
+
/**
|
|
302
|
+
* 创建 web-view 组件的上下文对象模块
|
|
303
|
+
*
|
|
304
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/create-webview-context.html>
|
|
305
|
+
*/
|
|
306
|
+
'uni-createWebviewContext'?: Record<string, any>;
|
|
307
|
+
/**
|
|
308
|
+
* uni 实人认证模块
|
|
309
|
+
*
|
|
310
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/facial-recognition-meta-info.html>
|
|
311
|
+
*/
|
|
312
|
+
'uni-facialRecognitionVerify'?: Record<string, any>;
|
|
313
|
+
/**
|
|
314
|
+
* 文件管理模块
|
|
315
|
+
*
|
|
316
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/get-file-system-manager.html>
|
|
317
|
+
*/
|
|
318
|
+
'uni-fileSystemManager'?: Record<string, any>;
|
|
319
|
+
/**
|
|
320
|
+
* 系统定位模块,HBuilderX 4.61 以下版本名为 uni-getLocation
|
|
321
|
+
*
|
|
322
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/get-location.html>
|
|
323
|
+
*
|
|
324
|
+
* @since Android HBuilderX 3.91, iOS HBuilderX 4.11
|
|
325
|
+
*/
|
|
326
|
+
'uni-location'?: AppModulesUniLocation;
|
|
327
|
+
/**
|
|
328
|
+
* 地图模块
|
|
329
|
+
*
|
|
330
|
+
* @since Android HBuilderX 4.31, iOS HBuilderX 4.31
|
|
331
|
+
*/
|
|
332
|
+
'uni-map'?: AppModulesUniMap;
|
|
333
|
+
/**
|
|
334
|
+
* 获取网络类型模块
|
|
335
|
+
*
|
|
336
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/get-network-type.html>
|
|
337
|
+
*/
|
|
338
|
+
'uni-getNetworkType'?: Record<string, any>;
|
|
339
|
+
/**
|
|
340
|
+
* 安装 apk 模块
|
|
341
|
+
*
|
|
342
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/install-apk.html>
|
|
343
|
+
*/
|
|
344
|
+
'uni-installApk'?: Record<string, any>;
|
|
345
|
+
/**
|
|
346
|
+
* 请求支付模块
|
|
347
|
+
*
|
|
348
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html>
|
|
349
|
+
*
|
|
350
|
+
* @since Android HBuilderX 4.02, iOS HBuilderX 4.18
|
|
351
|
+
*/
|
|
352
|
+
'uni-payment'?: AppModulesUniPayment;
|
|
353
|
+
/**
|
|
354
|
+
* 获取服务供应商模块
|
|
355
|
+
*
|
|
356
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/get-provider.html#getprovider>
|
|
357
|
+
*/
|
|
358
|
+
'uni-getProvider'?: Record<string, any>;
|
|
359
|
+
/**
|
|
360
|
+
* 统一推送模块
|
|
361
|
+
*
|
|
362
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/uni-push.html>
|
|
363
|
+
*/
|
|
364
|
+
'uni-push'?: Record<string, any>;
|
|
365
|
+
/**
|
|
366
|
+
* 多媒体模块
|
|
367
|
+
*
|
|
368
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/choose-image.html>
|
|
369
|
+
*/
|
|
370
|
+
'uni-media'?: Record<string, any>;
|
|
371
|
+
/**
|
|
372
|
+
* 网络请求(文件上传/下载)模块
|
|
373
|
+
*
|
|
374
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/network-summarize.html>
|
|
375
|
+
*/
|
|
376
|
+
'uni-network'?: Record<string, any>;
|
|
377
|
+
/**
|
|
378
|
+
* 虚拟支付模块
|
|
379
|
+
*
|
|
380
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html>
|
|
381
|
+
*/
|
|
382
|
+
'uni-virtualPayment'?: Record<string, any>;
|
|
383
|
+
/**
|
|
384
|
+
* video 视频组件模块
|
|
385
|
+
*
|
|
386
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/component/video.html>
|
|
387
|
+
*/
|
|
388
|
+
'uni-video'?: Record<string, any>;
|
|
389
|
+
/**
|
|
390
|
+
* WebSocket 模块
|
|
391
|
+
*
|
|
392
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/websocket.html>
|
|
393
|
+
*/
|
|
394
|
+
'uni-websocket'?: Record<string, any>;
|
|
395
|
+
/**
|
|
396
|
+
* 一键登录模块
|
|
397
|
+
*
|
|
398
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/api/get-univerify-manager.html>
|
|
399
|
+
*/
|
|
400
|
+
'uni-verify'?: Record<string, any>;
|
|
401
|
+
[x: string]: any;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* uni-app-x uni-ad 广告联盟配置
|
|
405
|
+
*/
|
|
406
|
+
interface AppModulesUniAd {
|
|
407
|
+
/** 腾讯优量汇广告联盟 */
|
|
408
|
+
gdt?: Record<string, any>;
|
|
409
|
+
/** 穿山甲 GroMore */
|
|
410
|
+
gm?: Record<string, any>;
|
|
411
|
+
/** 快手广告联盟 */
|
|
412
|
+
ks?: Record<string, any>;
|
|
413
|
+
/** Sigmob 广告联盟 */
|
|
414
|
+
sgm?: Record<string, any>;
|
|
415
|
+
/** 百度百青藤广告联盟 */
|
|
416
|
+
bd?: Record<string, any>;
|
|
417
|
+
[x: string]: any;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* uni-app-x uni-location(定位)模块 Provider 配置
|
|
421
|
+
*/
|
|
422
|
+
interface AppModulesUniLocation {
|
|
423
|
+
/** 系统定位 */
|
|
424
|
+
system?: Record<string, any>;
|
|
425
|
+
/** 腾讯定位 */
|
|
426
|
+
tencent?: {
|
|
427
|
+
/** 腾讯位置服务后台申请的 Key */
|
|
428
|
+
key?: string;
|
|
429
|
+
[x: string]: any;
|
|
430
|
+
};
|
|
431
|
+
[x: string]: any;
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* uni-app-x uni-map(地图)模块 Provider 配置
|
|
435
|
+
*/
|
|
436
|
+
interface AppModulesUniMap {
|
|
437
|
+
/** 腾讯地图 */
|
|
438
|
+
tencent?: {
|
|
439
|
+
/** 腾讯位置服务后台申请的 Key */
|
|
440
|
+
key?: string;
|
|
441
|
+
[x: string]: any;
|
|
442
|
+
};
|
|
443
|
+
[x: string]: any;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* uni-app-x uni-payment wxpay 配置
|
|
447
|
+
*/
|
|
448
|
+
interface AppModulesUniPaymentWxpay {
|
|
449
|
+
/** Android 平台微信支付配置信息 */
|
|
450
|
+
android?: Record<string, any>;
|
|
451
|
+
/** iOS 平台微信支付配置信息 */
|
|
452
|
+
ios?: {
|
|
453
|
+
/** 微信开放平台申请的应用 ID(AppID) */
|
|
454
|
+
appid?: string;
|
|
455
|
+
/** 通用链接(Universal Link),配置方式参考 <https://uniapp.dcloud.net.cn/tutorial/app-ios-capabilities.html#%E9%80%9A%E7%94%A8%E9%93%BE%E6%8E%A5-universal-link> */
|
|
456
|
+
universalLink?: string;
|
|
457
|
+
[x: string]: any;
|
|
458
|
+
};
|
|
459
|
+
[x: string]: any;
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* uni-app-x uni-payment(支付)模块 Provider 配置
|
|
463
|
+
*/
|
|
464
|
+
interface AppModulesUniPayment {
|
|
465
|
+
/** 支付宝支付 */
|
|
466
|
+
alipay?: Record<string, any>;
|
|
467
|
+
/** 微信支付 */
|
|
468
|
+
wxpay?: AppModulesUniPaymentWxpay;
|
|
469
|
+
[x: string]: any;
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* uni-app-x App 平台发布配置
|
|
473
|
+
*
|
|
474
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#app-distribute>
|
|
475
|
+
*/
|
|
476
|
+
interface AppDistribute {
|
|
477
|
+
/**
|
|
478
|
+
* 是否为自定义调试基座
|
|
479
|
+
*
|
|
480
|
+
* @default false
|
|
481
|
+
*/
|
|
482
|
+
syncDebug?: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* Android、iOS 平台应用图标配置,云端打包后生效
|
|
485
|
+
*
|
|
486
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#distribute-icons>
|
|
487
|
+
*/
|
|
488
|
+
icons?: AppIcons;
|
|
489
|
+
/**
|
|
490
|
+
* Android、iOS 平台应用启动界面配置,云端打包后生效
|
|
491
|
+
*
|
|
492
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#distribute-splashscreens>
|
|
493
|
+
*/
|
|
494
|
+
splashScreens?: AppSplashScreens;
|
|
495
|
+
/**
|
|
496
|
+
* App-Android 平台发布配置
|
|
497
|
+
*
|
|
498
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#distribute-android>
|
|
499
|
+
*/
|
|
500
|
+
android?: AppDistributeAndroid;
|
|
501
|
+
/**
|
|
502
|
+
* iOS 平台发布配置
|
|
503
|
+
*
|
|
504
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#distribute-ios>
|
|
505
|
+
*/
|
|
506
|
+
ios?: AppDistributeIos;
|
|
507
|
+
/**
|
|
508
|
+
* app 内置模块配置
|
|
509
|
+
*
|
|
510
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#distribute-modules>
|
|
511
|
+
*/
|
|
512
|
+
modules?: AppModules;
|
|
513
|
+
[x: string]: any;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* uni-app-x App 平台(原生 App)配置
|
|
517
|
+
*
|
|
518
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#manifest-app>
|
|
519
|
+
*/
|
|
520
|
+
interface App {
|
|
521
|
+
/**
|
|
522
|
+
* 应用默认主题,可取值 light/dark/auto
|
|
523
|
+
*
|
|
524
|
+
* @default "light"
|
|
525
|
+
*/
|
|
526
|
+
defaultAppTheme?: 'auto' | 'light' | 'dark';
|
|
527
|
+
/** App 平台发布配置 */
|
|
528
|
+
distribute?: AppDistribute;
|
|
529
|
+
/**
|
|
530
|
+
* 启动界面关闭时机配置,HBuilderX 4.71 以下版本配置于 app 节点
|
|
531
|
+
*
|
|
532
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#android平台splash关闭时机>
|
|
533
|
+
*/
|
|
534
|
+
splashScreen?: AppSplashScreen;
|
|
535
|
+
/**
|
|
536
|
+
* 隐私协议初始状态,可取值 auto/agree/disagree
|
|
537
|
+
*
|
|
538
|
+
* @default "auto"
|
|
539
|
+
*/
|
|
540
|
+
initPrivacyAuthorization?: 'auto' | 'agree' | 'disagree';
|
|
541
|
+
[x: string]: any;
|
|
542
|
+
}
|
|
543
|
+
//#endregion
|
|
544
|
+
//#region src/manifest/interfaces/app-android.d.ts
|
|
545
|
+
/**
|
|
546
|
+
* uni-app-x Android 平台发布配置
|
|
547
|
+
*
|
|
548
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#app-android-distribute>
|
|
549
|
+
*/
|
|
550
|
+
interface AppAndroidDistribute extends AppDistributeAndroid {
|
|
551
|
+
/**
|
|
552
|
+
* 是否为自定义调试基座
|
|
553
|
+
*
|
|
554
|
+
* @default false
|
|
555
|
+
*/
|
|
556
|
+
syncDebug?: boolean;
|
|
557
|
+
/** Android 平台应用图标配置,云端打包后生效 */
|
|
558
|
+
icons?: AppIconsAndroid;
|
|
559
|
+
/** Android 平台应用启动界面配置,云端打包后生效 */
|
|
560
|
+
splashScreens?: AppSplashScreensAndroid;
|
|
561
|
+
/** Android 内置模块配置 */
|
|
562
|
+
modules?: AppModules;
|
|
563
|
+
[x: string]: any;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* uni-app-x App-Android 平台配置
|
|
567
|
+
*
|
|
568
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#manifest-app-android>
|
|
569
|
+
*/
|
|
570
|
+
interface AppAndroid {
|
|
571
|
+
/**
|
|
572
|
+
* 应用默认主题,可取值 light/dark/auto
|
|
573
|
+
*
|
|
574
|
+
* @default "light"
|
|
575
|
+
*/
|
|
576
|
+
defaultAppTheme?: 'auto' | 'light' | 'dark';
|
|
577
|
+
/**
|
|
578
|
+
* Android 平台发布配置
|
|
579
|
+
*
|
|
580
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#app-android-distribute>
|
|
581
|
+
*/
|
|
582
|
+
distribute?: AppAndroidDistribute;
|
|
583
|
+
/**
|
|
584
|
+
* 启动界面关闭时机配置,HBuilderX 4.71 及以上版本配置于 app-android 节点
|
|
585
|
+
*
|
|
586
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-android.html#android平台splash关闭时机>
|
|
587
|
+
*/
|
|
588
|
+
splashScreen?: AppSplashScreen;
|
|
589
|
+
/**
|
|
590
|
+
* 隐私协议初始状态,可取值 auto/agree/disagree
|
|
591
|
+
*
|
|
592
|
+
* @default "auto"
|
|
593
|
+
*/
|
|
594
|
+
initPrivacyAuthorization?: 'auto' | 'agree' | 'disagree';
|
|
595
|
+
[x: string]: any;
|
|
596
|
+
}
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region src/common/index.d.ts
|
|
599
|
+
type RGBAColor = `rgba(${number}, ${number}, ${number}, ${number})`;
|
|
600
|
+
type HEXColor = `#${string}`;
|
|
601
|
+
type PNG = `${string}.png` | `${string}.PNG`;
|
|
602
|
+
type PxSize = `${number}px`;
|
|
603
|
+
type PercentageSize = `${number}%`;
|
|
604
|
+
type MaybeArray<T> = T | T[];
|
|
605
|
+
//#endregion
|
|
606
|
+
//#region src/manifest/interfaces/app-harmony.d.ts
|
|
607
|
+
/**
|
|
608
|
+
* HarmonyOS 签名配置
|
|
609
|
+
*
|
|
610
|
+
* 详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-harmony-signingconfigs>
|
|
611
|
+
*/
|
|
612
|
+
interface AppHarmonyDistributeSigningConfig {
|
|
613
|
+
/**
|
|
614
|
+
* 私钥库文件
|
|
615
|
+
*/
|
|
616
|
+
storeFile?: string;
|
|
617
|
+
/**
|
|
618
|
+
* 私钥库访问密码
|
|
619
|
+
*/
|
|
620
|
+
storePassword?: string;
|
|
621
|
+
/**
|
|
622
|
+
* 私钥库里面的私钥别名
|
|
623
|
+
*/
|
|
624
|
+
keyAlias?: string;
|
|
625
|
+
/**
|
|
626
|
+
* 私钥访问密码
|
|
627
|
+
*/
|
|
628
|
+
keyPassword?: string;
|
|
629
|
+
/**
|
|
630
|
+
* 签名算法,固定为 "SHA256withECDSA"
|
|
631
|
+
*/
|
|
632
|
+
signAlg?: string;
|
|
633
|
+
/**
|
|
634
|
+
* 证书文件
|
|
635
|
+
*/
|
|
636
|
+
certpath?: string;
|
|
637
|
+
/**
|
|
638
|
+
* 签名描述文件
|
|
639
|
+
*/
|
|
640
|
+
profile?: string;
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* HarmonyOS 应用图标配置
|
|
644
|
+
*
|
|
645
|
+
* 详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-harmony-icons>
|
|
646
|
+
*/
|
|
647
|
+
interface AppHarmonyIcons {
|
|
648
|
+
/**
|
|
649
|
+
* 前景图,以相对路径指向一个图片文件
|
|
650
|
+
*/
|
|
651
|
+
foreground?: string;
|
|
652
|
+
/**
|
|
653
|
+
* 背景图,以相对路径指向一个图片文件
|
|
654
|
+
*/
|
|
655
|
+
background?: string;
|
|
656
|
+
[x: string]: any;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* HarmonyOS 启动界面配置
|
|
660
|
+
*
|
|
661
|
+
* 详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-harmony-splashscreens>
|
|
662
|
+
*/
|
|
663
|
+
interface AppHarmonySplashScreens {
|
|
664
|
+
/**
|
|
665
|
+
* 启动界面背景色
|
|
666
|
+
*
|
|
667
|
+
* @format color
|
|
668
|
+
*/
|
|
669
|
+
startWindowBackground?: HEXColor;
|
|
670
|
+
/**
|
|
671
|
+
* 启动界面中部图标,以相对路径指向一个图片文件
|
|
672
|
+
*/
|
|
673
|
+
startWindowIcon?: string;
|
|
674
|
+
[x: string]: any;
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* HarmonyOS 模块配置
|
|
678
|
+
*
|
|
679
|
+
* 详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-harmony-modules> 和 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#distribute-modules-3>
|
|
680
|
+
*/
|
|
681
|
+
interface AppHarmonyModules {
|
|
682
|
+
/** 定位模块相关参数 */
|
|
683
|
+
'uni-location'?: Record<string, any>;
|
|
684
|
+
/** 地图模块相关参数 */
|
|
685
|
+
'uni-map'?: Record<string, any>;
|
|
686
|
+
/** 登录鉴权模块相关参数 */
|
|
687
|
+
'uni-oauth'?: {
|
|
688
|
+
/** 华为 OAuth 模块 */
|
|
689
|
+
huawei?: Record<string, any>;
|
|
690
|
+
/** 微信 OAuth 模块 */
|
|
691
|
+
weixin?: {
|
|
692
|
+
/** 微信开放平台申请的应用 ID(AppID) */
|
|
693
|
+
appid?: string;
|
|
694
|
+
[x: string]: any;
|
|
695
|
+
};
|
|
696
|
+
[x: string]: any;
|
|
697
|
+
};
|
|
698
|
+
/** 支付模块相关参数 */
|
|
699
|
+
'uni-payment'?: Record<string, any>;
|
|
700
|
+
/** 分享模块相关参数 */
|
|
701
|
+
'uni-share'?: {
|
|
702
|
+
/** 微信分享模块 */
|
|
703
|
+
weixin?: {
|
|
704
|
+
/** 微信开放平台申请的应用 ID(AppID) */
|
|
705
|
+
appid?: string;
|
|
706
|
+
[x: string]: any;
|
|
707
|
+
};
|
|
708
|
+
[x: string]: any;
|
|
709
|
+
};
|
|
710
|
+
/** 系统定位模块(uni-app x) */
|
|
711
|
+
'uni-location-system'?: Record<string, any>;
|
|
712
|
+
/** 腾讯地图模块(uni-app x) */
|
|
713
|
+
'uni-map-tencent'?: Record<string, any>;
|
|
714
|
+
/** 支付宝支付模块(uni-app x) */
|
|
715
|
+
'uni-payment-alipay'?: Record<string, any>;
|
|
716
|
+
/** 微信支付模块(uni-app x) */
|
|
717
|
+
'uni-payment-wxpay'?: Record<string, any>;
|
|
718
|
+
/** 统一推送模块(uni-app x) */
|
|
719
|
+
'uni-push'?: Record<string, any>;
|
|
720
|
+
/** 一键登录模块(uni-app x) */
|
|
721
|
+
'uni-verify'?: Record<string, any>;
|
|
722
|
+
/** uni 实人认证模块(uni-app x) */
|
|
723
|
+
'uni-facialVerify'?: Record<string, any>;
|
|
724
|
+
[x: string]: any;
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* HarmonyOS 分发配置
|
|
728
|
+
*
|
|
729
|
+
* 详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-harmony-distribute> 和 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#app-harmony-distribute>
|
|
730
|
+
*/
|
|
731
|
+
interface AppHarmonyDistribute {
|
|
732
|
+
/**
|
|
733
|
+
* 应用包名
|
|
734
|
+
*
|
|
735
|
+
* HarmonyOS 应用的唯一标识符,格式为反向域名
|
|
736
|
+
*/
|
|
737
|
+
bundleName?: string;
|
|
738
|
+
/**
|
|
739
|
+
* 证书签名配置
|
|
740
|
+
*
|
|
741
|
+
* 配置鸿蒙打包时使用的数字签名证书信息,可分别配置调试证书和发布证书
|
|
742
|
+
*
|
|
743
|
+
* 详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-harmony-signingconfigs>
|
|
744
|
+
*/
|
|
745
|
+
signingConfigs?: {
|
|
746
|
+
/**
|
|
747
|
+
* 调试证书配置
|
|
748
|
+
*/
|
|
749
|
+
default?: AppHarmonyDistributeSigningConfig;
|
|
750
|
+
/**
|
|
751
|
+
* 发布证书配置
|
|
752
|
+
*/
|
|
753
|
+
release?: AppHarmonyDistributeSigningConfig;
|
|
754
|
+
/**
|
|
755
|
+
* 其他自定义签名配置
|
|
756
|
+
*/
|
|
757
|
+
[configName: string]: AppHarmonyDistributeSigningConfig | undefined;
|
|
758
|
+
};
|
|
759
|
+
/**
|
|
760
|
+
* 应用图标配置
|
|
761
|
+
*
|
|
762
|
+
* 配置应用的前景图和背景图,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-harmony-icons>
|
|
763
|
+
*/
|
|
764
|
+
icons?: AppHarmonyIcons;
|
|
765
|
+
/**
|
|
766
|
+
* 启动界面配置
|
|
767
|
+
*
|
|
768
|
+
* 配置启动界面的背景色和中部图标,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-harmony-splashscreens>
|
|
769
|
+
*/
|
|
770
|
+
splashScreens?: AppHarmonySplashScreens;
|
|
771
|
+
/**
|
|
772
|
+
* 模块配置
|
|
773
|
+
*
|
|
774
|
+
* 配置各种功能模块的相关参数,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-harmony-modules>
|
|
775
|
+
*/
|
|
776
|
+
modules?: AppHarmonyModules;
|
|
777
|
+
/**
|
|
778
|
+
* 其他分发相关配置
|
|
779
|
+
*/
|
|
780
|
+
[x: string]: any;
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* HarmonyOS UserAgent 配置,配置应用的 UserAgent 相关设置
|
|
784
|
+
*
|
|
785
|
+
* 详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-harmony-useragent>
|
|
786
|
+
*/
|
|
787
|
+
interface AppHarmonyUserAgent {
|
|
788
|
+
/**
|
|
789
|
+
* UserAgent 值
|
|
790
|
+
*
|
|
791
|
+
* 应用 UserAgent 相关配置,默认值为系统 UserAgent
|
|
792
|
+
*/
|
|
793
|
+
value?: string;
|
|
794
|
+
/**
|
|
795
|
+
* 是否将 value 值作为追加值连接到系统默认 userAgent 值之后
|
|
796
|
+
*
|
|
797
|
+
* @default false
|
|
798
|
+
*/
|
|
799
|
+
concatenate?: boolean;
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* HarmonyOS 底部安全区域配置
|
|
803
|
+
*
|
|
804
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/darkmode.html#app-harmony-safearea-bottom>
|
|
805
|
+
*/
|
|
806
|
+
interface AppHarmonySafearea {
|
|
807
|
+
/**
|
|
808
|
+
* 底部安全区域背景色
|
|
809
|
+
*
|
|
810
|
+
* @format color
|
|
811
|
+
*/
|
|
812
|
+
background?: HEXColor;
|
|
813
|
+
/**
|
|
814
|
+
* 暗黑模式下底部安全区域背景色
|
|
815
|
+
*
|
|
816
|
+
* @format color
|
|
817
|
+
*/
|
|
818
|
+
backgroundDark?: HEXColor;
|
|
819
|
+
bottom?: {
|
|
820
|
+
/** 底部区域占位方式,目前仅支持 none(无 tabBar 时不占位) */
|
|
821
|
+
offset: 'none';
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* uni-app-x App HarmonyOS 应用配置
|
|
826
|
+
*
|
|
827
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#manifest-app-harmony>
|
|
828
|
+
*/
|
|
829
|
+
interface AppHarmony {
|
|
830
|
+
/**
|
|
831
|
+
* HarmonyOS 分发配置
|
|
832
|
+
*
|
|
833
|
+
* 详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-harmony-distribute> 和 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#app-harmony-distribute>
|
|
834
|
+
*/
|
|
835
|
+
distribute?: AppHarmonyDistribute;
|
|
836
|
+
/**
|
|
837
|
+
* UserAgent 配置,配置应用的 UserAgent 相关设置
|
|
838
|
+
*
|
|
839
|
+
* 详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-harmony-useragent>
|
|
840
|
+
*/
|
|
841
|
+
useragent?: AppHarmonyUserAgent;
|
|
842
|
+
/**
|
|
843
|
+
* 是否开启暗黑模式
|
|
844
|
+
*
|
|
845
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/darkmode#app-harmony>
|
|
846
|
+
*
|
|
847
|
+
* @default false
|
|
848
|
+
*/
|
|
849
|
+
darkmode?: boolean;
|
|
850
|
+
/**
|
|
851
|
+
* 主题配置文件路径
|
|
852
|
+
*
|
|
853
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/darkmode.html#app-harmony>
|
|
854
|
+
*
|
|
855
|
+
* @default "theme.json"
|
|
856
|
+
*/
|
|
857
|
+
themeLocation?: string;
|
|
858
|
+
/**
|
|
859
|
+
* 底部安全区域配置
|
|
860
|
+
*
|
|
861
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/darkmode.html#app-harmony-safearea-bottom>
|
|
862
|
+
*/
|
|
863
|
+
safearea?: AppHarmonySafearea;
|
|
864
|
+
/**
|
|
865
|
+
* 其他扩展配置
|
|
866
|
+
*
|
|
867
|
+
* 支持其他 HarmonyOS 平台特有的配置项
|
|
868
|
+
*/
|
|
869
|
+
[x: string]: any;
|
|
870
|
+
}
|
|
871
|
+
//#endregion
|
|
872
|
+
//#region src/manifest/interfaces/app-ios.d.ts
|
|
873
|
+
/**
|
|
874
|
+
* uni-app-x iOS 平台发布配置
|
|
875
|
+
*
|
|
876
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#app-ios-distribute>
|
|
877
|
+
*/
|
|
878
|
+
interface AppIosDistribute extends AppDistributeIos {
|
|
879
|
+
/**
|
|
880
|
+
* 是否为自定义调试基座
|
|
881
|
+
*
|
|
882
|
+
* @default false
|
|
883
|
+
*/
|
|
884
|
+
syncDebug?: boolean;
|
|
885
|
+
/** iOS 平台应用图标配置,云端打包后生效 */
|
|
886
|
+
icons?: AppIconsIos;
|
|
887
|
+
/** iOS 平台应用启动界面配置,云端打包后生效 */
|
|
888
|
+
splashScreens?: AppSplashScreensIos;
|
|
889
|
+
/** app 内置模块配置 */
|
|
890
|
+
modules?: AppModules;
|
|
891
|
+
[x: string]: any;
|
|
892
|
+
}
|
|
893
|
+
/**
|
|
894
|
+
* uni-app-x iOS App 平台配置
|
|
895
|
+
*
|
|
896
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#manifest-app-ios>
|
|
897
|
+
*/
|
|
898
|
+
interface AppIos {
|
|
899
|
+
/**
|
|
900
|
+
* 应用默认主题,可取值 light/dark/auto
|
|
901
|
+
*
|
|
902
|
+
* @default "light"
|
|
903
|
+
*/
|
|
904
|
+
defaultAppTheme?: 'auto' | 'light' | 'dark';
|
|
905
|
+
/**
|
|
906
|
+
* iOS 平台发布配置
|
|
907
|
+
*
|
|
908
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#app-ios-distribute>
|
|
909
|
+
*/
|
|
910
|
+
distribute?: AppIosDistribute;
|
|
911
|
+
/**
|
|
912
|
+
* 隐私协议初始状态,可取值 auto/agree/disagree
|
|
913
|
+
*
|
|
914
|
+
* @default "auto"
|
|
915
|
+
*/
|
|
916
|
+
initPrivacyAuthorization?: 'auto' | 'agree' | 'disagree';
|
|
917
|
+
[x: string]: any;
|
|
918
|
+
}
|
|
919
|
+
//#endregion
|
|
920
|
+
//#region src/manifest/interfaces/uni-statistics.d.ts
|
|
921
|
+
interface UniStatistics {
|
|
922
|
+
/**
|
|
923
|
+
* 是否开启 uni 统计
|
|
924
|
+
*
|
|
925
|
+
* @default false
|
|
926
|
+
*/
|
|
927
|
+
enable?: boolean;
|
|
928
|
+
/**
|
|
929
|
+
* uni 统计版本
|
|
930
|
+
*
|
|
931
|
+
* @default "1"
|
|
932
|
+
*/
|
|
933
|
+
version?: '1' | '2';
|
|
934
|
+
/**
|
|
935
|
+
* 是否开启统计调试模式
|
|
936
|
+
*
|
|
937
|
+
* 开启后会产生大量日志,在开发阶段上报数据,应用发布请关闭此项
|
|
938
|
+
*
|
|
939
|
+
* @default false
|
|
940
|
+
*/
|
|
941
|
+
debug?: boolean;
|
|
942
|
+
/**
|
|
943
|
+
* 前端数据上报周期
|
|
944
|
+
*
|
|
945
|
+
* @since HBuilderX 3.5.4+
|
|
946
|
+
*
|
|
947
|
+
* @default 10
|
|
948
|
+
*/
|
|
949
|
+
reportInterval?: number;
|
|
950
|
+
/**
|
|
951
|
+
* 采集项配置
|
|
952
|
+
*
|
|
953
|
+
* @since HBuilderX 3.5.5+
|
|
954
|
+
*/
|
|
955
|
+
collectItems?: {
|
|
956
|
+
/**
|
|
957
|
+
* 是否开启推送 `PushClientID` 的采集
|
|
958
|
+
*
|
|
959
|
+
* @default false
|
|
960
|
+
*/
|
|
961
|
+
uniPushClientID?: boolean;
|
|
962
|
+
/**
|
|
963
|
+
* 是否开启页面数据采集
|
|
964
|
+
*
|
|
965
|
+
* @default true
|
|
966
|
+
*/
|
|
967
|
+
uniStatPageLog?: boolean;
|
|
968
|
+
[x: string]: any;
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
interface PlatformUniStatistics {
|
|
972
|
+
/**
|
|
973
|
+
* 是否开启 uni 统计
|
|
974
|
+
*
|
|
975
|
+
* @default false
|
|
976
|
+
*/
|
|
977
|
+
enable?: boolean;
|
|
978
|
+
}
|
|
979
|
+
//#endregion
|
|
980
|
+
//#region src/manifest/interfaces/app-plus.d.ts
|
|
981
|
+
/**
|
|
982
|
+
* 重力感应、横竖屏方向
|
|
983
|
+
*
|
|
984
|
+
* "portrait-primary" 竖屏正方向
|
|
985
|
+
*
|
|
986
|
+
* "portrait-secondary" 竖屏反方向
|
|
987
|
+
*
|
|
988
|
+
* "landscape-primary" 横屏正方向
|
|
989
|
+
*
|
|
990
|
+
* "landscape-secondary" 横屏反方向
|
|
991
|
+
*/
|
|
992
|
+
type AppPlusScreenOrientation = 'portrait-primary' | 'portrait-secondary' | 'landscape-primary' | 'landscape-secondary';
|
|
993
|
+
/**
|
|
994
|
+
* App 平台 UserAgent 相关配置
|
|
995
|
+
*/
|
|
996
|
+
interface AppPlusUserAgent {
|
|
997
|
+
/** 设置的默认 UserAgent 值 */
|
|
998
|
+
value?: string;
|
|
999
|
+
/**
|
|
1000
|
+
* 是否将 value 值作为追加值连接到系统默认 UserAgent 值之后
|
|
1001
|
+
*
|
|
1002
|
+
* @default false
|
|
1003
|
+
*/
|
|
1004
|
+
concatenate?: boolean;
|
|
1005
|
+
[x: string]: any;
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* App 平台权限申请策略配置
|
|
1009
|
+
*/
|
|
1010
|
+
interface AppPlusPermissionPrompt {
|
|
1011
|
+
/**
|
|
1012
|
+
* 权限申请策略
|
|
1013
|
+
*
|
|
1014
|
+
* "none" 启动时不申请
|
|
1015
|
+
*
|
|
1016
|
+
* "once" 第一次启动时申请,用户可以拒绝
|
|
1017
|
+
*
|
|
1018
|
+
* "always" 每次启动都申请,用户必须允许,用户拒绝时弹出提示框引导用户重新允许
|
|
1019
|
+
*/
|
|
1020
|
+
request?: 'none' | 'once' | 'always';
|
|
1021
|
+
/**
|
|
1022
|
+
* 用户拒绝时弹出提示框上的内容,国际化配置参考 <https://ask.dcloud.net.cn/article/35860#strings>
|
|
1023
|
+
*/
|
|
1024
|
+
prompt?: string;
|
|
1025
|
+
[x: string]: any;
|
|
1026
|
+
}
|
|
1027
|
+
interface AppPlus {
|
|
1028
|
+
/**
|
|
1029
|
+
* 编译器兼容性配置,详见 <https://ask.dcloud.net.cn/article/35627>
|
|
1030
|
+
*/
|
|
1031
|
+
compatible?: {
|
|
1032
|
+
/**
|
|
1033
|
+
* 是否忽略运行环境与编译环境不一致的问题
|
|
1034
|
+
*
|
|
1035
|
+
* @default false
|
|
1036
|
+
*/
|
|
1037
|
+
ignoreVersion?: boolean;
|
|
1038
|
+
/**
|
|
1039
|
+
* 应用兼容的 uni-app 运行环境版本号,可以配置多个版本号,使用英文字符 `,` 分隔
|
|
1040
|
+
*/
|
|
1041
|
+
runtimeVersion?: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* 编译环境版本号,通常配置为当前 HBuilderX 的版本号或 cli 编译器版本,不可以配置多个
|
|
1044
|
+
*/
|
|
1045
|
+
compilerVersion?: string;
|
|
1046
|
+
[x: string]: any;
|
|
1047
|
+
};
|
|
1048
|
+
/**
|
|
1049
|
+
* 编译器版本,详见 <https://ask.dcloud.net.cn/article/36599>
|
|
1050
|
+
*
|
|
1051
|
+
* @default 2
|
|
1052
|
+
*/
|
|
1053
|
+
compilerVersion?: 2 | 3;
|
|
1054
|
+
/**
|
|
1055
|
+
* APP 启动界面信息,详见 <https://uniapp.dcloud.net.cn/tutorial/app-splashscreen.html>
|
|
1056
|
+
*/
|
|
1057
|
+
splashscreen?: {
|
|
1058
|
+
/**
|
|
1059
|
+
* 是否等待首页渲染完毕后再关闭启动界面
|
|
1060
|
+
*
|
|
1061
|
+
* @default true
|
|
1062
|
+
*/
|
|
1063
|
+
alwaysShowBeforeRender?: boolean;
|
|
1064
|
+
/**
|
|
1065
|
+
* 是否自动关闭启动界面,仅当 alwaysShowBeforeRender 为 false 时生效
|
|
1066
|
+
*
|
|
1067
|
+
* 如需要手动关闭启动界面,需设置 alwaysShowBeforeRender 和 autoclose 为 false
|
|
1068
|
+
*
|
|
1069
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-splashscreen.html>
|
|
1070
|
+
*
|
|
1071
|
+
* @default true
|
|
1072
|
+
*/
|
|
1073
|
+
autoclose?: boolean;
|
|
1074
|
+
/**
|
|
1075
|
+
* 是否在程序启动界面显示等待圈或雪花
|
|
1076
|
+
*
|
|
1077
|
+
* @default true
|
|
1078
|
+
*/
|
|
1079
|
+
waiting?: boolean;
|
|
1080
|
+
/**
|
|
1081
|
+
* 不明属性
|
|
1082
|
+
*
|
|
1083
|
+
* @deprecated
|
|
1084
|
+
*
|
|
1085
|
+
* @default "loaded"
|
|
1086
|
+
*/
|
|
1087
|
+
event?: 'titleUpdate' | 'rendering' | 'loaded';
|
|
1088
|
+
/**
|
|
1089
|
+
* 不明属性
|
|
1090
|
+
*
|
|
1091
|
+
* @deprecated
|
|
1092
|
+
*
|
|
1093
|
+
* @default "default"
|
|
1094
|
+
*/
|
|
1095
|
+
target?: 'default' | 'second';
|
|
1096
|
+
/**
|
|
1097
|
+
* 延迟自动关闭启动时间,单位为 ms
|
|
1098
|
+
*
|
|
1099
|
+
* @deprecated
|
|
1100
|
+
*/
|
|
1101
|
+
delay?: number;
|
|
1102
|
+
/** 开屏广告配置 */
|
|
1103
|
+
ads?: {
|
|
1104
|
+
/**
|
|
1105
|
+
* 开屏广告背景颜色,支持 HEX 颜色
|
|
1106
|
+
*
|
|
1107
|
+
* @format color
|
|
1108
|
+
*/
|
|
1109
|
+
background?: HEXColor;
|
|
1110
|
+
/**
|
|
1111
|
+
* 底部图片地址,相对应用资源目录路径
|
|
1112
|
+
*/
|
|
1113
|
+
image?: string;
|
|
1114
|
+
[x: string]: any;
|
|
1115
|
+
};
|
|
1116
|
+
/**
|
|
1117
|
+
* 使用“自定义启动图”启动界面时是否显示透明过渡界面,可解决点击桌面图标延时启动应用的效果
|
|
1118
|
+
*
|
|
1119
|
+
* @default false
|
|
1120
|
+
*/
|
|
1121
|
+
androidTranslucent?: boolean;
|
|
1122
|
+
[x: string]: any;
|
|
1123
|
+
};
|
|
1124
|
+
/** 重力感应、横竖屏配置 */
|
|
1125
|
+
screenOrientation?: AppPlusScreenOrientation[];
|
|
1126
|
+
/**
|
|
1127
|
+
* APP 权限模块,仅云打包生效,本地打包需自行在原生工程中配置
|
|
1128
|
+
*
|
|
1129
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-modules.html>
|
|
1130
|
+
*/
|
|
1131
|
+
modules?: {
|
|
1132
|
+
/** 扫码 */
|
|
1133
|
+
'Barcode'?: Record<string, any>;
|
|
1134
|
+
/** 低功耗蓝牙 */
|
|
1135
|
+
'Bluetooth'?: Record<string, any>;
|
|
1136
|
+
/** 相机和相册 */
|
|
1137
|
+
'Camera'?: Record<string, any>;
|
|
1138
|
+
/** 系统通讯录 */
|
|
1139
|
+
'Contacts'?: Record<string, any>;
|
|
1140
|
+
/** 人脸识别,仅 iOS 支持 */
|
|
1141
|
+
'FaceId'?: Record<string, any>;
|
|
1142
|
+
/** 实人认证 */
|
|
1143
|
+
'FacialRecognitionVerify'?: Record<string, any>;
|
|
1144
|
+
/** 指纹识别 */
|
|
1145
|
+
'Fingerprint'?: Record<string, any>;
|
|
1146
|
+
/**
|
|
1147
|
+
* 定位,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1148
|
+
*
|
|
1149
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-geolocation.html>
|
|
1150
|
+
*/
|
|
1151
|
+
'Geolocation'?: Record<string, any>;
|
|
1152
|
+
'iBeacon'?: Record<string, any>;
|
|
1153
|
+
/** 直播推流 */
|
|
1154
|
+
'LivePusher'?: Record<string, any>;
|
|
1155
|
+
/**
|
|
1156
|
+
* 地图,只能选一个,部分国产 Android 手机获取位置必须申请定位服务商的SDK
|
|
1157
|
+
*
|
|
1158
|
+
* 依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1159
|
+
*
|
|
1160
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-maps.html>
|
|
1161
|
+
*/
|
|
1162
|
+
'Maps'?: Record<string, any>;
|
|
1163
|
+
/** 短彩邮件消息 */
|
|
1164
|
+
'Messaging'?: Record<string, any>;
|
|
1165
|
+
/**
|
|
1166
|
+
* 登录鉴权,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1167
|
+
*
|
|
1168
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-oauth.html>
|
|
1169
|
+
*/
|
|
1170
|
+
'OAuth'?: Record<string, any>;
|
|
1171
|
+
/**
|
|
1172
|
+
* 支付,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1173
|
+
*
|
|
1174
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-payment.html>
|
|
1175
|
+
*/
|
|
1176
|
+
'Payment'?: Record<string, any>;
|
|
1177
|
+
/**
|
|
1178
|
+
* 消息推送
|
|
1179
|
+
*
|
|
1180
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-push.html> 和 <https://uniapp.dcloud.net.cn/tutorial/app-push-unipush.html>
|
|
1181
|
+
*/
|
|
1182
|
+
'Push'?: Record<string, any>;
|
|
1183
|
+
/** 录音 */
|
|
1184
|
+
'Record'?: Record<string, any>;
|
|
1185
|
+
/** uni 云端一体安全网络 */
|
|
1186
|
+
'SecureNetwork'?: Record<string, any>;
|
|
1187
|
+
/**
|
|
1188
|
+
* 分享,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1189
|
+
*
|
|
1190
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-share.html>
|
|
1191
|
+
*/
|
|
1192
|
+
'Share'?: Record<string, any>;
|
|
1193
|
+
/**
|
|
1194
|
+
* 语音输入
|
|
1195
|
+
*
|
|
1196
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-speech.html>
|
|
1197
|
+
*/
|
|
1198
|
+
'Speech'?: Record<string, any>;
|
|
1199
|
+
/**
|
|
1200
|
+
* 统计,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1201
|
+
*
|
|
1202
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-statistic.html>
|
|
1203
|
+
*/
|
|
1204
|
+
'Statistic'?: Record<string, any>;
|
|
1205
|
+
/** SQLite 数据库 */
|
|
1206
|
+
'SQLite'?: Record<string, any>;
|
|
1207
|
+
/** 视频播放 */
|
|
1208
|
+
'VideoPlayer'?: Record<string, any>;
|
|
1209
|
+
/**
|
|
1210
|
+
* Android X5 Webview,依赖腾讯 TBS SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1211
|
+
*
|
|
1212
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-android-x5.html>
|
|
1213
|
+
*/
|
|
1214
|
+
'Webview-x5'?: Record<string, any>;
|
|
1215
|
+
/**
|
|
1216
|
+
* iOS UIWebview
|
|
1217
|
+
*
|
|
1218
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-ios-uiwebview.html>
|
|
1219
|
+
*/
|
|
1220
|
+
'UIWebview'?: Record<string, any>;
|
|
1221
|
+
[x: string]: any;
|
|
1222
|
+
};
|
|
1223
|
+
/** APP 云端打包配置 */
|
|
1224
|
+
distribute?: {
|
|
1225
|
+
/** Android 平台云端打包配置 */
|
|
1226
|
+
android?: {
|
|
1227
|
+
/** Android 平台云端打包包名 */
|
|
1228
|
+
packagename?: string;
|
|
1229
|
+
/** Android 签名证书文件路径 */
|
|
1230
|
+
keystore?: string;
|
|
1231
|
+
/** Android 签名证书文件密码 */
|
|
1232
|
+
password?: string;
|
|
1233
|
+
/** Android 签名证书别名 */
|
|
1234
|
+
aliasname?: string;
|
|
1235
|
+
/**
|
|
1236
|
+
* Android 平台 APP 注册的 scheme,多个 scheme 使用 `,` 分隔,详见 <https://uniapp.dcloud.net.cn/tutorial/app-android-schemes>
|
|
1237
|
+
*/
|
|
1238
|
+
schemes?: string;
|
|
1239
|
+
/**
|
|
1240
|
+
* Android 平台 APP 支持的 CPU 类型,详见 <https://uniapp.dcloud.net.cn/tutorial/app-android-abifilters>
|
|
1241
|
+
*/
|
|
1242
|
+
abiFilters?: ('armeabi-v7a' | 'arm64-v8a' | 'x86' | 'x86_64')[];
|
|
1243
|
+
/**
|
|
1244
|
+
* Android 平台 APP 使用的权限,详见 <https://uniapp.dcloud.net.cn/tutorial/app-permission-android.html> 和 <https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html>
|
|
1245
|
+
*/
|
|
1246
|
+
permissions?: AndroidPermissionOrFeature[];
|
|
1247
|
+
/**
|
|
1248
|
+
* Android 平台 APP 不使用的权限,详见 <https://uniapp.dcloud.net.cn/tutorial/app-permission-android.html> 和 <https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html>
|
|
1249
|
+
*/
|
|
1250
|
+
excludePermissions?: AndroidPermissionOrFeature[];
|
|
1251
|
+
/**
|
|
1252
|
+
* 是否自定义 Android 权限配置
|
|
1253
|
+
*/
|
|
1254
|
+
custompermissions?: boolean;
|
|
1255
|
+
/** Android 平台 APP 启动时申请读写手机存储权限策略配置,详见 <https://ask.dcloud.net.cn/article/36549> */
|
|
1256
|
+
permissionExternalStorage?: AppPlusPermissionPrompt;
|
|
1257
|
+
/**
|
|
1258
|
+
* Android 平台 APP 启动时申请读取设备信息权限配置,详见 <https://ask.dcloud.net.cn/article/36549>
|
|
1259
|
+
*/
|
|
1260
|
+
permissionPhoneState?: AppPlusPermissionPrompt;
|
|
1261
|
+
/**
|
|
1262
|
+
* Android 平台最低支持版本,详见 <https://uniapp.dcloud.net.cn/tutorial/app-android-minsdkversion>
|
|
1263
|
+
*/
|
|
1264
|
+
minSdkVersion?: number;
|
|
1265
|
+
/**
|
|
1266
|
+
* Android 平台目标版本,详见 <https://uniapp.dcloud.net.cn/tutorial/app-android-targetsdkversion>
|
|
1267
|
+
*/
|
|
1268
|
+
targetSdkVersion?: number;
|
|
1269
|
+
/**
|
|
1270
|
+
* Android 平台云端打包时 build.gradle 的 packagingOptions 配置项
|
|
1271
|
+
*
|
|
1272
|
+
* @example ["doNotStrip '/armeabi-v7a/.so'"]
|
|
1273
|
+
*/
|
|
1274
|
+
packagingOptions?: string[];
|
|
1275
|
+
/**
|
|
1276
|
+
* uni-app 使用的 JS 引擎
|
|
1277
|
+
*
|
|
1278
|
+
* @deprecated
|
|
1279
|
+
*/
|
|
1280
|
+
jsEngine?: 'v8' | 'jsc';
|
|
1281
|
+
/**
|
|
1282
|
+
* 是否开启 Android 调试开关
|
|
1283
|
+
*
|
|
1284
|
+
* @default false
|
|
1285
|
+
*/
|
|
1286
|
+
debuggable?: boolean;
|
|
1287
|
+
/**
|
|
1288
|
+
* 应用的默认语言
|
|
1289
|
+
*/
|
|
1290
|
+
locale?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* 是否强制允许暗黑模式
|
|
1293
|
+
*
|
|
1294
|
+
* @default false
|
|
1295
|
+
*/
|
|
1296
|
+
forceDarkAllowed?: boolean;
|
|
1297
|
+
/**
|
|
1298
|
+
* 是否支持分屏调整窗口大小
|
|
1299
|
+
*
|
|
1300
|
+
* @default false
|
|
1301
|
+
*/
|
|
1302
|
+
resizeableActivity?: boolean;
|
|
1303
|
+
/**
|
|
1304
|
+
* 是否设置 android: taskAffinity,详见 <https://uniapp.dcloud.net.cn/tutorial/app-sec-android.html#strandhogg%E6%BC%8F%E6%B4%9E>
|
|
1305
|
+
*
|
|
1306
|
+
* @default false
|
|
1307
|
+
*/
|
|
1308
|
+
hasTaskAffinity?: boolean;
|
|
1309
|
+
/**
|
|
1310
|
+
* Android 平台云端打包时 build.gradle 的 buildFeatures 配置项,详见 <https://uniapp.dcloud.net.cn/collocation/manifest-app.html#buildfeatures>
|
|
1311
|
+
*/
|
|
1312
|
+
buildFeatures?: {
|
|
1313
|
+
/**
|
|
1314
|
+
* 是否设置 dataBinding
|
|
1315
|
+
*
|
|
1316
|
+
* @default false
|
|
1317
|
+
*/
|
|
1318
|
+
dataBinding?: boolean;
|
|
1319
|
+
/**
|
|
1320
|
+
* 是否设置 viewBinding
|
|
1321
|
+
*
|
|
1322
|
+
* @default false
|
|
1323
|
+
*/
|
|
1324
|
+
viewBinding?: boolean;
|
|
1325
|
+
[x: string]: any;
|
|
1326
|
+
};
|
|
1327
|
+
/**
|
|
1328
|
+
* 延迟初始化 uni-push 的配置,当配置此项值为 manual 后 uni-push 不会初始化,直到首次调用 getPushClientId、getClientInfo、getClientInfoAsync 时才会初始化
|
|
1329
|
+
*
|
|
1330
|
+
* 调用获取 cid 的方法后,下次 APP 启动不再延迟初始化 uni-push
|
|
1331
|
+
*/
|
|
1332
|
+
pushRegisterMode?: 'manual';
|
|
1333
|
+
/**
|
|
1334
|
+
* 是否支持获取 OAID(匿名设备标识符),详见 <https://uniapp.dcloud.net.cn/collocation/manifest-app.html#enableoaid>
|
|
1335
|
+
*
|
|
1336
|
+
* @default true
|
|
1337
|
+
*/
|
|
1338
|
+
enableOAID?: boolean;
|
|
1339
|
+
[x: string]: any;
|
|
1340
|
+
};
|
|
1341
|
+
/** iOS 平台云端打包配置 */
|
|
1342
|
+
ios?: {
|
|
1343
|
+
/** iOS 平台云端打包使用的 Bundle ID */
|
|
1344
|
+
appid?: string;
|
|
1345
|
+
/** iOS 平台云端打包使用的 profile 文件路径 */
|
|
1346
|
+
mobileprovision?: string;
|
|
1347
|
+
/** iOS 平台云端打包使用的证书文件路径 */
|
|
1348
|
+
p12?: string;
|
|
1349
|
+
/** iOS 打包使用的证书密码 */
|
|
1350
|
+
password?: string;
|
|
1351
|
+
/**
|
|
1352
|
+
* iOS 支持的设备类型
|
|
1353
|
+
*
|
|
1354
|
+
* "iphone" 仅支持 iPhone 设备
|
|
1355
|
+
*
|
|
1356
|
+
* "ipad" 仅支持 iPad 设备
|
|
1357
|
+
*
|
|
1358
|
+
* "universal" 同时支持 iPhone 和 iPad 设备
|
|
1359
|
+
*/
|
|
1360
|
+
devices?: 'iphone' | 'ipad' | 'universal';
|
|
1361
|
+
/** 应用访问白名单列表,多个白名单使用 `,` 分隔,详见 <https://uniapp.dcloud.net.cn/tutorial/app-ios-schemewhitelist> */
|
|
1362
|
+
urlschemewhitelist?: string;
|
|
1363
|
+
/** iOS 平台 APP 注册的 scheme,多个 scheme 使用 `,` 分隔,详见 <https://uniapp.dcloud.net.cn/tutorial/app-ios-schemes> */
|
|
1364
|
+
urltypes?: string;
|
|
1365
|
+
/**
|
|
1366
|
+
* 应用后台运行模式,详见 <https://uniapp.dcloud.net.cn/tutorial/app-ios-uibackgroundmodes.html> 和 <https://developer.apple.com/documentation/bundleresources/information-property-list/uibackgroundmodes>
|
|
1367
|
+
*
|
|
1368
|
+
* "audio" 后台播放音乐
|
|
1369
|
+
*
|
|
1370
|
+
* "location" 后台定位
|
|
1371
|
+
*/
|
|
1372
|
+
UIBackgroundModes?: MaybeArray<'audio' | 'bluetooth-central' | 'bluetooth-peripheral' | 'external-accessory' | 'fetch' | 'location' | 'nearby-interaction' | 'network-authentication' | 'newsstand-content' | 'processing' | 'push-to-talk' | 'remote-notification' | 'voip'> | (string & {});
|
|
1373
|
+
/**
|
|
1374
|
+
* 依赖的系统库,推荐使用 uni 原生插件扩展使用系统依赖库
|
|
1375
|
+
*
|
|
1376
|
+
* @deprecated
|
|
1377
|
+
*/
|
|
1378
|
+
frameworks?: string[];
|
|
1379
|
+
/** iOS 支持的最低版本 */
|
|
1380
|
+
deploymentTarget?: string;
|
|
1381
|
+
/** iOS 隐私信息访问的许可描述 */
|
|
1382
|
+
privacyDescription?: {
|
|
1383
|
+
/** 相册读取权限描述 */
|
|
1384
|
+
NSPhotoLibraryUsageDescription?: string;
|
|
1385
|
+
/** 相册写入权限描述 */
|
|
1386
|
+
NSPhotoLibraryAddUsageDescription?: string;
|
|
1387
|
+
/** 摄像头使用权限描述 */
|
|
1388
|
+
NSCameraUsageDescription?: string;
|
|
1389
|
+
/** 麦克风使用权限描述 */
|
|
1390
|
+
NSMicrophoneUsageDescription?: string;
|
|
1391
|
+
/** 运行期访问位置权限描述 */
|
|
1392
|
+
NSLocationWhenInUseUsageDescription?: string;
|
|
1393
|
+
/** 后台运行访问位置权限描述 */
|
|
1394
|
+
NSLocationAlwaysUsageDescription?: string;
|
|
1395
|
+
/** 运行期后后台访问位置权限描述 */
|
|
1396
|
+
NSLocationAlwaysAndWhenInUseUsageDescription?: string;
|
|
1397
|
+
/** 使用日历权限描述 */
|
|
1398
|
+
NSCalendarsUsageDescription?: string;
|
|
1399
|
+
/** 使用通讯录权限描述 */
|
|
1400
|
+
NSContactsUsageDescription?: string;
|
|
1401
|
+
/** 使用蓝牙权限描述 */
|
|
1402
|
+
NSBluetoothPeripheralUsageDescription?: string;
|
|
1403
|
+
/** 后台使用蓝牙权限描述 */
|
|
1404
|
+
NSBluetoothAlwaysUsageDescription?: string;
|
|
1405
|
+
/** 系统语音识别权限描述 */
|
|
1406
|
+
NSSpeechRecognitionUsageDescription?: string;
|
|
1407
|
+
/** 系统提醒事项权限描述 */
|
|
1408
|
+
NSRemindersUsageDescription?: string;
|
|
1409
|
+
/** 使用运动与健康权限描述 */
|
|
1410
|
+
NSMotionUsageDescription?: string;
|
|
1411
|
+
/** 使用健康更新权限描述 */
|
|
1412
|
+
NSHealthUpdateUsageDescription?: string;
|
|
1413
|
+
/** 使用健康分享权限描述 */
|
|
1414
|
+
NSHealthShareUsageDescription?: string;
|
|
1415
|
+
/** 使用媒体资料库权限描述 */
|
|
1416
|
+
NSAppleMusicUsageDescription?: string;
|
|
1417
|
+
/** 使用 NFC 权限描述 */
|
|
1418
|
+
NFCReaderUsageDescription?: string;
|
|
1419
|
+
/** 访问临床记录权限描述 */
|
|
1420
|
+
NSHealthClinicalHealthRecordsShareUsageDescription?: string;
|
|
1421
|
+
/** 访问 HomeKit 权限描述 */
|
|
1422
|
+
NSHomeKitUsageDescription?: string;
|
|
1423
|
+
/** 访问 Siri 权限描述 */
|
|
1424
|
+
NSSiriUsageDescription?: string;
|
|
1425
|
+
/** 使用 FaceID 权限描述 */
|
|
1426
|
+
NSFaceIDUsageDescription?: string;
|
|
1427
|
+
/** 访问本地网络权限描述 */
|
|
1428
|
+
NSLocalNetworkUsageDescription?: string;
|
|
1429
|
+
/** 跟踪用户活动权限描述 */
|
|
1430
|
+
NSUserTrackingUsageDescription?: string;
|
|
1431
|
+
[x: string]: any;
|
|
1432
|
+
};
|
|
1433
|
+
/**
|
|
1434
|
+
* 是否使用广告标识
|
|
1435
|
+
*
|
|
1436
|
+
* @default true
|
|
1437
|
+
*/
|
|
1438
|
+
idfa?: boolean;
|
|
1439
|
+
/** 应用的能力配置(Capabilities),根据 XCode 规范分别配置到 entitlements 和 plist 文件中 */
|
|
1440
|
+
capabilities?: {
|
|
1441
|
+
/** 合并到工程 entitlements 文件的数据,json 格式 */
|
|
1442
|
+
entitlements?: Record<string, any>;
|
|
1443
|
+
/** 合并到工程 Info.plist 文件的数据,json 格式 */
|
|
1444
|
+
plists?: Record<string, any>;
|
|
1445
|
+
};
|
|
1446
|
+
/**
|
|
1447
|
+
* 应用的CFBundleName名称
|
|
1448
|
+
*
|
|
1449
|
+
* @default "HBuilder"
|
|
1450
|
+
*/
|
|
1451
|
+
CFBundleName?: string;
|
|
1452
|
+
/** 编译时支持的 CPU 指令 */
|
|
1453
|
+
validArchitectures?: ('arm64' | 'arm64e' | 'armv7' | 'armv7s' | 'x86_64')[];
|
|
1454
|
+
/**
|
|
1455
|
+
* 使用 Push(消息推送)模块时申请系统推送权限模式
|
|
1456
|
+
*
|
|
1457
|
+
* "manual" 调用 push 相关 API 时申请
|
|
1458
|
+
*
|
|
1459
|
+
* 其它 应用启动时自动申请
|
|
1460
|
+
*/
|
|
1461
|
+
pushRegisterMode?: 'manual' | string;
|
|
1462
|
+
/**
|
|
1463
|
+
* "manual" 用户同意隐私政策后才获取相关隐私信息
|
|
1464
|
+
*
|
|
1465
|
+
* 其它 应用启动时自动获取
|
|
1466
|
+
*
|
|
1467
|
+
* 详见 <https://uniapp.dcloud.net.cn/collocation/manifest#privacyRegisterMode>
|
|
1468
|
+
*/
|
|
1469
|
+
privacyRegisterMode?: 'manual' | string;
|
|
1470
|
+
[x: string]: any;
|
|
1471
|
+
};
|
|
1472
|
+
/**
|
|
1473
|
+
* APP 图标配置,详见 <https://uniapp.dcloud.net.cn/tutorial/app-icons.html>
|
|
1474
|
+
*
|
|
1475
|
+
* 注意事项:
|
|
1476
|
+
*
|
|
1477
|
+
* - 必须使用 PNG 格式,其它格式需要使用图片工具转换,不要直接将 PNG 等其它格式直接改为 PNG
|
|
1478
|
+
* - Android 系统没有对图标分辨率进行限制,按照建议的分辨率配置即可
|
|
1479
|
+
* - Android 图片支持透明区域,建议使用圆角图标
|
|
1480
|
+
* - iOS 图标必须是直角,不要使用圆角图标,否则不过审
|
|
1481
|
+
* - iOS 打包提交 App Store 时,必须配置分辨率 1024x1024 AppStore 图标,云端打包机默认使用纯白色图标
|
|
1482
|
+
* - iOS 所有图标不要包含透明信息(alpha 通道),否则提交 AppStore 会报错
|
|
1483
|
+
*/
|
|
1484
|
+
icons?: {
|
|
1485
|
+
/**
|
|
1486
|
+
* iOS 平台图标配置,详见 <https://uniapp.dcloud.net.cn/tutorial/app-icons.html#ios%E5%B9%B3%E5%8F%B0>
|
|
1487
|
+
*
|
|
1488
|
+
* 注意事项:
|
|
1489
|
+
*
|
|
1490
|
+
* - 必须使用 PNG 格式,其它格式需要使用图片工具转换,不要直接将 PNG 等其它格式直接改为 PNG
|
|
1491
|
+
* - 图标必须是直角,不要使用圆角图标,否则不过审
|
|
1492
|
+
* - 打包提交 App Store 时,必须配置分辨率 1024x1024 AppStore 图标,云端打包机默认使用纯白色图标
|
|
1493
|
+
* - 所有图标不要包含透明信息(alpha 通道),否则提交 AppStore 会报错
|
|
1494
|
+
*/
|
|
1495
|
+
ios?: {
|
|
1496
|
+
/** App Store 图标路径,分辨率 1024x1024 */
|
|
1497
|
+
appstore?: PNG;
|
|
1498
|
+
/** iPhone 设备程序图标 */
|
|
1499
|
+
iphone?: {
|
|
1500
|
+
/** iOS7+ 设备程序主图标,分辨率 120x120 */
|
|
1501
|
+
'app@2x': PNG;
|
|
1502
|
+
/** iOS7+ 设备程序主图标,分辨率 180x180 */
|
|
1503
|
+
'app@3x': PNG;
|
|
1504
|
+
/** iOS7+ 设备 Spotlight 搜索图标,分辨率 80x80 */
|
|
1505
|
+
'spotlight@2x': PNG;
|
|
1506
|
+
/** iOS7+ 设备 Spotlight 搜索图标,分辨率 120x120 */
|
|
1507
|
+
'spotlight@3x': PNG;
|
|
1508
|
+
/** iOS7+ 设备 Settings 设置图标,分辨率 58x58 */
|
|
1509
|
+
'settings@2x': PNG;
|
|
1510
|
+
/** iOS7+ 设备 Settings 设置图标,分辨率 87x87 */
|
|
1511
|
+
'settings@3x': PNG;
|
|
1512
|
+
/** iOS7+ 设备通知栏图标,分辨率 40x40 */
|
|
1513
|
+
'notification@2x': PNG;
|
|
1514
|
+
/** iOS7+ 设备通知栏图标,分辨率 60x60 */
|
|
1515
|
+
'notification@3x': PNG;
|
|
1516
|
+
[x: string]: any;
|
|
1517
|
+
};
|
|
1518
|
+
/** iPad 设备程序图标 */
|
|
1519
|
+
ipad?: {
|
|
1520
|
+
/** iOS7+ 设备程序主图标,分辨率 76x76 */
|
|
1521
|
+
'app'?: PNG;
|
|
1522
|
+
/** iOS7+ 设备程序主图标,分辨率 152x152 */
|
|
1523
|
+
'app@2x'?: PNG;
|
|
1524
|
+
/** iOS9+ iPad Pro(12.9英寸)设备程序主图标,分辨率 167x167 */
|
|
1525
|
+
'proapp@2x'?: PNG;
|
|
1526
|
+
/** iOS7+ 设备 Spotlight 搜索图标,分辨率 40x40 */
|
|
1527
|
+
'spotlight'?: PNG;
|
|
1528
|
+
/** iOS7+ 高分屏设备 Spotlight 搜索图标,分辨率 80x80 */
|
|
1529
|
+
'spotlight@2x'?: PNG;
|
|
1530
|
+
/** iOS5+ 设备 Settings 设置图标,分辨率 29x29 */
|
|
1531
|
+
'settings'?: PNG;
|
|
1532
|
+
/** iOS5+ 高分屏设备 Settings 设置图标,分辨率 58x58 */
|
|
1533
|
+
'settings@2x'?: PNG;
|
|
1534
|
+
/** iOS7+ 设备通知栏图标,分辨率 20x20 */
|
|
1535
|
+
'notification'?: PNG;
|
|
1536
|
+
/** iOS7+ 高分屏设备通知栏图标,分辨率 40x40 */
|
|
1537
|
+
'notification@2x'?: PNG;
|
|
1538
|
+
[x: string]: any;
|
|
1539
|
+
};
|
|
1540
|
+
[x: string]: any;
|
|
1541
|
+
};
|
|
1542
|
+
/**
|
|
1543
|
+
* Android 平台图标配置,详见 <https://uniapp.dcloud.net.cn/tutorial/app-icons.html#android%E5%B9%B3%E5%8F%B0>
|
|
1544
|
+
*
|
|
1545
|
+
* 注意事项:
|
|
1546
|
+
*
|
|
1547
|
+
* - 必须使用 PNG 格式,其它格式需要使用图片工具转换,不要直接将 PNG 等其它格式直接改为 PNG
|
|
1548
|
+
* - 系统没有对图标分辨率进行限制,按照建议的分辨率配置即可
|
|
1549
|
+
* - 图片支持透明区域,建议使用圆角图标
|
|
1550
|
+
*/
|
|
1551
|
+
android?: {
|
|
1552
|
+
/**
|
|
1553
|
+
* 普通屏设备程序图标,分辨率 48x48
|
|
1554
|
+
*
|
|
1555
|
+
* @deprecated
|
|
1556
|
+
*/
|
|
1557
|
+
ldpi?: PNG;
|
|
1558
|
+
/**
|
|
1559
|
+
* 大屏设备程序图标,分辨率 48x48
|
|
1560
|
+
*
|
|
1561
|
+
* @deprecated
|
|
1562
|
+
*/
|
|
1563
|
+
mdpi?: PNG;
|
|
1564
|
+
/** 高分屏设备程序图标,分辨率 72x72 */
|
|
1565
|
+
hdpi?: PNG;
|
|
1566
|
+
/** 720P 高分屏设备程序图标,分辨率 96x96 */
|
|
1567
|
+
xhdpi?: PNG;
|
|
1568
|
+
/** 1080P 高分屏设备程序图标,分辨率 144x144 */
|
|
1569
|
+
xxhdpi?: PNG;
|
|
1570
|
+
/** 2K 屏设备程序图标,分辨率 192x192 */
|
|
1571
|
+
xxxhdpi?: PNG;
|
|
1572
|
+
[x: string]: any;
|
|
1573
|
+
};
|
|
1574
|
+
};
|
|
1575
|
+
/**
|
|
1576
|
+
* SDK 配置,仅打包生效
|
|
1577
|
+
*/
|
|
1578
|
+
sdkConfigs?: {
|
|
1579
|
+
/**
|
|
1580
|
+
* 定位,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1581
|
+
*
|
|
1582
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-geolocation.html>
|
|
1583
|
+
*/
|
|
1584
|
+
geolocation?: {
|
|
1585
|
+
/** 系统定位,由手机厂商提供定位服务,无需商业授权 */
|
|
1586
|
+
system?: {
|
|
1587
|
+
/** 支持平台,至少选一个 */
|
|
1588
|
+
__platform__?: ('ios' | 'android')[];
|
|
1589
|
+
[x: string]: any;
|
|
1590
|
+
};
|
|
1591
|
+
/** 高德定位,需要申请高德服务并配置,高德地图和高德定位配置信息应保持一致 */
|
|
1592
|
+
amap?: {
|
|
1593
|
+
/** 高德用户名 */
|
|
1594
|
+
name?: string;
|
|
1595
|
+
/** 支持平台,至少选一个 */
|
|
1596
|
+
__platform__?: ('ios' | 'android')[];
|
|
1597
|
+
/** iOS 平台高德定位地图应用 key */
|
|
1598
|
+
appkey_ios?: string;
|
|
1599
|
+
/** Android 平台高德定位地图应用 key */
|
|
1600
|
+
appkey_android?: string;
|
|
1601
|
+
[x: string]: any;
|
|
1602
|
+
};
|
|
1603
|
+
/** 百度定位,需要申请百度服务并配置,百度地图和百度定位配置信息应保持一致 */
|
|
1604
|
+
baidu?: {
|
|
1605
|
+
/** 支持平台,至少选一个 */
|
|
1606
|
+
__platform__?: ('ios' | 'android')[];
|
|
1607
|
+
/** iOS 平台百度地图应用 key */
|
|
1608
|
+
appkey_ios?: string;
|
|
1609
|
+
/** Android 平台百度地图应用 key */
|
|
1610
|
+
appkey_android?: string;
|
|
1611
|
+
[x: string]: any;
|
|
1612
|
+
};
|
|
1613
|
+
};
|
|
1614
|
+
/**
|
|
1615
|
+
* 地图,只能选一个,部分国产 Android 手机获取位置必须申请定位服务商的SDK
|
|
1616
|
+
*
|
|
1617
|
+
* 依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1618
|
+
*
|
|
1619
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-maps.html>
|
|
1620
|
+
*/
|
|
1621
|
+
maps?: {
|
|
1622
|
+
/** 高德地图,需要申请高德服务并配置,高德地图和高德定位配置信息应保持一致 */
|
|
1623
|
+
amap?: {
|
|
1624
|
+
/** 高德用户名 */
|
|
1625
|
+
name?: string;
|
|
1626
|
+
/** iOS 平台高德地图应用 key */
|
|
1627
|
+
appkey_ios?: string;
|
|
1628
|
+
/** Android 平台高德地图应用 key */
|
|
1629
|
+
appkey_android?: string;
|
|
1630
|
+
[x: string]: any;
|
|
1631
|
+
};
|
|
1632
|
+
/**
|
|
1633
|
+
* 百度地图,需要申请百度服务并配置,百度地图和百度定位配置信息应保持一致
|
|
1634
|
+
*
|
|
1635
|
+
* 不支持 nvue
|
|
1636
|
+
*/
|
|
1637
|
+
baidu?: {
|
|
1638
|
+
/** iOS 平台百度地图应用 key */
|
|
1639
|
+
appkey_ios?: string;
|
|
1640
|
+
/** Android 平台百度地图应用 key */
|
|
1641
|
+
appkey_android?: string;
|
|
1642
|
+
[x: string]: any;
|
|
1643
|
+
};
|
|
1644
|
+
/** Google 地图 */
|
|
1645
|
+
google?: {
|
|
1646
|
+
/** iOS 平台 Google 地图 API 密钥 */
|
|
1647
|
+
APIKey_ios?: string;
|
|
1648
|
+
/** Android 平台 Google 地图 API 密钥 */
|
|
1649
|
+
APIKey_android?: string;
|
|
1650
|
+
[x: string]: any;
|
|
1651
|
+
};
|
|
1652
|
+
[x: string]: any;
|
|
1653
|
+
};
|
|
1654
|
+
/**
|
|
1655
|
+
* 登录鉴权,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1656
|
+
*
|
|
1657
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-oauth.html>
|
|
1658
|
+
*/
|
|
1659
|
+
oauth?: {
|
|
1660
|
+
/** 一键登录 */
|
|
1661
|
+
univerify?: Record<string, any>;
|
|
1662
|
+
/**
|
|
1663
|
+
* 苹果登录,iOS 13+ 支持
|
|
1664
|
+
*
|
|
1665
|
+
* 如果开发者提供任何第三方登录,则必须同时提供苹果登录
|
|
1666
|
+
*/
|
|
1667
|
+
apple?: Record<string, any>;
|
|
1668
|
+
/** 微信登录,微信登录、微信分享和微信支付的配置信息应保持一致 */
|
|
1669
|
+
weixin?: {
|
|
1670
|
+
/** 微信开放平台申请应用的 AppID 值 */
|
|
1671
|
+
appid?: string;
|
|
1672
|
+
/** 微信开放平台申请应用的 AppSecret 值 */
|
|
1673
|
+
appsecret?: string;
|
|
1674
|
+
/** 微信开放平台申请应用时配置的 Universal Links */
|
|
1675
|
+
UniversalLinks?: string;
|
|
1676
|
+
[x: string]: any;
|
|
1677
|
+
};
|
|
1678
|
+
/** QQ 登录,QQ 登录和 QQ 分享的配置信息应保持一致 */
|
|
1679
|
+
qq?: {
|
|
1680
|
+
/** 腾讯 QQ 开放平台申请应用的 AppID 值 */
|
|
1681
|
+
appid?: string;
|
|
1682
|
+
/** 腾讯 QQ 开放平台申请应用时配置的 Universal Links */
|
|
1683
|
+
UniversalLinks?: string;
|
|
1684
|
+
[x: string]: any;
|
|
1685
|
+
};
|
|
1686
|
+
/** 新浪微博登录,新浪微博登录和新浪微博分享的配置信息应保持一致 */
|
|
1687
|
+
sina?: {
|
|
1688
|
+
/** 新浪微博开放平台应用 appkey */
|
|
1689
|
+
appkey?: string;
|
|
1690
|
+
/** 新浪微博开放平台应用授权回调页地址 */
|
|
1691
|
+
redirect_uri?: string;
|
|
1692
|
+
/** 新浪微博开放平台申请应用时配置的 Universal Links */
|
|
1693
|
+
UniversalLinks?: string;
|
|
1694
|
+
[x: string]: any;
|
|
1695
|
+
};
|
|
1696
|
+
/** Google登录 */
|
|
1697
|
+
google?: {
|
|
1698
|
+
/** Google API Console 项目中获取的 OAuth 客户端 ID */
|
|
1699
|
+
clientid?: string;
|
|
1700
|
+
[x: string]: any;
|
|
1701
|
+
};
|
|
1702
|
+
/** Facebook 脸书登录 */
|
|
1703
|
+
facebook?: {
|
|
1704
|
+
/** Facebook 开发者中心获取的应用编号 */
|
|
1705
|
+
appid?: string;
|
|
1706
|
+
/** Facebook 开发者中心获取的 client_token */
|
|
1707
|
+
client_token?: string;
|
|
1708
|
+
[x: string]: any;
|
|
1709
|
+
};
|
|
1710
|
+
[x: string]: any;
|
|
1711
|
+
};
|
|
1712
|
+
/**
|
|
1713
|
+
* 支付,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1714
|
+
*
|
|
1715
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-payment.html>
|
|
1716
|
+
*/
|
|
1717
|
+
payment?: {
|
|
1718
|
+
/** Apple 应用内支付,仅 iOS 支持 */
|
|
1719
|
+
appleiap?: Record<string, any>;
|
|
1720
|
+
/** 支付宝支付 */
|
|
1721
|
+
alipay?: {
|
|
1722
|
+
/** 支持平台,至少选一个 */
|
|
1723
|
+
__platform__?: ('ios' | 'android')[];
|
|
1724
|
+
};
|
|
1725
|
+
/** 微信支付,微信登录、微信分享和微信支付的配置信息应保持一致 */
|
|
1726
|
+
weixin?: {
|
|
1727
|
+
/** 支持平台,至少选一个 */
|
|
1728
|
+
__platform__?: ('ios' | 'android')[];
|
|
1729
|
+
/** 微信开放平台申请应用的 AppID 值 */
|
|
1730
|
+
appid?: string;
|
|
1731
|
+
/** 微信开放平台申请应用时配置的 Universal Links */
|
|
1732
|
+
UniversalLinks?: string;
|
|
1733
|
+
[x: string]: any;
|
|
1734
|
+
};
|
|
1735
|
+
paypal?: {
|
|
1736
|
+
/** 支持平台,至少选一个 */
|
|
1737
|
+
__platform__?: ('ios' | 'android')[];
|
|
1738
|
+
/** iOS 平台返回 URL 地址,推荐使用 `包名+://paypalpay`,要求使用小写 */
|
|
1739
|
+
returnURL_ios?: string;
|
|
1740
|
+
/** Android 平台返回 URL 地址,推荐使用 `包名+://paypalpay`,要求使用小写 */
|
|
1741
|
+
returnURL_android?: string;
|
|
1742
|
+
[x: string]: any;
|
|
1743
|
+
};
|
|
1744
|
+
stripe?: {
|
|
1745
|
+
/** 支持平台,至少选一个 */
|
|
1746
|
+
__platform__?: ('ios' | 'android')[];
|
|
1747
|
+
/** iOS 平台返回 URL 地址,格式为 `协议名称://stripe` */
|
|
1748
|
+
returnURL_ios?: string;
|
|
1749
|
+
[x: string]: any;
|
|
1750
|
+
};
|
|
1751
|
+
/** Google 支付 */
|
|
1752
|
+
google?: Record<string, any>;
|
|
1753
|
+
[x: string]: any;
|
|
1754
|
+
};
|
|
1755
|
+
/**
|
|
1756
|
+
* 消息推送
|
|
1757
|
+
*
|
|
1758
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-push.html> 和 <https://uniapp.dcloud.net.cn/tutorial/app-push-unipush.html>
|
|
1759
|
+
*/
|
|
1760
|
+
push?: {
|
|
1761
|
+
/** uni-push 配置 */
|
|
1762
|
+
unipush?: {
|
|
1763
|
+
/**
|
|
1764
|
+
* uni-push 版本
|
|
1765
|
+
*
|
|
1766
|
+
* @default "1"
|
|
1767
|
+
*/
|
|
1768
|
+
version?: '1' | '2';
|
|
1769
|
+
/**
|
|
1770
|
+
* APP 离线推送,APP 离线时适用,推送消息进入手机通知栏
|
|
1771
|
+
*
|
|
1772
|
+
* SDK 体积 1024K
|
|
1773
|
+
*
|
|
1774
|
+
* uni-push v2 支持
|
|
1775
|
+
*
|
|
1776
|
+
* @default false
|
|
1777
|
+
*/
|
|
1778
|
+
offline?: boolean;
|
|
1779
|
+
/** 华为推送 SDK,上线国内应用市场需在 APP 隐私协议中添加条款 */
|
|
1780
|
+
hms?: Record<string, any>;
|
|
1781
|
+
/** OPPO 推送 SDK,上线国内应用市场需在 APP 隐私协议中添加条款 */
|
|
1782
|
+
oppo?: Record<string, any>;
|
|
1783
|
+
/** VIVO 推送 SDK,上线国内应用市场需在 APP 隐私协议中添加条款 */
|
|
1784
|
+
vivo?: Record<string, any>;
|
|
1785
|
+
/** 小米推送 SDK,上线国内应用市场需在 APP 隐私协议中添加条款 */
|
|
1786
|
+
mi?: Record<string, any>;
|
|
1787
|
+
/** 魅族推送 SDK,上线国内应用市场需在 APP 隐私协议中添加条款 */
|
|
1788
|
+
meizu?: Record<string, any>;
|
|
1789
|
+
/** 荣耀推送 SDK,上线国内应用市场需在 APP 隐私协议中添加条款 */
|
|
1790
|
+
honor?: Record<string, any>;
|
|
1791
|
+
/** Google FCM 推送 SDK,上线国内应用市场需在 APP 隐私协议中添加条款 */
|
|
1792
|
+
fcm?: Record<string, any>;
|
|
1793
|
+
icons?: {
|
|
1794
|
+
/** 图标配置 */
|
|
1795
|
+
push?: {
|
|
1796
|
+
/** 48x48 */
|
|
1797
|
+
ldpi?: string;
|
|
1798
|
+
/** 48x48 */
|
|
1799
|
+
mdpi?: string;
|
|
1800
|
+
/** 72x72 */
|
|
1801
|
+
hdpi?: string;
|
|
1802
|
+
/** 96x96 */
|
|
1803
|
+
xhdpi?: string;
|
|
1804
|
+
/** 144x144 */
|
|
1805
|
+
xxhdpi?: string;
|
|
1806
|
+
/** 192x192 */
|
|
1807
|
+
xxxhdpi?: string;
|
|
1808
|
+
[x: string]: any;
|
|
1809
|
+
};
|
|
1810
|
+
/** 小图标配置 */
|
|
1811
|
+
small?: {
|
|
1812
|
+
/** 18x18 */
|
|
1813
|
+
ldpi?: string;
|
|
1814
|
+
/** 24x24 */
|
|
1815
|
+
mdpi?: string;
|
|
1816
|
+
/** 36x36 */
|
|
1817
|
+
hdpi?: string;
|
|
1818
|
+
/** 48x48 */
|
|
1819
|
+
xhdpi?: string;
|
|
1820
|
+
/** 72x72 */
|
|
1821
|
+
xxhdpi?: string;
|
|
1822
|
+
/** 96x96 */
|
|
1823
|
+
xxxhdpi?: string;
|
|
1824
|
+
[x: string]: any;
|
|
1825
|
+
};
|
|
1826
|
+
[x: string]: any;
|
|
1827
|
+
};
|
|
1828
|
+
[x: string]: any;
|
|
1829
|
+
};
|
|
1830
|
+
[x: string]: any;
|
|
1831
|
+
};
|
|
1832
|
+
/**
|
|
1833
|
+
* 分享,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1834
|
+
*
|
|
1835
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-share.html>
|
|
1836
|
+
*/
|
|
1837
|
+
share?: {
|
|
1838
|
+
/** 微信分享,微信登录、微信分享和微信支付的配置信息应保持一致 */
|
|
1839
|
+
weixin?: {
|
|
1840
|
+
/** 微信开放平台申请应用的 AppID 值 */
|
|
1841
|
+
appid?: string;
|
|
1842
|
+
/** 微信开放平台申请应用时配置的 Universal Links */
|
|
1843
|
+
UniversalLinks?: string;
|
|
1844
|
+
[x: string]: any;
|
|
1845
|
+
};
|
|
1846
|
+
/** QQ 分享,QQ 登录和 QQ 分享的配置信息应保持一致 */
|
|
1847
|
+
qq?: {
|
|
1848
|
+
/** 腾讯 QQ 开放平台申请应用的 AppID 值 */
|
|
1849
|
+
appid?: string;
|
|
1850
|
+
/** 腾讯 QQ 开放平台申请应用时配置的 Universal Links */
|
|
1851
|
+
UniversalLinks?: string;
|
|
1852
|
+
[x: string]: any;
|
|
1853
|
+
};
|
|
1854
|
+
/** 新浪微博分享,新浪微博登录和新浪微博分享的配置信息应保持一致 */
|
|
1855
|
+
sina?: {
|
|
1856
|
+
/** 新浪微博开放平台应用 appkey */
|
|
1857
|
+
appkey?: string;
|
|
1858
|
+
/** 新浪微博开放平台应用授权回调页地址 */
|
|
1859
|
+
redirect_uri?: string;
|
|
1860
|
+
/** 新浪微博开放平台申请应用时配置的 Universal Links */
|
|
1861
|
+
UniversalLinks?: string;
|
|
1862
|
+
[x: string]: any;
|
|
1863
|
+
};
|
|
1864
|
+
};
|
|
1865
|
+
/**
|
|
1866
|
+
* 语音输入
|
|
1867
|
+
*
|
|
1868
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-speech.html>
|
|
1869
|
+
*/
|
|
1870
|
+
speech?: {
|
|
1871
|
+
/** 百度语音识别 */
|
|
1872
|
+
baidu?: {
|
|
1873
|
+
/** 百度开放平台申请的 AppID 值 */
|
|
1874
|
+
appid?: string;
|
|
1875
|
+
/** 百度开放平台申请的 ApiKey 值 */
|
|
1876
|
+
apikey?: string;
|
|
1877
|
+
/** 百度开放平台申请的 SecretKey 值 */
|
|
1878
|
+
secretkey?: string;
|
|
1879
|
+
[x: string]: any;
|
|
1880
|
+
};
|
|
1881
|
+
[x: string]: any;
|
|
1882
|
+
};
|
|
1883
|
+
/**
|
|
1884
|
+
* 统计,依赖三方 SDK,上架到国内应用市场需要在隐私协议中添加相应条款
|
|
1885
|
+
*
|
|
1886
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-statistic.html>
|
|
1887
|
+
*/
|
|
1888
|
+
statics?: {
|
|
1889
|
+
/** 友盟统计 */
|
|
1890
|
+
umeng?: {
|
|
1891
|
+
/** iOS 平台友盟 appkey */
|
|
1892
|
+
appkey_ios?: string;
|
|
1893
|
+
/** iOS 平台友盟渠道 id */
|
|
1894
|
+
channelid_ios?: string;
|
|
1895
|
+
/** Android 平台友盟 appkey */
|
|
1896
|
+
appkey_android?: string;
|
|
1897
|
+
/** Android 平台友盟渠道 id */
|
|
1898
|
+
channelid_android?: string;
|
|
1899
|
+
[x: string]: any;
|
|
1900
|
+
};
|
|
1901
|
+
/** Google Analytics for Firebase */
|
|
1902
|
+
google?: {
|
|
1903
|
+
/** iOS 平台 Google Analytics 的配置文件 */
|
|
1904
|
+
config_ios?: string;
|
|
1905
|
+
/** Android 平台 Google Analytics 的配置文件 */
|
|
1906
|
+
config_android?: string;
|
|
1907
|
+
[x: string]: any;
|
|
1908
|
+
};
|
|
1909
|
+
[x: string]: any;
|
|
1910
|
+
};
|
|
1911
|
+
/** uni-ad 配置 */
|
|
1912
|
+
ad?: {
|
|
1913
|
+
/** 360 广告联盟 */
|
|
1914
|
+
'360'?: Record<string, any>;
|
|
1915
|
+
/** 今日头条穿山甲广告联盟 */
|
|
1916
|
+
'csj'?: Record<string, any>;
|
|
1917
|
+
/** 腾讯优量汇广告联盟 */
|
|
1918
|
+
'gdt'?: Record<string, any>;
|
|
1919
|
+
/** 快手广告联盟 */
|
|
1920
|
+
'ks'?: Record<string, any>;
|
|
1921
|
+
/** 快手内容联盟 */
|
|
1922
|
+
'ks-content'?: Record<string, any>;
|
|
1923
|
+
/** Sigmob 广告联盟 */
|
|
1924
|
+
'sigmob'?: Record<string, any>;
|
|
1925
|
+
/** 华为广告联盟 */
|
|
1926
|
+
'hw'?: Record<string, any>;
|
|
1927
|
+
/** 百度百青藤广告联盟 */
|
|
1928
|
+
'bd'?: Record<string, any>;
|
|
1929
|
+
/** Octopus 章鱼移动广告联盟 */
|
|
1930
|
+
'zy'?: Record<string, any>;
|
|
1931
|
+
/** AdScope 倍孜广告联盟 */
|
|
1932
|
+
'bz'?: Record<string, any>;
|
|
1933
|
+
/** 泛连广告联盟 */
|
|
1934
|
+
'fl'?: Record<string, any>;
|
|
1935
|
+
/** 聚力广告联盟 */
|
|
1936
|
+
'jl'?: Record<string, any>;
|
|
1937
|
+
/** 互动游戏(变现猫) */
|
|
1938
|
+
'BXM-AD'?: Record<string, any>;
|
|
1939
|
+
/** Google AdMob */
|
|
1940
|
+
'gg'?: Record<string, any>;
|
|
1941
|
+
/** Unity Ads 广告联盟 */
|
|
1942
|
+
'unity'?: Record<string, any>;
|
|
1943
|
+
/** Liftoff 广告联盟 */
|
|
1944
|
+
'liftoff'?: Record<string, any>;
|
|
1945
|
+
/** InMobi 广告联盟 */
|
|
1946
|
+
'inmobi'?: Record<string, any>;
|
|
1947
|
+
/** ironSource 广告联盟 */
|
|
1948
|
+
'ironsource'?: Record<string, any>;
|
|
1949
|
+
/** Mintegral 广告联盟 */
|
|
1950
|
+
'mintegral'?: Record<string, any>;
|
|
1951
|
+
/** Pangle(海外穿山甲) */
|
|
1952
|
+
'pg'?: Record<string, any>;
|
|
1953
|
+
[x: string]: any;
|
|
1954
|
+
};
|
|
1955
|
+
[x: string]: any;
|
|
1956
|
+
};
|
|
1957
|
+
/**
|
|
1958
|
+
* 启动界面配置
|
|
1959
|
+
*/
|
|
1960
|
+
splashscreen?: {
|
|
1961
|
+
/**
|
|
1962
|
+
* iOS 平台启动界面样式
|
|
1963
|
+
*
|
|
1964
|
+
* @default "common"
|
|
1965
|
+
*/
|
|
1966
|
+
iosStyle?: 'common' | 'default' | 'storyboard';
|
|
1967
|
+
/**
|
|
1968
|
+
* iOS 平台启动界面配置
|
|
1969
|
+
*/
|
|
1970
|
+
ios?: {
|
|
1971
|
+
/**
|
|
1972
|
+
* 自定义 storyboard 启动界面文件路径,iosStyle 为 "storyboard" 时生效
|
|
1973
|
+
*/
|
|
1974
|
+
storyboard?: string;
|
|
1975
|
+
/**
|
|
1976
|
+
* iPhone 设备启动图配置,iosStyle 为 "default" 时生效
|
|
1977
|
+
*/
|
|
1978
|
+
iphone?: {
|
|
1979
|
+
/**
|
|
1980
|
+
* 分辨率 320x480,iPhone3(G/GS)启动图片路径
|
|
1981
|
+
*
|
|
1982
|
+
* @deprecated
|
|
1983
|
+
*/
|
|
1984
|
+
'default'?: string;
|
|
1985
|
+
/**
|
|
1986
|
+
* 分辨率 640x960,3.5 英寸设备(iPhone4/4S)启动图片路径
|
|
1987
|
+
*
|
|
1988
|
+
* @deprecated
|
|
1989
|
+
*/
|
|
1990
|
+
'retina35'?: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* 分辨率 640x1136,4.0 英寸设备(iPhone5/5S)启动图片路径
|
|
1993
|
+
*/
|
|
1994
|
+
'retina40'?: string;
|
|
1995
|
+
/**
|
|
1996
|
+
* 分辨率 1136x640,4.0 英寸设备(iPhone5/5S)横屏启动图片路径
|
|
1997
|
+
*/
|
|
1998
|
+
'retina40l'?: string;
|
|
1999
|
+
/**
|
|
2000
|
+
* 分辨率 750x1334,4.7 英寸设备(iPhone6/7/8)启动图片路径
|
|
2001
|
+
*/
|
|
2002
|
+
'retina47'?: string;
|
|
2003
|
+
/**
|
|
2004
|
+
* 分辨率 1334x750,5.5 英寸设备(iPhone6/7/8)启动图片路径
|
|
2005
|
+
*/
|
|
2006
|
+
'retina47l'?: string;
|
|
2007
|
+
/**
|
|
2008
|
+
* 分辨率 1242x2208,5.5英寸设备(iPhone6/7/8Plus)启动图片路径
|
|
2009
|
+
*/
|
|
2010
|
+
'retina55'?: string;
|
|
2011
|
+
/**
|
|
2012
|
+
* 分辨率 2208x1242,5.5英寸设备(iPhone6/7/8Plus)横屏启动图片路径
|
|
2013
|
+
*/
|
|
2014
|
+
'retina55l'?: string;
|
|
2015
|
+
/**
|
|
2016
|
+
* 分辨率 1125x2436,5.8英寸设备(iPhoneX/XS)启动图片路径
|
|
2017
|
+
*/
|
|
2018
|
+
'iphonex'?: string;
|
|
2019
|
+
/**
|
|
2020
|
+
* 分辨率 2436x1125,5.8英寸设备(iPhoneX/XS)横屏启动图片路径
|
|
2021
|
+
*/
|
|
2022
|
+
'iphonexl'?: string;
|
|
2023
|
+
/**
|
|
2024
|
+
* 分辨率 828x1792,6.1英寸设备(iPhoneXR)启动图片路径
|
|
2025
|
+
*/
|
|
2026
|
+
'portrait-896h@2x'?: string;
|
|
2027
|
+
/**
|
|
2028
|
+
* 分辨率 1792x828,6.1英寸设备(iPhoneXR)横屏启动图片路径
|
|
2029
|
+
*/
|
|
2030
|
+
'landscape-896h@2x'?: string;
|
|
2031
|
+
/**
|
|
2032
|
+
* 分辨率 1242x2688,6.5英寸设备(iPhoneXS Max)横屏启动图片路径
|
|
2033
|
+
*/
|
|
2034
|
+
'portrait-896h@3x'?: string;
|
|
2035
|
+
/**
|
|
2036
|
+
* 分辨率 2688x1242,6.5英寸设备(iPhoneXS Max)横屏启动图片路径
|
|
2037
|
+
*/
|
|
2038
|
+
'landscape-896h@3x'?: string;
|
|
2039
|
+
[x: string]: any;
|
|
2040
|
+
};
|
|
2041
|
+
/**
|
|
2042
|
+
* iPad 设备启动图配置,iosStyle 为 "default" 时生效
|
|
2043
|
+
*/
|
|
2044
|
+
ipad?: {
|
|
2045
|
+
/**
|
|
2046
|
+
* 分辨率 768x1004,iPad 竖屏启动图片路径
|
|
2047
|
+
*
|
|
2048
|
+
* @deprecated
|
|
2049
|
+
*/
|
|
2050
|
+
'portrait'?: string;
|
|
2051
|
+
/**
|
|
2052
|
+
* 分辨率 1536x2008,iPad 高分屏竖屏启动图片路径
|
|
2053
|
+
*
|
|
2054
|
+
* @deprecated
|
|
2055
|
+
*/
|
|
2056
|
+
'portrait-retina'?: string;
|
|
2057
|
+
/**
|
|
2058
|
+
* 分辨率 1024x748,iPad 横屏启动图片路径
|
|
2059
|
+
*
|
|
2060
|
+
* @deprecated
|
|
2061
|
+
*/
|
|
2062
|
+
'landscape'?: string;
|
|
2063
|
+
/**
|
|
2064
|
+
* 分辨率 2048x1496,iPad 高分屏横屏启动图片路径
|
|
2065
|
+
*
|
|
2066
|
+
* @deprecated
|
|
2067
|
+
*/
|
|
2068
|
+
'landscape-retina'?: string;
|
|
2069
|
+
/**
|
|
2070
|
+
* 分辨率 768x1024,9.7/7.9 英寸 iPad/mini 竖屏启动图片路径
|
|
2071
|
+
*/
|
|
2072
|
+
'portrait7'?: string;
|
|
2073
|
+
/**
|
|
2074
|
+
* 分辨率 1024x768,9.7/7.9 英寸 iPad/mini 横屏启动图片路径
|
|
2075
|
+
*/
|
|
2076
|
+
'landscape7'?: string;
|
|
2077
|
+
/**
|
|
2078
|
+
* 分辨率 1536x2048,9.7/7.9 英寸 iPad/mini 高分屏竖屏图片路径
|
|
2079
|
+
*/
|
|
2080
|
+
'portrait-retina7'?: string;
|
|
2081
|
+
/**
|
|
2082
|
+
* 分辨率 2048x1536,9.7/7.9 英寸 iPad/mini 高分屏横屏启动图片路径
|
|
2083
|
+
*/
|
|
2084
|
+
'landscape-retina7'?: string;
|
|
2085
|
+
/**
|
|
2086
|
+
* 分辨率 1668x2224,10.5 英寸 iPad Pro 竖屏启动图片路径
|
|
2087
|
+
*/
|
|
2088
|
+
'portrait-1112h@2x'?: string;
|
|
2089
|
+
/**
|
|
2090
|
+
* 分辨率 2224x1668,10.5 英寸 iPad Pro 横屏启动图片路径
|
|
2091
|
+
*/
|
|
2092
|
+
'landscape-1112h@2x'?: string;
|
|
2093
|
+
/**
|
|
2094
|
+
* 分辨率 1668x2388,11 英寸 iPad Pro 竖屏启动图片路径
|
|
2095
|
+
*/
|
|
2096
|
+
'portrait-1194h@2x'?: string;
|
|
2097
|
+
/**
|
|
2098
|
+
* 分辨率 2388x1668,11 英寸 iPad Pro 横屏启动图片路径
|
|
2099
|
+
*/
|
|
2100
|
+
'landscape-1194h@2x'?: string;
|
|
2101
|
+
/**
|
|
2102
|
+
* 分辨率 2048x2732,12.9 英寸 iPad Pro 竖屏启动图片路径
|
|
2103
|
+
*/
|
|
2104
|
+
'portrait-1366h@2x'?: string;
|
|
2105
|
+
/**
|
|
2106
|
+
* 分辨率 2732x2048,12.9 英寸 iPad Pro 横屏启动图片路径
|
|
2107
|
+
*/
|
|
2108
|
+
'landscape-1366h@2x'?: string;
|
|
2109
|
+
};
|
|
2110
|
+
[x: string]: any;
|
|
2111
|
+
};
|
|
2112
|
+
/**
|
|
2113
|
+
* Android 平台启动界面样式
|
|
2114
|
+
*
|
|
2115
|
+
* @default "common"
|
|
2116
|
+
*/
|
|
2117
|
+
androidStyle?: 'common' | 'default';
|
|
2118
|
+
/**
|
|
2119
|
+
* Android 平台启动图片配置, androidStyle 为 "default" 时生效
|
|
2120
|
+
*/
|
|
2121
|
+
android?: {
|
|
2122
|
+
/**
|
|
2123
|
+
* 低密度屏幕启动图片路径,320x442
|
|
2124
|
+
*
|
|
2125
|
+
* @deprecated
|
|
2126
|
+
*/
|
|
2127
|
+
ldpi?: string;
|
|
2128
|
+
/**
|
|
2129
|
+
* 中密度屏幕启动图片路径,240x282
|
|
2130
|
+
*
|
|
2131
|
+
* @deprecated
|
|
2132
|
+
*/
|
|
2133
|
+
mdpi?: string;
|
|
2134
|
+
/**
|
|
2135
|
+
* 高密度屏幕启动图片路径,480x762
|
|
2136
|
+
*/
|
|
2137
|
+
hdpi?: string;
|
|
2138
|
+
/**
|
|
2139
|
+
* 720P 高密度屏幕启动图片路径,720x1242
|
|
2140
|
+
*/
|
|
2141
|
+
xhdpi?: string;
|
|
2142
|
+
/**
|
|
2143
|
+
* 1080P 高密度屏幕启动图片路径,1080x1882
|
|
2144
|
+
*/
|
|
2145
|
+
xxhdpi?: string;
|
|
2146
|
+
};
|
|
2147
|
+
/**
|
|
2148
|
+
* Android 平台启动界面导航栏颜色,要求颜色值与启动图背景颜色相近
|
|
2149
|
+
*
|
|
2150
|
+
* @since HBuilderX 5.0+
|
|
2151
|
+
*
|
|
2152
|
+
* @format color
|
|
2153
|
+
*/
|
|
2154
|
+
androidNavigationBarColor?: HEXColor;
|
|
2155
|
+
/**
|
|
2156
|
+
* 是否使用原生隐私政策提示框,仅支持 Android
|
|
2157
|
+
*
|
|
2158
|
+
* 详见 <https://uniapp.dcloud.net.cn/tutorial/app-privacy-android.html>
|
|
2159
|
+
*/
|
|
2160
|
+
useOriginalMsgbox?: boolean;
|
|
2161
|
+
};
|
|
2162
|
+
/**
|
|
2163
|
+
* 重力感应、横竖屏配置
|
|
2164
|
+
*
|
|
2165
|
+
* @deprecated 使用 screenOrientation 替代
|
|
2166
|
+
*/
|
|
2167
|
+
orientation?: AppPlusScreenOrientation[];
|
|
2168
|
+
[x: string]: any;
|
|
2169
|
+
};
|
|
2170
|
+
/**
|
|
2171
|
+
* nvue 编译模式,区别详见 <https://ask.dcloud.net.cn/article/36074>
|
|
2172
|
+
*
|
|
2173
|
+
* @since 2.0.3+
|
|
2174
|
+
*
|
|
2175
|
+
* @default "uni-app"
|
|
2176
|
+
*/
|
|
2177
|
+
nvueCompiler?: 'weex' | 'uni-app';
|
|
2178
|
+
/**
|
|
2179
|
+
* nvue 样式编译模式,区别详见 <https://ask.dcloud.net.cn/article/38751>
|
|
2180
|
+
*
|
|
2181
|
+
* @since 3.1.1+
|
|
2182
|
+
*
|
|
2183
|
+
* @default "weex"
|
|
2184
|
+
*/
|
|
2185
|
+
nvueStyleCompiler?: 'weex' | 'uni-app';
|
|
2186
|
+
/**
|
|
2187
|
+
* 运行框架
|
|
2188
|
+
*
|
|
2189
|
+
* "native" 不加载基于 webview 的运行框架,减少包体积、提升启动速度
|
|
2190
|
+
*
|
|
2191
|
+
* @since App-nvue 2.2.0+
|
|
2192
|
+
*/
|
|
2193
|
+
renderer?: 'native';
|
|
2194
|
+
/**
|
|
2195
|
+
* nvue 首页启动模式,详见 <https://ask.dcloud.net.cn/article/36749>
|
|
2196
|
+
*
|
|
2197
|
+
* @since 2.5.0+
|
|
2198
|
+
*
|
|
2199
|
+
* @default "normal"
|
|
2200
|
+
*/
|
|
2201
|
+
nvueLaunchMode?: 'normal' | 'fast';
|
|
2202
|
+
/**
|
|
2203
|
+
* nvue 页面布局初始配置
|
|
2204
|
+
*
|
|
2205
|
+
* @since 2.0.3+
|
|
2206
|
+
*/
|
|
2207
|
+
nvue?: {
|
|
2208
|
+
/**
|
|
2209
|
+
* flex 项目的排列方向
|
|
2210
|
+
*
|
|
2211
|
+
* "row" 从左到右
|
|
2212
|
+
*
|
|
2213
|
+
* "row-reverse" 从右到左
|
|
2214
|
+
*
|
|
2215
|
+
* "column" 从上到下
|
|
2216
|
+
*
|
|
2217
|
+
* "column-reverse" 从下到上
|
|
2218
|
+
*
|
|
2219
|
+
* @default "column"
|
|
2220
|
+
*/
|
|
2221
|
+
'flex-direction'?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
2222
|
+
};
|
|
2223
|
+
/**
|
|
2224
|
+
* 分包配置,可以减轻启动时加载的脚本数量,提升启动速度,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#app-vue-optimization>
|
|
2225
|
+
*
|
|
2226
|
+
* @since 2.7.12+
|
|
2227
|
+
*/
|
|
2228
|
+
optimization?: {
|
|
2229
|
+
/**
|
|
2230
|
+
* 是否开启分包配置
|
|
2231
|
+
*
|
|
2232
|
+
* 为 true 时必须设置 app-plus.runmode 为 "liberate"
|
|
2233
|
+
*
|
|
2234
|
+
* @since uni-app vue2
|
|
2235
|
+
*/
|
|
2236
|
+
subPackages?: boolean;
|
|
2237
|
+
[x: string]: any;
|
|
2238
|
+
};
|
|
2239
|
+
/**
|
|
2240
|
+
* 运行模式,分包时必须设置为 "liberate"
|
|
2241
|
+
*
|
|
2242
|
+
* "normal" 默认模式
|
|
2243
|
+
*
|
|
2244
|
+
* "liberate" 资源释放模式
|
|
2245
|
+
*
|
|
2246
|
+
* @default "normal"
|
|
2247
|
+
*/
|
|
2248
|
+
runmode?: 'normal' | 'liberate';
|
|
2249
|
+
/**
|
|
2250
|
+
* uni 统计配置项
|
|
2251
|
+
*
|
|
2252
|
+
* @since 2.2.3+
|
|
2253
|
+
*/
|
|
2254
|
+
uniStatistics?: PlatformUniStatistics;
|
|
2255
|
+
/**
|
|
2256
|
+
* 系统 webview 低于指定版本时,会弹出提示,或者下载 x5 内核后继续启动,仅 Android 支持
|
|
2257
|
+
*
|
|
2258
|
+
* @since 3.5.0+
|
|
2259
|
+
*/
|
|
2260
|
+
webView?: {
|
|
2261
|
+
/**
|
|
2262
|
+
* 最小 webview 版本
|
|
2263
|
+
*
|
|
2264
|
+
* 当低于最小版本要求时,显示弹框,点击确定退出应用
|
|
2265
|
+
*
|
|
2266
|
+
* Vue3 要求 Android 系统 webview 最低版本为 64.0.3282.116
|
|
2267
|
+
*
|
|
2268
|
+
* @example "64.0.3282.116"
|
|
2269
|
+
*/
|
|
2270
|
+
minUserAgentVersion?: string;
|
|
2271
|
+
/**
|
|
2272
|
+
* X5 内核配置,启用 Android X5 Webview 模块后生效
|
|
2273
|
+
*/
|
|
2274
|
+
x5?: {
|
|
2275
|
+
/**
|
|
2276
|
+
* 超时时间
|
|
2277
|
+
*
|
|
2278
|
+
* @default 3000
|
|
2279
|
+
*/
|
|
2280
|
+
timeOut?: number;
|
|
2281
|
+
/**
|
|
2282
|
+
* 是否在非 WiFi 网络环境时弹框询问用户是否确认下载 X5 内核
|
|
2283
|
+
*
|
|
2284
|
+
* true 弹框
|
|
2285
|
+
*
|
|
2286
|
+
* false 不弹框
|
|
2287
|
+
*
|
|
2288
|
+
* @default false
|
|
2289
|
+
*/
|
|
2290
|
+
showTipsWithoutWifi?: boolean;
|
|
2291
|
+
/**
|
|
2292
|
+
* 是否允许用户在非 WiFi 网络时直接下载 X5 内核
|
|
2293
|
+
*
|
|
2294
|
+
* true 不弹框询问用户直接下载
|
|
2295
|
+
*
|
|
2296
|
+
* false 且 showTipsWithoutWifi 为 true,弹框询问用户,确认再下载
|
|
2297
|
+
*
|
|
2298
|
+
* false 且 showTipsWithoutWifi 为 false,不弹框不下载
|
|
2299
|
+
*
|
|
2300
|
+
* @default false
|
|
2301
|
+
*/
|
|
2302
|
+
allowDownloadWithoutWiFi?: boolean;
|
|
2303
|
+
[x: string]: any;
|
|
2304
|
+
};
|
|
2305
|
+
[x: string]: any;
|
|
2306
|
+
};
|
|
2307
|
+
/**
|
|
2308
|
+
* 是否允许 H5 中视频非全屏播放,仅 iOS 生效
|
|
2309
|
+
*
|
|
2310
|
+
* @default true
|
|
2311
|
+
*/
|
|
2312
|
+
allowsInlineMediaPlayback?: boolean;
|
|
2313
|
+
/**
|
|
2314
|
+
* H5 中的音视频是否需要用户操作允许播放,仅 iOS 生效
|
|
2315
|
+
*
|
|
2316
|
+
* true 需要用户操作允许
|
|
2317
|
+
*
|
|
2318
|
+
* false 允许 API 控制自动播放
|
|
2319
|
+
*
|
|
2320
|
+
* @since 3.0.1+
|
|
2321
|
+
*
|
|
2322
|
+
* @default false
|
|
2323
|
+
*/
|
|
2324
|
+
mediaPlaybackRequiresUserAction?: boolean;
|
|
2325
|
+
/**
|
|
2326
|
+
* 是否允许本地文件跨域访问其他本地文件,仅 iOS 生效
|
|
2327
|
+
*/
|
|
2328
|
+
allowFileAccessFromFileURLs?: boolean;
|
|
2329
|
+
/**
|
|
2330
|
+
* 是否校验已拒绝权限,如果拒绝则不会再申请
|
|
2331
|
+
*
|
|
2332
|
+
* true 校验已拒绝权限
|
|
2333
|
+
*
|
|
2334
|
+
* false 不校验已拒绝权限
|
|
2335
|
+
*
|
|
2336
|
+
* @default false
|
|
2337
|
+
*/
|
|
2338
|
+
checkPermissionDenied?: boolean;
|
|
2339
|
+
/** 原生混淆加密配置,详见 <https://uniapp.dcloud.net.cn/tutorial/app-sec-confusion.html> */
|
|
2340
|
+
confusion?: {
|
|
2341
|
+
/** 原生混淆描述 */
|
|
2342
|
+
description?: string;
|
|
2343
|
+
/** 原生混淆文件配置 */
|
|
2344
|
+
resources?: Record<string, Record<string, any>>;
|
|
2345
|
+
[x: string]: any;
|
|
2346
|
+
};
|
|
2347
|
+
/** 渠道标识 */
|
|
2348
|
+
channel?: string;
|
|
2349
|
+
/** 应用的异常崩溃与错误报告系统配置 */
|
|
2350
|
+
cers?: {
|
|
2351
|
+
/** 是否提交应用异常崩溃信息 */
|
|
2352
|
+
crash?: boolean;
|
|
2353
|
+
[x: string]: any;
|
|
2354
|
+
};
|
|
2355
|
+
/**
|
|
2356
|
+
* webview 窗口默认使用的缓存模式,uni-app 项目已废弃
|
|
2357
|
+
*
|
|
2358
|
+
* @deprecated
|
|
2359
|
+
*/
|
|
2360
|
+
cache?: {
|
|
2361
|
+
/**
|
|
2362
|
+
* @default "default"
|
|
2363
|
+
*/
|
|
2364
|
+
mode?: 'default' | 'cacheElseNetwork' | 'noCache' | 'cacheOnly';
|
|
2365
|
+
[x: string]: any;
|
|
2366
|
+
};
|
|
2367
|
+
/** 页面加载错误配置,uni-app 项目仅对 webview 组件有效,详见 <https://uniapp.dcloud.net.cn/tutorial/app-webview-error.html> */
|
|
2368
|
+
error?: {
|
|
2369
|
+
/** webview 页面错误时跳转的页面地址 */
|
|
2370
|
+
url?: string;
|
|
2371
|
+
[x: string]: any;
|
|
2372
|
+
};
|
|
2373
|
+
/** iOS webview 内核配置 */
|
|
2374
|
+
kernel?: {
|
|
2375
|
+
/**
|
|
2376
|
+
* iOS 平台使用的 webview 内核
|
|
2377
|
+
*
|
|
2378
|
+
* @default "WKWebview"
|
|
2379
|
+
*/
|
|
2380
|
+
ios?: 'WKWebview' | 'UIWebview';
|
|
2381
|
+
/**
|
|
2382
|
+
* iOS 平台使用 WKWebview 时,内核崩溃后的处理逻辑
|
|
2383
|
+
*
|
|
2384
|
+
* @default "reload"
|
|
2385
|
+
*/
|
|
2386
|
+
recovery?: 'reload' | 'restart' | 'none';
|
|
2387
|
+
[x: string]: any;
|
|
2388
|
+
};
|
|
2389
|
+
/** 应用首页相关配置,uni-app 项目不建议手动修改 */
|
|
2390
|
+
launchwebview?: {
|
|
2391
|
+
/**
|
|
2392
|
+
* 加载 plus API 时机
|
|
2393
|
+
*
|
|
2394
|
+
* @default 'normal'
|
|
2395
|
+
*/
|
|
2396
|
+
plusrequire?: 'normal' | 'later' | 'ahead' | 'none';
|
|
2397
|
+
/**
|
|
2398
|
+
* 是否提前注入 plus API
|
|
2399
|
+
*
|
|
2400
|
+
* @default false
|
|
2401
|
+
*/
|
|
2402
|
+
injection?: boolean;
|
|
2403
|
+
/** 应用首页的拦截资源相关配置 */
|
|
2404
|
+
overrideresource?: {
|
|
2405
|
+
/** 匹配拦截的资源 url 地址的正则表达式字符串 */
|
|
2406
|
+
match?: string;
|
|
2407
|
+
/** 拦截资源的重定向地址 */
|
|
2408
|
+
redirect?: string;
|
|
2409
|
+
/** 拦截资源的数据类型 mime */
|
|
2410
|
+
mime?: string;
|
|
2411
|
+
/** 拦截资源的数据编码 */
|
|
2412
|
+
encoding?: string;
|
|
2413
|
+
/** 拦截资源的 http 头数据 */
|
|
2414
|
+
header?: Record<string, any>;
|
|
2415
|
+
[x: string]: any;
|
|
2416
|
+
}[];
|
|
2417
|
+
/** 应用首页的拦截链接请求处理逻辑 */
|
|
2418
|
+
overrideurl?: {
|
|
2419
|
+
/** 拦截模式 */
|
|
2420
|
+
mode?: 'reject' | 'allow';
|
|
2421
|
+
/** 匹配拦截规则,支持正则表达式 */
|
|
2422
|
+
match?: string;
|
|
2423
|
+
/** 排除拦截理规则 */
|
|
2424
|
+
exclude?: 'none' | 'redirect';
|
|
2425
|
+
[x: string]: any;
|
|
2426
|
+
};
|
|
2427
|
+
/** 是否重写 Web API 实现相关配置 */
|
|
2428
|
+
replacewebapi?: {
|
|
2429
|
+
/** 重写标准定位API */
|
|
2430
|
+
geolocation?: 'none' | 'alldevice' | 'auto';
|
|
2431
|
+
[x: string]: any;
|
|
2432
|
+
};
|
|
2433
|
+
/**
|
|
2434
|
+
* 首页原生 View 相关配置
|
|
2435
|
+
*
|
|
2436
|
+
* @deprecated
|
|
2437
|
+
*/
|
|
2438
|
+
subNViews?: {
|
|
2439
|
+
/** 原生 View 标识 */
|
|
2440
|
+
id?: string;
|
|
2441
|
+
/** 原生 View 样式 */
|
|
2442
|
+
styles?: Record<string, any>;
|
|
2443
|
+
/** 原生 View 中包含的 tag 标签列表 */
|
|
2444
|
+
tags?: Record<string, any>[];
|
|
2445
|
+
[x: string]: any;
|
|
2446
|
+
}[];
|
|
2447
|
+
/** 标题栏相关配置 */
|
|
2448
|
+
titleNView?: {
|
|
2449
|
+
/**
|
|
2450
|
+
* 标题栏背景颜色
|
|
2451
|
+
*
|
|
2452
|
+
* @format color
|
|
2453
|
+
*/
|
|
2454
|
+
backgroundColor?: HEXColor;
|
|
2455
|
+
/** 标题栏标题文字内容 */
|
|
2456
|
+
titleText?: string;
|
|
2457
|
+
/**
|
|
2458
|
+
* 标题栏标题文字颜色
|
|
2459
|
+
*
|
|
2460
|
+
* @format color
|
|
2461
|
+
*/
|
|
2462
|
+
titleColor?: HEXColor;
|
|
2463
|
+
/**
|
|
2464
|
+
* 标题字体大小
|
|
2465
|
+
*
|
|
2466
|
+
* @default "17px"
|
|
2467
|
+
*/
|
|
2468
|
+
titleSize?: string;
|
|
2469
|
+
/**
|
|
2470
|
+
* 是否显示标题栏上返回键
|
|
2471
|
+
*
|
|
2472
|
+
* @default true
|
|
2473
|
+
*/
|
|
2474
|
+
autoBackButton?: boolean;
|
|
2475
|
+
/** 返回按钮样式 */
|
|
2476
|
+
backButton?: {
|
|
2477
|
+
/**
|
|
2478
|
+
* 返回按钮背景颜色
|
|
2479
|
+
*
|
|
2480
|
+
* @format color
|
|
2481
|
+
*/
|
|
2482
|
+
backgournd?: HEXColor;
|
|
2483
|
+
/**
|
|
2484
|
+
* 返回图标颜色
|
|
2485
|
+
*
|
|
2486
|
+
* @format color
|
|
2487
|
+
*/
|
|
2488
|
+
color?: HEXColor;
|
|
2489
|
+
/**
|
|
2490
|
+
* 返回图标按下时的颜色
|
|
2491
|
+
*
|
|
2492
|
+
* @format color
|
|
2493
|
+
*/
|
|
2494
|
+
colorPressed?: HEXColor;
|
|
2495
|
+
[x: string]: any;
|
|
2496
|
+
};
|
|
2497
|
+
/** 标题栏按钮配置 */
|
|
2498
|
+
buttons?: {
|
|
2499
|
+
/**
|
|
2500
|
+
* 按钮文字颜色
|
|
2501
|
+
*
|
|
2502
|
+
* @format color
|
|
2503
|
+
*/
|
|
2504
|
+
color?: HEXColor;
|
|
2505
|
+
/**
|
|
2506
|
+
* 按钮按下状态文字颜色
|
|
2507
|
+
*
|
|
2508
|
+
* @format color
|
|
2509
|
+
*/
|
|
2510
|
+
colorPressed?: HEXColor;
|
|
2511
|
+
/** 按钮显示位置 */
|
|
2512
|
+
float?: 'left' | 'right';
|
|
2513
|
+
/**
|
|
2514
|
+
* 按钮文字粗细
|
|
2515
|
+
*
|
|
2516
|
+
* @default "normal"
|
|
2517
|
+
*/
|
|
2518
|
+
fontWeight?: 'normal' | 'bold';
|
|
2519
|
+
/**
|
|
2520
|
+
* 按钮文字大小
|
|
2521
|
+
*
|
|
2522
|
+
* @default "22px"
|
|
2523
|
+
*/
|
|
2524
|
+
fontSize?: string;
|
|
2525
|
+
/** 按钮上文字使用的字体文件路径 */
|
|
2526
|
+
fontSrc?: string;
|
|
2527
|
+
/** 按钮显示文字 */
|
|
2528
|
+
text?: string;
|
|
2529
|
+
[x: string]: any;
|
|
2530
|
+
}[];
|
|
2531
|
+
/** 标题栏分割线样式 */
|
|
2532
|
+
splitLine?: {
|
|
2533
|
+
/**
|
|
2534
|
+
* 分割线颜色
|
|
2535
|
+
*
|
|
2536
|
+
* @format color
|
|
2537
|
+
*/
|
|
2538
|
+
color?: HEXColor;
|
|
2539
|
+
/**
|
|
2540
|
+
* 分割线高度
|
|
2541
|
+
*
|
|
2542
|
+
* @default "1px"
|
|
2543
|
+
*/
|
|
2544
|
+
height?: string;
|
|
2545
|
+
[x: string]: any;
|
|
2546
|
+
};
|
|
2547
|
+
};
|
|
2548
|
+
/** 状态栏配置 */
|
|
2549
|
+
statusbar?: {
|
|
2550
|
+
/**
|
|
2551
|
+
* 沉浸式状态栏样式下系统状态栏背景颜色
|
|
2552
|
+
*
|
|
2553
|
+
* @format color
|
|
2554
|
+
*/
|
|
2555
|
+
background?: HEXColor;
|
|
2556
|
+
[x: string]: any;
|
|
2557
|
+
};
|
|
2558
|
+
/**
|
|
2559
|
+
* Webview 顶部偏移量
|
|
2560
|
+
*
|
|
2561
|
+
* @default "0px"
|
|
2562
|
+
*/
|
|
2563
|
+
top?: PxSize | PercentageSize;
|
|
2564
|
+
/**
|
|
2565
|
+
* Webview 窗口高度
|
|
2566
|
+
*
|
|
2567
|
+
* @default "100%"
|
|
2568
|
+
*/
|
|
2569
|
+
height?: PxSize | PercentageSize;
|
|
2570
|
+
/**
|
|
2571
|
+
* Webview 底部偏移量,仅在未同时设置 top 和 height 属性时生效
|
|
2572
|
+
*
|
|
2573
|
+
* @default "0px"
|
|
2574
|
+
*/
|
|
2575
|
+
bottom?: string;
|
|
2576
|
+
/**
|
|
2577
|
+
* 运行环境自动处理返回键的控制逻辑
|
|
2578
|
+
*
|
|
2579
|
+
* @default "none"
|
|
2580
|
+
*/
|
|
2581
|
+
backButtonAutoControl?: 'none' | 'hide' | 'close';
|
|
2582
|
+
/**
|
|
2583
|
+
* 运行环境额外添加HTTP请求头
|
|
2584
|
+
*/
|
|
2585
|
+
additionalHttpHeaders?: Record<string, any>;
|
|
2586
|
+
[x: string]: any;
|
|
2587
|
+
};
|
|
2588
|
+
/** uni 原生插件配置,详见 <https://nativesupport.dcloud.net.cn/NativePlugin/use/use_local_plugin.html> */
|
|
2589
|
+
nativePlugins?: Record<string, Record<string, any>>;
|
|
2590
|
+
/**
|
|
2591
|
+
* 窗口侧滑返回默认效果
|
|
2592
|
+
*
|
|
2593
|
+
* @default "none"
|
|
2594
|
+
*/
|
|
2595
|
+
popGesture?: 'none' | 'close' | 'hide';
|
|
2596
|
+
/** 安全区域配置 */
|
|
2597
|
+
safearea?: {
|
|
2598
|
+
/**
|
|
2599
|
+
* 安全区域背景颜色
|
|
2600
|
+
*
|
|
2601
|
+
* @format color
|
|
2602
|
+
*/
|
|
2603
|
+
background?: HEXColor;
|
|
2604
|
+
/**
|
|
2605
|
+
* 暗黑模式安全区域背景颜色
|
|
2606
|
+
*
|
|
2607
|
+
* @format color
|
|
2608
|
+
*/
|
|
2609
|
+
backgroundDark?: HEXColor;
|
|
2610
|
+
/** 底部安全区域配置 */
|
|
2611
|
+
bottom?: {
|
|
2612
|
+
/**
|
|
2613
|
+
* 安全区域偏移值
|
|
2614
|
+
*
|
|
2615
|
+
* @default "none"
|
|
2616
|
+
*/
|
|
2617
|
+
offset?: 'none' | 'auto';
|
|
2618
|
+
[x: string]: any;
|
|
2619
|
+
};
|
|
2620
|
+
/** 左侧安全区域配置 */
|
|
2621
|
+
left?: {
|
|
2622
|
+
/**
|
|
2623
|
+
* 安全区域偏移值
|
|
2624
|
+
*
|
|
2625
|
+
* @default "none"
|
|
2626
|
+
*/
|
|
2627
|
+
offset?: 'none' | 'auto';
|
|
2628
|
+
[x: string]: any;
|
|
2629
|
+
};
|
|
2630
|
+
/** 右侧安全区域配置 */
|
|
2631
|
+
right?: {
|
|
2632
|
+
/**
|
|
2633
|
+
* 安全区域偏移值
|
|
2634
|
+
*
|
|
2635
|
+
* @default "none"
|
|
2636
|
+
*/
|
|
2637
|
+
offset?: 'none' | 'auto';
|
|
2638
|
+
[x: string]: any;
|
|
2639
|
+
};
|
|
2640
|
+
[x: string]: any;
|
|
2641
|
+
};
|
|
2642
|
+
/** 软键盘相关配置 */
|
|
2643
|
+
softinput?: {
|
|
2644
|
+
/**
|
|
2645
|
+
* iOS 平台软键盘上导航条的显示模式
|
|
2646
|
+
*
|
|
2647
|
+
* @default "auto"
|
|
2648
|
+
*/
|
|
2649
|
+
navBar?: 'auto' | 'none';
|
|
2650
|
+
/**
|
|
2651
|
+
* 是否开启辅助输入功能
|
|
2652
|
+
*
|
|
2653
|
+
* @default false
|
|
2654
|
+
*/
|
|
2655
|
+
auxiliary?: boolean;
|
|
2656
|
+
/**
|
|
2657
|
+
* 弹出系统软键盘模式
|
|
2658
|
+
*
|
|
2659
|
+
* @default "adjustResize"
|
|
2660
|
+
*/
|
|
2661
|
+
mode?: 'adjustResize' | 'adjustPan';
|
|
2662
|
+
[x: string]: any;
|
|
2663
|
+
};
|
|
2664
|
+
/** ssl 相关设置 */
|
|
2665
|
+
ssl?: {
|
|
2666
|
+
/**
|
|
2667
|
+
* https 请求时服务器非受信证书的处理逻辑
|
|
2668
|
+
*
|
|
2669
|
+
* @default "accept"
|
|
2670
|
+
*/
|
|
2671
|
+
untrustedca?: 'accept' | 'refuse' | 'warning';
|
|
2672
|
+
[x: string]: any;
|
|
2673
|
+
};
|
|
2674
|
+
/** 应用启动后的系统状态栏相关配置 */
|
|
2675
|
+
statusbar?: {
|
|
2676
|
+
/**
|
|
2677
|
+
* 沉浸式状态栏样式
|
|
2678
|
+
*
|
|
2679
|
+
* @default "none"
|
|
2680
|
+
*/
|
|
2681
|
+
immersed?: 'none' | 'suggestedDevice' | 'supportedDevice';
|
|
2682
|
+
/**
|
|
2683
|
+
* 系统状态栏样式(前景颜色)
|
|
2684
|
+
*
|
|
2685
|
+
* @default "light"
|
|
2686
|
+
*/
|
|
2687
|
+
style?: 'light' | 'dark';
|
|
2688
|
+
/**
|
|
2689
|
+
* 系统状态栏背景颜色
|
|
2690
|
+
*
|
|
2691
|
+
* @format color
|
|
2692
|
+
*/
|
|
2693
|
+
background?: HEXColor;
|
|
2694
|
+
[x: string]: any;
|
|
2695
|
+
};
|
|
2696
|
+
/**
|
|
2697
|
+
* 应用 UserAgent 相关配置
|
|
2698
|
+
*
|
|
2699
|
+
* @default 系统 UserAgent,并添加 `uni-app Html5Plus/1.0`
|
|
2700
|
+
*/
|
|
2701
|
+
useragent?: AppPlusUserAgent;
|
|
2702
|
+
/** Android 平台应用 UserAgent 相关配置,优先级高于 UserAgent 配置 */
|
|
2703
|
+
useragent_android?: AppPlusUserAgent;
|
|
2704
|
+
/** iOS 平台应用 UserAgent 相关配置,优先级高于 UserAgent 配置 */
|
|
2705
|
+
useragent_ios?: AppPlusUserAgent;
|
|
2706
|
+
/**
|
|
2707
|
+
* 是否开启暗黑模式,详见 <https://uniapp.dcloud.net.cn/tutorial/darkmode.html#app-plus>
|
|
2708
|
+
*/
|
|
2709
|
+
darkmode?: boolean;
|
|
2710
|
+
/**
|
|
2711
|
+
* 主题配置文件路径,darkmode 开启时生效
|
|
2712
|
+
*
|
|
2713
|
+
* @default "theme.json"
|
|
2714
|
+
*/
|
|
2715
|
+
themeLocation?: string;
|
|
2716
|
+
[x: string]: any;
|
|
2717
|
+
}
|
|
2718
|
+
//#endregion
|
|
2719
|
+
//#region src/manifest/interfaces/h5.d.ts
|
|
2720
|
+
interface H5 {
|
|
2721
|
+
/**
|
|
2722
|
+
* 页面标题,默认使用顶层 name 字段
|
|
2723
|
+
*/
|
|
2724
|
+
title?: string;
|
|
2725
|
+
/**
|
|
2726
|
+
* 相对于应用根目录的 index.html 模板路径,可定制生成的 HTML 代码,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#h5-template>
|
|
2727
|
+
*
|
|
2728
|
+
* Vue3 暂不支持
|
|
2729
|
+
*/
|
|
2730
|
+
template?: string;
|
|
2731
|
+
/** 路由设置,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#h5-router> */
|
|
2732
|
+
router?: {
|
|
2733
|
+
/**
|
|
2734
|
+
* 路由跳转模式
|
|
2735
|
+
*
|
|
2736
|
+
* @default "hash"
|
|
2737
|
+
*/
|
|
2738
|
+
mode?: 'hash' | 'history';
|
|
2739
|
+
/**
|
|
2740
|
+
* 应用基础路径
|
|
2741
|
+
*
|
|
2742
|
+
* @default "/"
|
|
2743
|
+
*/
|
|
2744
|
+
base?: string;
|
|
2745
|
+
[x: string]: any;
|
|
2746
|
+
};
|
|
2747
|
+
/** 加载相关设置,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#h5-async> */
|
|
2748
|
+
async?: {
|
|
2749
|
+
/**
|
|
2750
|
+
* 页面 JavaScript 加载时使用的组件,需注册为全局组件
|
|
2751
|
+
*
|
|
2752
|
+
* @default "AsyncLoading"
|
|
2753
|
+
*/
|
|
2754
|
+
loading?: string;
|
|
2755
|
+
/**
|
|
2756
|
+
* 页面 JavaScript 加载失败时使用的组件,需注册为全局组件
|
|
2757
|
+
*
|
|
2758
|
+
* @default "AsyncError"
|
|
2759
|
+
*/
|
|
2760
|
+
error?: string;
|
|
2761
|
+
/**
|
|
2762
|
+
* 显示加载中组件的延时时间,如果在延时内加载完成,则不会显示加载中组件,单位为 ms
|
|
2763
|
+
*
|
|
2764
|
+
* @default 200
|
|
2765
|
+
*/
|
|
2766
|
+
delay?: number;
|
|
2767
|
+
/**
|
|
2768
|
+
* 加载超时时间,如果超时,则显示加载失败组件,单位为 ms
|
|
2769
|
+
*
|
|
2770
|
+
* @default 60000
|
|
2771
|
+
*/
|
|
2772
|
+
timeout?: number;
|
|
2773
|
+
[x: string]: any;
|
|
2774
|
+
};
|
|
2775
|
+
/**
|
|
2776
|
+
* 开发环境 server 设置,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#devserver>
|
|
2777
|
+
*/
|
|
2778
|
+
devServer?: {
|
|
2779
|
+
/**
|
|
2780
|
+
* 是否启用 HTTPS 协议
|
|
2781
|
+
*
|
|
2782
|
+
* @default false
|
|
2783
|
+
*/
|
|
2784
|
+
https?: boolean;
|
|
2785
|
+
/**
|
|
2786
|
+
* 开发服务端口
|
|
2787
|
+
*
|
|
2788
|
+
* @default Vue2 8080, Vue3 3000
|
|
2789
|
+
*/
|
|
2790
|
+
port?: number;
|
|
2791
|
+
/**
|
|
2792
|
+
* 是否禁用 host 检查
|
|
2793
|
+
*
|
|
2794
|
+
* @default false
|
|
2795
|
+
*/
|
|
2796
|
+
disableHostCheck?: boolean;
|
|
2797
|
+
[x: string]: any;
|
|
2798
|
+
};
|
|
2799
|
+
/** 引用资源的地址前缀,仅 Vue2 发布时生效,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#publicpath> */
|
|
2800
|
+
publicPath?: string;
|
|
2801
|
+
/** SDK 配置 */
|
|
2802
|
+
sdkConfigs?: {
|
|
2803
|
+
/** 地图服务商 SDK 配置,使用地图以及位置(IP 定位及坐标转换)需要配置此项 */
|
|
2804
|
+
maps?: {
|
|
2805
|
+
/** 腾讯地图,HBuilderX 4.36 以下版本使用 */
|
|
2806
|
+
qqmap?: {
|
|
2807
|
+
/** 腾讯地图密钥,申请地址 <https://lbs.qq.com/dev/console/key/manage> */
|
|
2808
|
+
key?: string;
|
|
2809
|
+
[x: string]: any;
|
|
2810
|
+
};
|
|
2811
|
+
/** 腾讯地图,HBuilderX 4.36 及以上版本使用 */
|
|
2812
|
+
tencent?: {
|
|
2813
|
+
/** 腾讯地图密钥,申请地址 <https://lbs.qq.com/dev/console/key/manage> */
|
|
2814
|
+
key?: string;
|
|
2815
|
+
[x: string]: any;
|
|
2816
|
+
};
|
|
2817
|
+
/** 谷歌地图,HBuilderX 3.2.10+ */
|
|
2818
|
+
google?: {
|
|
2819
|
+
/** 谷歌地图密钥,申请地址 <https://developers.google.com/maps/documentation/javascript/get-api-key> */
|
|
2820
|
+
key?: string;
|
|
2821
|
+
[x: string]: any;
|
|
2822
|
+
};
|
|
2823
|
+
/** 高德地图,HBuilderX 3.6.0+ */
|
|
2824
|
+
amap?: {
|
|
2825
|
+
/** 高德地图密钥,申请地址 <https://console.amap.com/dev/key/app> */
|
|
2826
|
+
key?: string;
|
|
2827
|
+
/** 高德地图安全密钥,申请地址 <https://console.amap.com/dev/key/app> */
|
|
2828
|
+
securityJsCode?: string;
|
|
2829
|
+
/** 高德地图安全密钥代理服务器地址,参考 <https://lbs.amap.com/api/jsapi-v2/guide/abc/prepare> */
|
|
2830
|
+
serviceHost?: string;
|
|
2831
|
+
[x: string]: any;
|
|
2832
|
+
};
|
|
2833
|
+
/** 百度地图,HBuilderX 3.99+ */
|
|
2834
|
+
bmap?: {
|
|
2835
|
+
/** 百度地图密钥,申请地址 <http://lbsyun.baidu.com/apiconsole/key#/home> */
|
|
2836
|
+
key?: string;
|
|
2837
|
+
[x: string]: any;
|
|
2838
|
+
};
|
|
2839
|
+
[x: string]: any;
|
|
2840
|
+
};
|
|
2841
|
+
[x: string]: any;
|
|
2842
|
+
};
|
|
2843
|
+
/** 打包优化配置,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#optimization> */
|
|
2844
|
+
optimization?: {
|
|
2845
|
+
/**
|
|
2846
|
+
* 资源预获取
|
|
2847
|
+
*
|
|
2848
|
+
* @default false
|
|
2849
|
+
*/
|
|
2850
|
+
prefetch?: boolean;
|
|
2851
|
+
/**
|
|
2852
|
+
* 资源预加载
|
|
2853
|
+
*
|
|
2854
|
+
* @default false
|
|
2855
|
+
*/
|
|
2856
|
+
preload?: boolean;
|
|
2857
|
+
/** 摇树优化,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#treeshaking> */
|
|
2858
|
+
treeShaking?: {
|
|
2859
|
+
/**
|
|
2860
|
+
* 是否开启摇树优化
|
|
2861
|
+
*
|
|
2862
|
+
* @default false
|
|
2863
|
+
*/
|
|
2864
|
+
enable?: boolean;
|
|
2865
|
+
[x: string]: any;
|
|
2866
|
+
};
|
|
2867
|
+
[x: string]: any;
|
|
2868
|
+
};
|
|
2869
|
+
/** uni 统计配置项 */
|
|
2870
|
+
uniStatistics?: PlatformUniStatistics;
|
|
2871
|
+
/**
|
|
2872
|
+
* 是否开启暗黑模式,详见 <https://uniapp.dcloud.net.cn/tutorial/darkmode.html#h5>
|
|
2873
|
+
*/
|
|
2874
|
+
darkmode?: boolean;
|
|
2875
|
+
/**
|
|
2876
|
+
* 主题配置文件路径,darkmode 开启时生效
|
|
2877
|
+
*
|
|
2878
|
+
* @default "theme.json"
|
|
2879
|
+
*/
|
|
2880
|
+
themeLocation?: string;
|
|
2881
|
+
[x: string]: any;
|
|
2882
|
+
}
|
|
2883
|
+
//#endregion
|
|
2884
|
+
//#region src/manifest/interfaces/hbuilderx.d.ts
|
|
2885
|
+
interface HBuilderX {
|
|
2886
|
+
/** 云端打包时配置的自定义渠道信息 */
|
|
2887
|
+
channel_list?: string[];
|
|
2888
|
+
[x: string]: any;
|
|
2889
|
+
}
|
|
2890
|
+
//#endregion
|
|
2891
|
+
//#region src/manifest/interfaces/mp-alipay.d.ts
|
|
2892
|
+
/** 插件联调版本信息映射 */
|
|
2893
|
+
interface AlipayPluginVersionMap {
|
|
2894
|
+
[x: string]: {
|
|
2895
|
+
/** 插件联调版本信息 */
|
|
2896
|
+
version: string;
|
|
2897
|
+
[x: string]: any;
|
|
2898
|
+
};
|
|
2899
|
+
}
|
|
2900
|
+
interface MpAlipay {
|
|
2901
|
+
/** 使用到的插件,详见 <https://opendocs.alipay.com/mini/plugin/plugin-usage> */
|
|
2902
|
+
plugins?: Record<string, Record<string, any>>;
|
|
2903
|
+
/**
|
|
2904
|
+
* 旧版项目配置,是否启用 component2 编译,详见 <https://opendocs.alipay.com/mini/framework/custom-component-overview>
|
|
2905
|
+
*
|
|
2906
|
+
* @default true
|
|
2907
|
+
*/
|
|
2908
|
+
component2?: boolean;
|
|
2909
|
+
/**
|
|
2910
|
+
* 旧版项目配置,是否启用小程序基础库 2.0 构建,详见 <https://opendocs.alipay.com/mini/framework/project>
|
|
2911
|
+
*
|
|
2912
|
+
* @default true
|
|
2913
|
+
*/
|
|
2914
|
+
enableAppxNg?: boolean;
|
|
2915
|
+
/**
|
|
2916
|
+
* 旧版项目配置,是否开启 axml 严格语法检查
|
|
2917
|
+
*
|
|
2918
|
+
* @default false
|
|
2919
|
+
*/
|
|
2920
|
+
axmlStrictCheck?: boolean;
|
|
2921
|
+
/**
|
|
2922
|
+
* 旧版项目配置,是否启用多进程编译
|
|
2923
|
+
*
|
|
2924
|
+
* @default false
|
|
2925
|
+
*/
|
|
2926
|
+
enableParallelLoader?: boolean;
|
|
2927
|
+
/**
|
|
2928
|
+
* 旧版项目配置,是否压缩编译产物,仅在真机预览/真机调试时生效
|
|
2929
|
+
*
|
|
2930
|
+
* @default false
|
|
2931
|
+
*/
|
|
2932
|
+
enableDistFileMinify?: boolean;
|
|
2933
|
+
/**
|
|
2934
|
+
* 旧版项目配置,初始化小程序时,是否隐藏默认 loading 动画
|
|
2935
|
+
*
|
|
2936
|
+
* @default true
|
|
2937
|
+
*/
|
|
2938
|
+
nonLoadingIndicator?: boolean;
|
|
2939
|
+
/** 旧版项目配置,打包时需要包含的文件/文件夹,遵循 Glob 语法,详见 <https://opendocs.alipay.com/mini/framework/project#include%20%E6%89%93%E5%8C%85%E7%99%BD%E5%90%8D%E5%8D%95> */
|
|
2940
|
+
include?: string[];
|
|
2941
|
+
/** 旧版项目配置,打包时需要忽略的文件/文件夹,遵循 Glob 语法,详见 <https://opendocs.alipay.com/mini/framework/project#exclude%20%E6%89%93%E5%8C%85%E9%BB%91%E5%90%8D%E5%8D%95> */
|
|
2942
|
+
exclude?: string[];
|
|
2943
|
+
/**
|
|
2944
|
+
* 旧版项目配置, appx 2.0 特性,对 node_modules 中的模块做 babel 编译
|
|
2945
|
+
*
|
|
2946
|
+
* @default true
|
|
2947
|
+
*/
|
|
2948
|
+
enableNodeModuleBabelTransform?: boolean;
|
|
2949
|
+
/**
|
|
2950
|
+
* 自定义预处理脚本,详见 <https://opendocs.alipay.com/mini/framework/project#%E9%A2%84%E5%A4%84%E7%90%86%E8%84%9A%E6%9C%AC>
|
|
2951
|
+
*/
|
|
2952
|
+
scripts?: Record<'watch' | 'beforeCompile' | 'beforePreview' | 'beforeUpload', string>;
|
|
2953
|
+
/** 是否使用新版项目配置 */
|
|
2954
|
+
format?: 2;
|
|
2955
|
+
/** 新版项目配置,编译相关的配置 */
|
|
2956
|
+
compileOptions?: {
|
|
2957
|
+
/**
|
|
2958
|
+
* 自定义组件是否开启新的生命周期运行模型,详见 <https://opendocs.alipay.com/mini/framework/component-lifecycle>
|
|
2959
|
+
*
|
|
2960
|
+
* 如果在 app.json 中开启了 plugins 或 useDynamicPlugins 则会强制开启 component2 运行模式
|
|
2961
|
+
*
|
|
2962
|
+
* @default false
|
|
2963
|
+
*/
|
|
2964
|
+
component2?: boolean;
|
|
2965
|
+
/**
|
|
2966
|
+
* 小程序是否启用 typescript 支持,详见 <https://opendocs.alipay.com/mini/02zko2>
|
|
2967
|
+
*
|
|
2968
|
+
* @default false
|
|
2969
|
+
*/
|
|
2970
|
+
typescript?: boolean;
|
|
2971
|
+
/**
|
|
2972
|
+
* 小程序是否启用 less 支持,详见 <https://opendocs.alipay.com/mini/02zko2>
|
|
2973
|
+
*
|
|
2974
|
+
* @default false
|
|
2975
|
+
*/
|
|
2976
|
+
less?: boolean;
|
|
2977
|
+
/**
|
|
2978
|
+
* 是否在生产构建时进行 tree shaking 优化
|
|
2979
|
+
*
|
|
2980
|
+
* @default false
|
|
2981
|
+
*/
|
|
2982
|
+
treeShaking?: boolean;
|
|
2983
|
+
/**
|
|
2984
|
+
* IDE 3.7.5 开始支持路径别名配置,详见 <https://opendocs.alipay.com/mini/03dbc3#resolveAlias>
|
|
2985
|
+
*/
|
|
2986
|
+
resolveAlias?: Record<string, string>;
|
|
2987
|
+
/**
|
|
2988
|
+
* 小程序全局对象(global/globalThis)访问策略,详见 <https://opendocs.alipay.com/mini/03dbc3#globalObjectMode>
|
|
2989
|
+
*
|
|
2990
|
+
* "legacy" 禁止访问全局对象
|
|
2991
|
+
*
|
|
2992
|
+
* "enable" 可访问到真实的小程序 JavaScript 全局对象 global 与 globalThis
|
|
2993
|
+
*
|
|
2994
|
+
* "fake" 可访问到一个全局挂载的虚拟空对象
|
|
2995
|
+
*/
|
|
2996
|
+
globalObjectMode?: 'legacy' | 'enable' | 'fake';
|
|
2997
|
+
/** 小程序代码转 ES5 配置(新),详见 <https://opendocs.alipay.com/mini/03dbc3#transpile> */
|
|
2998
|
+
transpile?: {
|
|
2999
|
+
/** 小程序代码转 ES5 配置 */
|
|
3000
|
+
script?: {
|
|
3001
|
+
/** 通过 glob 规则跳过某些文件/目录的转译 */
|
|
3002
|
+
ignore?: string[];
|
|
3003
|
+
[x: string]: any;
|
|
3004
|
+
};
|
|
3005
|
+
[x: string]: any;
|
|
3006
|
+
};
|
|
3007
|
+
[x: string]: any;
|
|
3008
|
+
};
|
|
3009
|
+
/**
|
|
3010
|
+
* 新版项目配置,用户本地代码上传时需要忽略的文件
|
|
3011
|
+
*
|
|
3012
|
+
* 字段接受一个字符串数组,支持 glob 语法,底层使用 minimatch 3.0.4 版本进行匹配
|
|
3013
|
+
*/
|
|
3014
|
+
uploadExclude?: string[];
|
|
3015
|
+
/**
|
|
3016
|
+
* 新版项目配置,用户构建后需要打包至产物中的资产
|
|
3017
|
+
*
|
|
3018
|
+
* 字段接受一个字符串数组,支持 glob 语法,底层使用 minimatch 3.0.4 版本进行匹配
|
|
3019
|
+
*/
|
|
3020
|
+
assetsInclude?: string[];
|
|
3021
|
+
/**
|
|
3022
|
+
* 新版项目配置,本地开发的相关配置,详见 <https://opendocs.alipay.com/mini/03dbc3#developOptions>
|
|
3023
|
+
*/
|
|
3024
|
+
developOptions?: {
|
|
3025
|
+
/**
|
|
3026
|
+
* 是否开启产物热更新,配置后开启模拟器热更新,支持 AXML、ACSS、JS 文件中的 method
|
|
3027
|
+
*
|
|
3028
|
+
* @default false
|
|
3029
|
+
*/
|
|
3030
|
+
hotReload?: boolean;
|
|
3031
|
+
/**
|
|
3032
|
+
* 是否开启多进程构建
|
|
3033
|
+
*
|
|
3034
|
+
* @default true
|
|
3035
|
+
*/
|
|
3036
|
+
parallel?: boolean;
|
|
3037
|
+
/**
|
|
3038
|
+
* IDE 3.8.1 开始支持,是否开启生成 sourcemap
|
|
3039
|
+
*
|
|
3040
|
+
* @default true
|
|
3041
|
+
*/
|
|
3042
|
+
sourcemap?: boolean;
|
|
3043
|
+
/**
|
|
3044
|
+
* IDE 3.8.1 开始支持,是否开启代码压缩
|
|
3045
|
+
*
|
|
3046
|
+
* @default true
|
|
3047
|
+
*/
|
|
3048
|
+
minify?: boolean;
|
|
3049
|
+
/**
|
|
3050
|
+
* IDE 3.8.8 开始支持,是否跳过 ES5 转译,以加快开发时构建速度
|
|
3051
|
+
*
|
|
3052
|
+
* @default false
|
|
3053
|
+
*/
|
|
3054
|
+
skipTranspile?: boolean;
|
|
3055
|
+
/**
|
|
3056
|
+
* IDE 3.8.8 开始支持,是否按需编译页面,以加快开发时构建速度
|
|
3057
|
+
*
|
|
3058
|
+
* 必须在 app.json 中同时开启 lazyCodeLoading
|
|
3059
|
+
*
|
|
3060
|
+
* @default false
|
|
3061
|
+
*/
|
|
3062
|
+
lazyCompile?: boolean;
|
|
3063
|
+
[x: string]: any;
|
|
3064
|
+
};
|
|
3065
|
+
/**
|
|
3066
|
+
* 新版项目配置,插件联调选项,详见 <https://opendocs.alipay.com/mini/03dbc3#pluginResolution>
|
|
3067
|
+
*/
|
|
3068
|
+
pluginResolution?: {
|
|
3069
|
+
/**
|
|
3070
|
+
* 是否启用调试配置
|
|
3071
|
+
*
|
|
3072
|
+
* @default false
|
|
3073
|
+
*/
|
|
3074
|
+
enable?: boolean;
|
|
3075
|
+
/** 指定插件联调的静态插件版本 */
|
|
3076
|
+
plugins?: AlipayPluginVersionMap;
|
|
3077
|
+
/** 指定插件联调的动态插件版本 */
|
|
3078
|
+
dynamicPlugins?: AlipayPluginVersionMap;
|
|
3079
|
+
[x: string]: any;
|
|
3080
|
+
};
|
|
3081
|
+
/** uni 统计配置项 */
|
|
3082
|
+
uniStatistics?: PlatformUniStatistics;
|
|
3083
|
+
/**
|
|
3084
|
+
* Vue2 作用域插槽编译模式
|
|
3085
|
+
*
|
|
3086
|
+
* @default "auto"
|
|
3087
|
+
*/
|
|
3088
|
+
scopedSlotsCompiler?: 'auto' | 'legacy' | 'augmented';
|
|
3089
|
+
/**
|
|
3090
|
+
* 是否合并组件虚拟节点外层属性,uni-app 3.5.1+ 开始支持
|
|
3091
|
+
*
|
|
3092
|
+
* 目前支持 id(v4.42+)、style(v3.5.1+)、class(v3.5.1+)以及 v-show 指令生成的 hidden(v4.41+)属性
|
|
3093
|
+
*/
|
|
3094
|
+
mergeVirtualHostAttributes?: boolean;
|
|
3095
|
+
/** 模拟单个作用域插槽渲染为多个实例,此配置仅限 Vue2 环境 3.7.12+,Vue3 环境已默认支持 */
|
|
3096
|
+
slotMultipleInstance?: boolean;
|
|
3097
|
+
/**
|
|
3098
|
+
* 是否开启代码按需执行,详见 <https://opendocs.alipay.com/mini/framework/app-json#lazyCodeLoading>
|
|
3099
|
+
*
|
|
3100
|
+
* "requiredComponents" 按需加载页面
|
|
3101
|
+
*
|
|
3102
|
+
* "renderedComponents" 按需加载页面和组件
|
|
3103
|
+
*/
|
|
3104
|
+
lazyCodeLoading?: 'requiredComponents' | 'renderedComponents';
|
|
3105
|
+
/**
|
|
3106
|
+
* 组件样式隔离方式,uni-app 3.99+ 开始支持,详见 <https://opendocs.alipay.com/mini/framework/page-acss>
|
|
3107
|
+
*
|
|
3108
|
+
* @default "apply-shared"
|
|
3109
|
+
*/
|
|
3110
|
+
styleIsolation?: 'apply-shared' | 'shared';
|
|
3111
|
+
/** 支付宝小程序平台的原生组件 */
|
|
3112
|
+
nativeTags?: string[];
|
|
3113
|
+
[x: string]: any;
|
|
3114
|
+
}
|
|
3115
|
+
//#endregion
|
|
3116
|
+
//#region src/manifest/interfaces/mp-baidu.d.ts
|
|
3117
|
+
interface MpBaidu {
|
|
3118
|
+
/** 百度小程序的 appid */
|
|
3119
|
+
appid?: string;
|
|
3120
|
+
/** 项目名称 */
|
|
3121
|
+
projectname?: string;
|
|
3122
|
+
/**
|
|
3123
|
+
* 需要在后台使用的能力
|
|
3124
|
+
*
|
|
3125
|
+
* "audio" 背景音频播放
|
|
3126
|
+
*/
|
|
3127
|
+
requiredBackgroundModes?: 'audio'[];
|
|
3128
|
+
/** 预请求的所有 url 的列表,详见 <https://smartprogram.baidu.com/docs/develop/tutorial/process/#prefetches> */
|
|
3129
|
+
prefetches?: string[];
|
|
3130
|
+
/** 优化配置 */
|
|
3131
|
+
optimization?: {
|
|
3132
|
+
/** 是否开启分包优化 */
|
|
3133
|
+
subPackages?: boolean;
|
|
3134
|
+
[x: string]: any;
|
|
3135
|
+
};
|
|
3136
|
+
/** uni 统计配置项 */
|
|
3137
|
+
uniStatistics?: PlatformUniStatistics;
|
|
3138
|
+
/**
|
|
3139
|
+
* Vue2 作用域插槽编译模式,uni-app 3.1.19+ 开始支持
|
|
3140
|
+
*
|
|
3141
|
+
* @default "auto"
|
|
3142
|
+
*/
|
|
3143
|
+
scopedSlotsCompiler?: 'auto' | 'legacy' | 'augmented';
|
|
3144
|
+
/** 模拟单个作用域插槽渲染为多个实例,此配置仅限 Vue2 环境 3.7.12+,Vue3 环境已默认支持 */
|
|
3145
|
+
slotMultipleInstance?: boolean;
|
|
3146
|
+
/** 动态库,详见 <https://smartprogram.baidu.com/docs/develop/framework/dynamiclib_use/> */
|
|
3147
|
+
dynamicLib?: Record<string, Record<string, string>>;
|
|
3148
|
+
/** 百度小程序平台的原生组件 */
|
|
3149
|
+
nativeTags?: string[];
|
|
3150
|
+
[x: string]: any;
|
|
3151
|
+
}
|
|
3152
|
+
//#endregion
|
|
3153
|
+
//#region src/manifest/interfaces/mp-harmony.d.ts
|
|
3154
|
+
/**
|
|
3155
|
+
* HarmonyOS 元服务签名配置
|
|
3156
|
+
*/
|
|
3157
|
+
interface MpHarmonySigningConfig {
|
|
3158
|
+
/** 私钥库文件 */
|
|
3159
|
+
storeFile?: string;
|
|
3160
|
+
/**
|
|
3161
|
+
* 私钥库访问密码
|
|
3162
|
+
*
|
|
3163
|
+
* 用于访问密钥库的加密密码
|
|
3164
|
+
*/
|
|
3165
|
+
storePassword?: string;
|
|
3166
|
+
/**
|
|
3167
|
+
* 私钥库里面的私钥别名
|
|
3168
|
+
*
|
|
3169
|
+
* 用于标识密钥的别名,如 debugKey
|
|
3170
|
+
*/
|
|
3171
|
+
keyAlias?: string;
|
|
3172
|
+
/**
|
|
3173
|
+
* 私钥访问密码
|
|
3174
|
+
*
|
|
3175
|
+
* 用于访问私钥的加密密码
|
|
3176
|
+
*/
|
|
3177
|
+
keyPassword?: string;
|
|
3178
|
+
/**
|
|
3179
|
+
* 签名算法,固定为 "SHA256withECDSA"
|
|
3180
|
+
*/
|
|
3181
|
+
signAlg?: string;
|
|
3182
|
+
/**
|
|
3183
|
+
* 证书文件
|
|
3184
|
+
*
|
|
3185
|
+
* 指向 .cer 证书文件的路径
|
|
3186
|
+
*/
|
|
3187
|
+
certpath?: string;
|
|
3188
|
+
/** 签名描述文件 */
|
|
3189
|
+
profile?: string;
|
|
3190
|
+
}
|
|
3191
|
+
/**
|
|
3192
|
+
* HarmonyOS 元服务分发配置
|
|
3193
|
+
*/
|
|
3194
|
+
interface MpHarmonyDistribute {
|
|
3195
|
+
/**
|
|
3196
|
+
* 元服务包名
|
|
3197
|
+
*
|
|
3198
|
+
* 固定格式为 com.atomicservice.[纯数字 appId]
|
|
3199
|
+
*/
|
|
3200
|
+
bundleName?: string;
|
|
3201
|
+
/**
|
|
3202
|
+
* 证书签名配置
|
|
3203
|
+
*
|
|
3204
|
+
* 用于配置鸿蒙打包时使用的数字签名证书信息,可分别配置调试证书和发布证书两组信息
|
|
3205
|
+
*/
|
|
3206
|
+
signingConfigs?: {
|
|
3207
|
+
/**
|
|
3208
|
+
* 调试证书配置
|
|
3209
|
+
*/
|
|
3210
|
+
default?: MpHarmonySigningConfig;
|
|
3211
|
+
/**
|
|
3212
|
+
* 发布证书配置
|
|
3213
|
+
*/
|
|
3214
|
+
release?: MpHarmonySigningConfig;
|
|
3215
|
+
/**
|
|
3216
|
+
* 其他签名配置
|
|
3217
|
+
*/
|
|
3218
|
+
[configName: string]: MpHarmonySigningConfig | undefined;
|
|
3219
|
+
};
|
|
3220
|
+
/**
|
|
3221
|
+
* 鸿蒙元服务平台的原生组件
|
|
3222
|
+
*
|
|
3223
|
+
* 支持版本:4.81+
|
|
3224
|
+
*/
|
|
3225
|
+
nativeTags?: string[];
|
|
3226
|
+
}
|
|
3227
|
+
/**
|
|
3228
|
+
* HarmonyOS 元服务配置
|
|
3229
|
+
*
|
|
3230
|
+
* 鸿蒙元服务项目设置,目前只支持一个 distribute 属性
|
|
3231
|
+
*/
|
|
3232
|
+
interface MpHarmony {
|
|
3233
|
+
/**
|
|
3234
|
+
* HarmonyOS 元服务分发配置
|
|
3235
|
+
*
|
|
3236
|
+
* 包含元服务包名、签名配置、原生组件等分发相关的设置
|
|
3237
|
+
*/
|
|
3238
|
+
distribute?: MpHarmonyDistribute;
|
|
3239
|
+
/**
|
|
3240
|
+
* 其他扩展配置
|
|
3241
|
+
*
|
|
3242
|
+
* 支持其他 HarmonyOS 元服务平台特有的配置项
|
|
3243
|
+
*/
|
|
3244
|
+
[x: string]: any;
|
|
3245
|
+
}
|
|
3246
|
+
//#endregion
|
|
3247
|
+
//#region src/manifest/interfaces/mp-kuaishou.d.ts
|
|
3248
|
+
interface MpKuaishou {
|
|
3249
|
+
/** 快手小程序的 appid */
|
|
3250
|
+
appid?: string;
|
|
3251
|
+
/** 项目名称 */
|
|
3252
|
+
projectname?: string;
|
|
3253
|
+
/** 优化配置 */
|
|
3254
|
+
optimization?: {
|
|
3255
|
+
/** 是否开启分包优化 */
|
|
3256
|
+
subPackages?: boolean;
|
|
3257
|
+
[x: string]: any;
|
|
3258
|
+
};
|
|
3259
|
+
/** uni 统计配置项 */
|
|
3260
|
+
uniStatistics?: PlatformUniStatistics;
|
|
3261
|
+
/**
|
|
3262
|
+
* Vue2 作用域插槽编译模式,uni-app 3.1.19+ 开始支持
|
|
3263
|
+
*
|
|
3264
|
+
* @default "augmented"
|
|
3265
|
+
*/
|
|
3266
|
+
scopedSlotsCompiler?: 'auto' | 'legacy' | 'augmented';
|
|
3267
|
+
/** 模拟单个作用域插槽渲染为多个实例,此配置仅限 Vue2 环境 3.7.12+,Vue3 环境已默认支持 */
|
|
3268
|
+
slotMultipleInstance?: boolean;
|
|
3269
|
+
/** 快手小程序平台的原生组件 */
|
|
3270
|
+
nativeTags?: string[];
|
|
3271
|
+
[x: string]: any;
|
|
3272
|
+
}
|
|
3273
|
+
//#endregion
|
|
3274
|
+
//#region src/manifest/interfaces/mp-lark.d.ts
|
|
3275
|
+
interface MpLark {
|
|
3276
|
+
/** 飞书小程序的 appid */
|
|
3277
|
+
appid?: string;
|
|
3278
|
+
/** 项目名称 */
|
|
3279
|
+
projectname?: string;
|
|
3280
|
+
/** 飞书小程序项目设置 */
|
|
3281
|
+
setting?: {
|
|
3282
|
+
/**
|
|
3283
|
+
* 是否启用 ES6 转 ES5
|
|
3284
|
+
*
|
|
3285
|
+
* @default true
|
|
3286
|
+
*/
|
|
3287
|
+
es6?: boolean;
|
|
3288
|
+
/**
|
|
3289
|
+
* 上传代码时是否自动压缩
|
|
3290
|
+
*
|
|
3291
|
+
* @default true
|
|
3292
|
+
*/
|
|
3293
|
+
minified?: boolean;
|
|
3294
|
+
/** 上传代码时样式是否自动补全 */
|
|
3295
|
+
postcss?: boolean;
|
|
3296
|
+
/** 是否校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书 */
|
|
3297
|
+
urlCheck?: boolean;
|
|
3298
|
+
/** Babel 的配置项 */
|
|
3299
|
+
babelSetting?: {
|
|
3300
|
+
/** 需要跳过 Babel 编译(包括代码压缩)处理的文件或目录 */
|
|
3301
|
+
ignore?: string[];
|
|
3302
|
+
};
|
|
3303
|
+
[x: string]: any;
|
|
3304
|
+
};
|
|
3305
|
+
/** uni 统计配置项 */
|
|
3306
|
+
uniStatistics?: PlatformUniStatistics;
|
|
3307
|
+
/**
|
|
3308
|
+
* Vue2 作用域插槽编译模式,uni-app 3.1.19+ 开始支持
|
|
3309
|
+
*
|
|
3310
|
+
* @default "auto"
|
|
3311
|
+
*/
|
|
3312
|
+
scopedSlotsCompiler?: 'auto' | 'legacy' | 'augmented';
|
|
3313
|
+
/** 模拟单个作用域插槽渲染为多个实例,此配置仅限 Vue2 环境 3.7.12+,Vue3 环境已默认支持 */
|
|
3314
|
+
slotMultipleInstance?: boolean;
|
|
3315
|
+
/** 飞书小程序平台的原生组件 */
|
|
3316
|
+
nativeTags?: string[];
|
|
3317
|
+
[x: string]: any;
|
|
3318
|
+
}
|
|
3319
|
+
//#endregion
|
|
3320
|
+
//#region src/manifest/interfaces/mp-qq.d.ts
|
|
3321
|
+
interface MpQq {
|
|
3322
|
+
/** QQ 小程序的 appid */
|
|
3323
|
+
appid?: string;
|
|
3324
|
+
/** 项目名称 */
|
|
3325
|
+
projectname?: string;
|
|
3326
|
+
/**
|
|
3327
|
+
* 需要在后台使用的能力,详见 <https://q.qq.com/wiki/develop/miniprogram/frame/dispose.html#requiredbackgroundmodes>
|
|
3328
|
+
*
|
|
3329
|
+
* "audio" 后台音乐播放
|
|
3330
|
+
*/
|
|
3331
|
+
requiredBackgroundModes?: 'audio'[];
|
|
3332
|
+
/** 需要跳转的 QQ 小程序列表,详见 <https://q.qq.com/wiki/develop/miniprogram/frame/dispose.html#navigatetominiprogramappidlist> */
|
|
3333
|
+
navigateToMiniProgramAppIdList?: string[];
|
|
3334
|
+
/** 接口权限设置,详见 <https://q.qq.com/wiki/develop/miniprogram/frame/dispose.html#permission> */
|
|
3335
|
+
permission?: Record<'scope.userLocation', {
|
|
3336
|
+
/** 小程序获取权限时展示的接口用途说明 */
|
|
3337
|
+
desc: string;
|
|
3338
|
+
}>;
|
|
3339
|
+
/** Worker 代码目录,详见 <https://q.qq.com/wiki/develop/miniprogram/frame/dispose.html#workers> */
|
|
3340
|
+
workers?: string;
|
|
3341
|
+
/** 需要打开群资料卡的群号列表,详见 <https://q.qq.com/wiki/develop/miniprogram/frame/dispose.html#groupidlist> */
|
|
3342
|
+
groupIdList?: string[];
|
|
3343
|
+
/** 优化配置 */
|
|
3344
|
+
optimization?: {
|
|
3345
|
+
/** 是否开启分包优化 */
|
|
3346
|
+
subPackages?: boolean;
|
|
3347
|
+
[x: string]: any;
|
|
3348
|
+
};
|
|
3349
|
+
/** uni 统计配置项 */
|
|
3350
|
+
uniStatistics?: PlatformUniStatistics;
|
|
3351
|
+
/**
|
|
3352
|
+
* Vue2 作用域插槽编译模式,uni-app 3.1.19+ 开始支持
|
|
3353
|
+
*
|
|
3354
|
+
* @default "auto"
|
|
3355
|
+
*/
|
|
3356
|
+
scopedSlotsCompiler?: 'auto' | 'legacy' | 'augmented';
|
|
3357
|
+
/** 模拟单个作用域插槽渲染为多个实例,此配置仅限 Vue2 环境 3.7.12+,Vue3 环境已默认支持 */
|
|
3358
|
+
slotMultipleInstance?: boolean;
|
|
3359
|
+
/** QQ 小程序平台的原生组件 */
|
|
3360
|
+
nativeTags?: string[];
|
|
3361
|
+
[x: string]: any;
|
|
3362
|
+
}
|
|
3363
|
+
//#endregion
|
|
3364
|
+
//#region src/manifest/interfaces/mp-toutiao.d.ts
|
|
3365
|
+
interface MpToutiao {
|
|
3366
|
+
/** 字节跳动小程序的 appid */
|
|
3367
|
+
appid?: string;
|
|
3368
|
+
/** 项目名称 */
|
|
3369
|
+
projectname?: string;
|
|
3370
|
+
/** 字节跳动小程序项目设置 */
|
|
3371
|
+
setting?: {
|
|
3372
|
+
/** 是否启用 ES6 转 ES5 */
|
|
3373
|
+
es6?: boolean;
|
|
3374
|
+
/** 是否校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书 */
|
|
3375
|
+
urlCheck?: boolean;
|
|
3376
|
+
/** 修改文件的时候是否自动编译 */
|
|
3377
|
+
autoCompile?: boolean;
|
|
3378
|
+
/** 下次编译是否模拟更新 */
|
|
3379
|
+
mockUpdate?: boolean;
|
|
3380
|
+
/** 是否启动自定义处理命令 */
|
|
3381
|
+
scripts?: boolean;
|
|
3382
|
+
/** 是否开启宿主登录模拟 */
|
|
3383
|
+
mockLogin?: boolean;
|
|
3384
|
+
/** 上传代码时样式是否自动补全 */
|
|
3385
|
+
postcss?: boolean;
|
|
3386
|
+
/** 上传代码时是否自动压缩脚本文件 */
|
|
3387
|
+
minified?: boolean;
|
|
3388
|
+
[x: string]: any;
|
|
3389
|
+
};
|
|
3390
|
+
/** 需要跳转的字节跳动小程序列表 */
|
|
3391
|
+
navigateToMiniProgramAppIdList?: string[];
|
|
3392
|
+
/** 优化配置 */
|
|
3393
|
+
optimization?: {
|
|
3394
|
+
/** 是否开启分包优化 */
|
|
3395
|
+
subPackages?: boolean;
|
|
3396
|
+
[x: string]: any;
|
|
3397
|
+
};
|
|
3398
|
+
/** uni 统计配置项 */
|
|
3399
|
+
uniStatistics?: PlatformUniStatistics;
|
|
3400
|
+
/**
|
|
3401
|
+
* Vue2 作用域插槽编译模式,uni-app 3.1.19+ 开始支持
|
|
3402
|
+
*
|
|
3403
|
+
* @default "auto"
|
|
3404
|
+
*/
|
|
3405
|
+
scopedSlotsCompiler?: 'auto' | 'legacy' | 'augmented';
|
|
3406
|
+
/** 模拟单个作用域插槽渲染为多个实例,此配置仅限 Vue2 环境 3.7.12+,Vue3 环境已默认支持 */
|
|
3407
|
+
slotMultipleInstance?: boolean;
|
|
3408
|
+
/** 字节跳动小程序平台的原生组件 */
|
|
3409
|
+
nativeTags?: string[];
|
|
3410
|
+
[x: string]: any;
|
|
3411
|
+
}
|
|
3412
|
+
//#endregion
|
|
3413
|
+
//#region src/manifest/interfaces/mp-weixin.d.ts
|
|
3414
|
+
interface MpWeixin {
|
|
3415
|
+
/** 微信小程序的 appid */
|
|
3416
|
+
appid?: string;
|
|
3417
|
+
/** 项目名称 */
|
|
3418
|
+
projectname?: string;
|
|
3419
|
+
/**
|
|
3420
|
+
* 微信小程序项目设置,详见 <https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html#setting>
|
|
3421
|
+
*/
|
|
3422
|
+
setting?: {
|
|
3423
|
+
/** 是否启用条件编译,详见 <https://dev.weixin.qq.com/docs/framework/dev/framework/operation/condition-compile.html> */
|
|
3424
|
+
condition?: boolean;
|
|
3425
|
+
/**
|
|
3426
|
+
* 是否启用 ES6 转 ES5
|
|
3427
|
+
*
|
|
3428
|
+
* `es6` 和 `enhance` 需同时为 true/false,对应于 `将 JS 编译成 ES5`
|
|
3429
|
+
*/
|
|
3430
|
+
es6?: boolean;
|
|
3431
|
+
/**
|
|
3432
|
+
* 是否使用增强编译
|
|
3433
|
+
*
|
|
3434
|
+
* `es6` 和 `enhance` 需同时为 true/false,对应于 `将 JS 编译成 ES5`
|
|
3435
|
+
*/
|
|
3436
|
+
enhance?: boolean;
|
|
3437
|
+
/**
|
|
3438
|
+
* 是否使用增强编译,支持 ES7 语法,详见 <https://developers.weixin.qq.com/community/develop/doc/0002ce07a58000a57c5da5e6456c09>
|
|
3439
|
+
*/
|
|
3440
|
+
es7?: boolean;
|
|
3441
|
+
/** 上传代码时样式是否自动补全 */
|
|
3442
|
+
postcss?: boolean;
|
|
3443
|
+
/** 上传代码时是否自动压缩脚本文件 */
|
|
3444
|
+
minified?: boolean;
|
|
3445
|
+
/** 上传代码时是否自动压缩样式文件 */
|
|
3446
|
+
minifyWXSS?: boolean;
|
|
3447
|
+
/** 上传代码时是否自动压缩 WXML 文件 */
|
|
3448
|
+
minifyWXML?: boolean;
|
|
3449
|
+
/**
|
|
3450
|
+
* 开启 swc 编译模式
|
|
3451
|
+
*
|
|
3452
|
+
* @default false
|
|
3453
|
+
*/
|
|
3454
|
+
swc?: boolean;
|
|
3455
|
+
/** 上传时是否代码保护 */
|
|
3456
|
+
uglifyFileName?: boolean;
|
|
3457
|
+
/** 上传时是否过滤无依赖文件 */
|
|
3458
|
+
ignoreUploadUnusedFiles?: boolean;
|
|
3459
|
+
/** 是否自动运行体验评分 */
|
|
3460
|
+
autoAudits?: boolean;
|
|
3461
|
+
/** 是否检查安全域名和 TLS 版本 */
|
|
3462
|
+
urlCheck?: boolean;
|
|
3463
|
+
/** 是否启用代码自动热重载 */
|
|
3464
|
+
compileHotReLoad?: boolean;
|
|
3465
|
+
/** 是否启用数据预拉取 */
|
|
3466
|
+
preloadBackgroundData?: boolean;
|
|
3467
|
+
/** 是否启用懒注入占位组件调试 */
|
|
3468
|
+
lazyloadPlaceholderEnable?: boolean;
|
|
3469
|
+
/** 小游戏项目有效,是否开启静态资源服务器 */
|
|
3470
|
+
useStaticServer?: boolean;
|
|
3471
|
+
/**
|
|
3472
|
+
* 预览及真机调试的时主包、分包体积上限是否调整为小程序 4M、小游戏 8M
|
|
3473
|
+
*
|
|
3474
|
+
* @default true
|
|
3475
|
+
*/
|
|
3476
|
+
bigPackageSizeSupport?: boolean;
|
|
3477
|
+
/** 是否开启 skyline 渲染调试 */
|
|
3478
|
+
skylineRenderEnable?: boolean;
|
|
3479
|
+
/** 增强编译 Babel 的配置项 */
|
|
3480
|
+
babelSetting?: {
|
|
3481
|
+
/**
|
|
3482
|
+
* Babel 辅助函数的输出目录
|
|
3483
|
+
*
|
|
3484
|
+
* @default "@babel/runtime"
|
|
3485
|
+
*/
|
|
3486
|
+
outputPath?: string;
|
|
3487
|
+
/** 需要跳过 Babel 编译(包括代码压缩)处理的文件或目录 */
|
|
3488
|
+
ignore?: string[];
|
|
3489
|
+
[x: string]: any;
|
|
3490
|
+
};
|
|
3491
|
+
/** 压缩 wxml 的配置项 */
|
|
3492
|
+
minifyWXMLSetting?: {
|
|
3493
|
+
/**
|
|
3494
|
+
* 是否压缩空格
|
|
3495
|
+
*
|
|
3496
|
+
* true: 标签内所有连续空白符会被压缩成 1 个空格,换行的情况按 preserveLineBreaks 处理
|
|
3497
|
+
*
|
|
3498
|
+
* @default true
|
|
3499
|
+
*/
|
|
3500
|
+
collapseWhitespace?: boolean;
|
|
3501
|
+
/**
|
|
3502
|
+
* false: 标签前后不保留空格
|
|
3503
|
+
*
|
|
3504
|
+
* true: 如果有空格,标签前后会保留一个空格
|
|
3505
|
+
*
|
|
3506
|
+
* @default false
|
|
3507
|
+
*/
|
|
3508
|
+
conservativeCollapse?: boolean;
|
|
3509
|
+
/**
|
|
3510
|
+
* false: 按 collapseWhitespace 处理
|
|
3511
|
+
*
|
|
3512
|
+
* true: 所有换行都会被保留
|
|
3513
|
+
*
|
|
3514
|
+
* @default false
|
|
3515
|
+
*/
|
|
3516
|
+
preserveLineBreaks?: boolean;
|
|
3517
|
+
};
|
|
3518
|
+
/** 编译插件配置 */
|
|
3519
|
+
useCompilerPlugins?: false | ('typescript' | 'less' | 'sass')[];
|
|
3520
|
+
/** 将 JS 编译成 ES5 时,是否禁用严格模式 */
|
|
3521
|
+
disableUseStrict?: boolean;
|
|
3522
|
+
/**
|
|
3523
|
+
* 上传时是否带上 sourcemap
|
|
3524
|
+
*
|
|
3525
|
+
* @default true
|
|
3526
|
+
*/
|
|
3527
|
+
uploadWithSourceMap?: boolean;
|
|
3528
|
+
/** 在小游戏插件项目中,是否启用"以本地目录为插件资源来源"特性 */
|
|
3529
|
+
localPlugins?: boolean;
|
|
3530
|
+
/** 是否手动配置构建 npm 的路径 */
|
|
3531
|
+
packNpmManually?: boolean;
|
|
3532
|
+
/** 仅 packNpmManually 为 true 时生效,详见 <https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html> */
|
|
3533
|
+
packNpmRelationList?: {
|
|
3534
|
+
/** node_modules 源对应的 package.json */
|
|
3535
|
+
packageJsonPath?: string;
|
|
3536
|
+
/** node_modules 的构建结果目标位置 */
|
|
3537
|
+
miniprogramNpmDistDir?: string;
|
|
3538
|
+
[x: string]: any;
|
|
3539
|
+
}[];
|
|
3540
|
+
/** 是否使用工具渲染 CoverView */
|
|
3541
|
+
coverView?: boolean;
|
|
3542
|
+
/**
|
|
3543
|
+
* 预览、真机调试和本地模拟器等开发阶段是否过滤无依赖文件
|
|
3544
|
+
*
|
|
3545
|
+
* @default true
|
|
3546
|
+
*/
|
|
3547
|
+
ignoreDevUnusedFiles?: boolean;
|
|
3548
|
+
/**
|
|
3549
|
+
* 预览、真机调试上传等开发阶段是否不执行代码质量检测
|
|
3550
|
+
*
|
|
3551
|
+
* @default false
|
|
3552
|
+
*/
|
|
3553
|
+
ignoreCodeQuality?: boolean;
|
|
3554
|
+
/** 是否展示 JSON 文件校验错误信息 */
|
|
3555
|
+
checkInvalidKey?: boolean;
|
|
3556
|
+
/** 是否开启调试器 WXML 面板展示 shadow-root */
|
|
3557
|
+
showShadowRootInWxmlPanel?: boolean;
|
|
3558
|
+
/** 是否开启小程序独立域调试特性 */
|
|
3559
|
+
useIsolateContext?: boolean;
|
|
3560
|
+
/**
|
|
3561
|
+
* 是否开启模拟器预先载入小程序的某些资源,设置为 false 时会导致 useIsolateContext 失效
|
|
3562
|
+
*/
|
|
3563
|
+
useMultiFrameRuntime?: boolean;
|
|
3564
|
+
/** 是否启用 API Hook 功能 */
|
|
3565
|
+
useApiHook?: boolean;
|
|
3566
|
+
/** 是否在额外的进程处理一些小程序 API */
|
|
3567
|
+
useApiHostProcess?: boolean;
|
|
3568
|
+
/** 小游戏有效,是否开启局域网调试服务器 */
|
|
3569
|
+
useLanDebug?: boolean;
|
|
3570
|
+
/** 是否在游戏引擎项目中开启支持引用 node 原生模块的底层加速特性 */
|
|
3571
|
+
enableEngineNative?: boolean;
|
|
3572
|
+
/** 是否在本地设置中展示传统的 ES6 转 ES5 开关(对应 es6),增强编译开关(对应 enhance) */
|
|
3573
|
+
showES6CompileOption?: boolean;
|
|
3574
|
+
/** 是否检查 SiteMap 索引 */
|
|
3575
|
+
checkSiteMap?: boolean;
|
|
3576
|
+
};
|
|
3577
|
+
/** 基础库版本 */
|
|
3578
|
+
libVersion?: string;
|
|
3579
|
+
/**
|
|
3580
|
+
* 是否启用插件功能页
|
|
3581
|
+
*
|
|
3582
|
+
* @default false
|
|
3583
|
+
*/
|
|
3584
|
+
functionalPages?: boolean;
|
|
3585
|
+
/**
|
|
3586
|
+
* 需要在后台使用的能力,详见 <https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#requiredBackgroundModes>
|
|
3587
|
+
*
|
|
3588
|
+
* "audio" 后台音乐播放
|
|
3589
|
+
*
|
|
3590
|
+
* "location" 后台定位
|
|
3591
|
+
*/
|
|
3592
|
+
requiredBackgroundModes?: ('audio' | 'location')[];
|
|
3593
|
+
/** 使用到的插件 */
|
|
3594
|
+
plugins?: Record<string, Record<string, any>>;
|
|
3595
|
+
/**
|
|
3596
|
+
* 在 iPad 上小程序是否支持屏幕旋转
|
|
3597
|
+
*
|
|
3598
|
+
* @default false
|
|
3599
|
+
*/
|
|
3600
|
+
resizable?: boolean;
|
|
3601
|
+
/** 需要跳转的微信小程序列表,详见 <https://developers.weixin.qq.com/minigame/dev/reference/configuration/app.html#navigateToMiniProgramAppIdList> */
|
|
3602
|
+
navigateToMiniProgramAppIdList?: string[];
|
|
3603
|
+
/** 接口权限设置,详见 <https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#permission> */
|
|
3604
|
+
permission?: Partial<Record<'scope.userLocation' | 'scope.userLocationBackground' | 'scope.userFuzzyLocation', {
|
|
3605
|
+
/** 小程序获取权限时展示的接口用途说明 */
|
|
3606
|
+
desc: string;
|
|
3607
|
+
}>>;
|
|
3608
|
+
/** Worker 代码目录,详见 <https://developers.weixin.qq.com/miniprogram/dev/framework/workers.html> */
|
|
3609
|
+
workers?: string | {
|
|
3610
|
+
path: string;
|
|
3611
|
+
/** 是否打包为分包 */
|
|
3612
|
+
isSubpackage?: boolean;
|
|
3613
|
+
[x: string]: any;
|
|
3614
|
+
};
|
|
3615
|
+
/** 优化配置 */
|
|
3616
|
+
optimization?: {
|
|
3617
|
+
/** 是否开启分包优化 */
|
|
3618
|
+
subPackages?: boolean;
|
|
3619
|
+
[x: string]: any;
|
|
3620
|
+
};
|
|
3621
|
+
/** 云开发代码目录,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#cloudfunctionroot> */
|
|
3622
|
+
cloudfunctionRoot?: string;
|
|
3623
|
+
/** uni 统计配置项 */
|
|
3624
|
+
uniStatistics?: PlatformUniStatistics;
|
|
3625
|
+
/**
|
|
3626
|
+
* Vue2 作用域插槽编译模式,uni-app 3.1.19+ 开始支持
|
|
3627
|
+
*
|
|
3628
|
+
* @default "auto"
|
|
3629
|
+
*/
|
|
3630
|
+
scopedSlotsCompiler?: 'auto' | 'legacy' | 'augmented';
|
|
3631
|
+
/**
|
|
3632
|
+
* 是否合并组件虚拟节点外层属性,uni-app 3.5.1+ 开始支持
|
|
3633
|
+
*
|
|
3634
|
+
* 目前支持 id(v4.42+)、style(v3.5.1+)、class(v3.5.1+)以及 v-show 指令生成的 hidden(v4.41+)属性
|
|
3635
|
+
*/
|
|
3636
|
+
mergeVirtualHostAttributes?: boolean;
|
|
3637
|
+
/** 模拟单个作用域插槽渲染为多个实例,此配置仅限 Vue2 环境 3.7.12+,Vue3 环境已默认支持 */
|
|
3638
|
+
slotMultipleInstance?: boolean;
|
|
3639
|
+
/** 要半屏跳转的小程序 appid,详见 <https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/openEmbeddedMiniProgram.html> */
|
|
3640
|
+
embeddedAppIdList?: string[];
|
|
3641
|
+
/** 地理位置相关接口,详见 <https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#requiredPrivateInfos> */
|
|
3642
|
+
requiredPrivateInfos?: ('getFuzzyLocation' | 'getLocation' | 'onLocationChange' | 'startLocationUpdate' | 'startLocationUpdateBackground' | 'chooseLocation' | 'choosePoi' | 'chooseAddress')[];
|
|
3643
|
+
/** 目前仅支持值 "requiredComponents",代表开启小程序按需注入特性,详见 <https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#lazyCodeLoading> */
|
|
3644
|
+
lazyCodeLoading?: 'requiredComponents';
|
|
3645
|
+
/** 微信小程序平台的原生组件,详见 <https://uniapp.dcloud.net.cn/collocation/manifest.html#mp-weixin> */
|
|
3646
|
+
nativeTags?: string[];
|
|
3647
|
+
/**
|
|
3648
|
+
* vue2 微信小程序是否开启独立分包
|
|
3649
|
+
*/
|
|
3650
|
+
independent?: boolean;
|
|
3651
|
+
/**
|
|
3652
|
+
* 是否为组件启用 virtualHost,默认启用
|
|
3653
|
+
*
|
|
3654
|
+
* @default true
|
|
3655
|
+
*/
|
|
3656
|
+
enableVirtualHost?: boolean;
|
|
3657
|
+
/**
|
|
3658
|
+
* 是否开启暗黑模式,详见 <https://uniapp.dcloud.net.cn/tutorial/darkmode.html#mp-weixin>
|
|
3659
|
+
*/
|
|
3660
|
+
darkmode?: boolean;
|
|
3661
|
+
/**
|
|
3662
|
+
* 主题配置文件路径,darkmode 开启时生效
|
|
3663
|
+
*
|
|
3664
|
+
* @default "theme.json"
|
|
3665
|
+
*/
|
|
3666
|
+
themeLocation?: string;
|
|
3667
|
+
[x: string]: any;
|
|
3668
|
+
}
|
|
3669
|
+
//#endregion
|
|
3670
|
+
//#region src/manifest/interfaces/mp-xhs.d.ts
|
|
3671
|
+
interface MpXhs {
|
|
3672
|
+
/** 小红书小程序的 appid */
|
|
3673
|
+
appid?: string;
|
|
3674
|
+
/** 项目名称 */
|
|
3675
|
+
projectname?: string;
|
|
3676
|
+
/** 项目描述 */
|
|
3677
|
+
description?: string;
|
|
3678
|
+
/** 项目的编译模式 */
|
|
3679
|
+
compileType?: string;
|
|
3680
|
+
/** 基础库版本 */
|
|
3681
|
+
libVersion?: string;
|
|
3682
|
+
/** 启用条件编译 */
|
|
3683
|
+
condition?: Record<string, any>;
|
|
3684
|
+
/** 项目设置,详见 <https://miniapp.xiaohongshu.com/doc/DC977105#anchorId-setting> */
|
|
3685
|
+
setting?: Record<string, any>;
|
|
3686
|
+
/** 打包配置选项 */
|
|
3687
|
+
packOptions?: Record<string, any>;
|
|
3688
|
+
/** 优化配置 */
|
|
3689
|
+
optimization?: {
|
|
3690
|
+
/** 是否开启分包优化 */
|
|
3691
|
+
subPackages?: boolean;
|
|
3692
|
+
[x: string]: any;
|
|
3693
|
+
};
|
|
3694
|
+
/** uni 统计配置项 */
|
|
3695
|
+
uniStatistics?: PlatformUniStatistics;
|
|
3696
|
+
/** 小红书小程序平台的原生组件 */
|
|
3697
|
+
nativeTags?: string[];
|
|
3698
|
+
[x: string]: any;
|
|
3699
|
+
}
|
|
3700
|
+
//#endregion
|
|
3701
|
+
//#region src/manifest/interfaces/quickapp-webview.d.ts
|
|
3702
|
+
interface QuickappWebview {
|
|
3703
|
+
/** 应用图标,华为推荐 192x192 */
|
|
3704
|
+
icon?: string;
|
|
3705
|
+
/** 应用包名 */
|
|
3706
|
+
package?: string;
|
|
3707
|
+
/** 最小平台运行支持,快应用联盟最低 1063,快应用华为最低 1070 */
|
|
3708
|
+
minPlatformVersion?: number;
|
|
3709
|
+
/** 版本名称 */
|
|
3710
|
+
versionName?: string;
|
|
3711
|
+
/** 版本号 */
|
|
3712
|
+
versionCode?: number;
|
|
3713
|
+
[x: string]: any;
|
|
3714
|
+
}
|
|
3715
|
+
interface QuickappWebviewUnion {
|
|
3716
|
+
/** 最小平台支持,最低 1063 */
|
|
3717
|
+
minPlatformVersion?: number;
|
|
3718
|
+
}
|
|
3719
|
+
interface QuickappWebviewHuawei {
|
|
3720
|
+
/** 最小平台支持,最低 1070 */
|
|
3721
|
+
minPlatformVersion?: number;
|
|
3722
|
+
}
|
|
3723
|
+
//#endregion
|
|
3724
|
+
//#region src/manifest/interfaces/uni-app-x.d.ts
|
|
3725
|
+
/**
|
|
3726
|
+
* 存在 uni-app-x 节点则表示为 uni-app x 项目,uni-app x 独有配置
|
|
3727
|
+
*
|
|
3728
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#manifest-uni-app-x>
|
|
3729
|
+
*/
|
|
3730
|
+
interface UniAppX {
|
|
3731
|
+
/**
|
|
3732
|
+
* uvue 页面默认 flex 排列方向
|
|
3733
|
+
*
|
|
3734
|
+
* @default "column"
|
|
3735
|
+
*/
|
|
3736
|
+
'flex-direction'?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
3737
|
+
/**
|
|
3738
|
+
* 是否启用蒸汽模式
|
|
3739
|
+
*
|
|
3740
|
+
* @default false
|
|
3741
|
+
*/
|
|
3742
|
+
'vapor'?: boolean;
|
|
3743
|
+
/**
|
|
3744
|
+
* 样式隔离策略
|
|
3745
|
+
*
|
|
3746
|
+
* @default "2"
|
|
3747
|
+
*/
|
|
3748
|
+
'styleIsolationVersion'?: '2';
|
|
3749
|
+
/**
|
|
3750
|
+
* 视图层编译目标
|
|
3751
|
+
*
|
|
3752
|
+
* @default "bytecode"
|
|
3753
|
+
*/
|
|
3754
|
+
'vapor-render-target'?: 'bytecode' | 'nativecode';
|
|
3755
|
+
[x: string]: any;
|
|
3756
|
+
}
|
|
3757
|
+
//#endregion
|
|
3758
|
+
//#region src/manifest/interfaces/web.d.ts
|
|
3759
|
+
/**
|
|
3760
|
+
* Web 平台配置(uni-app x)
|
|
3761
|
+
*
|
|
3762
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#web>
|
|
3763
|
+
*/
|
|
3764
|
+
interface Web {
|
|
3765
|
+
/** 页面标题,默认为应用名称 */
|
|
3766
|
+
title?: string;
|
|
3767
|
+
/** 可定制生成的 HTML 代码,参考 <https://uniapp.dcloud.net.cn/collocation/manifest.html#h5-template> */
|
|
3768
|
+
template?: string;
|
|
3769
|
+
/** 路由配置 */
|
|
3770
|
+
router?: {
|
|
3771
|
+
/** 路由跳转模式,hash、history 二选一 */
|
|
3772
|
+
mode?: 'hash' | 'history';
|
|
3773
|
+
/** 应用基础路径,如设为 ./,则代表相对路径,支持 file 协议打开,此时路由模式强制为 hash 模式 */
|
|
3774
|
+
base?: string;
|
|
3775
|
+
[x: string]: any;
|
|
3776
|
+
};
|
|
3777
|
+
/** 开发环境 server 配置 */
|
|
3778
|
+
devServer?: {
|
|
3779
|
+
/** 开发服务端口 */
|
|
3780
|
+
port?: number;
|
|
3781
|
+
/** 是否启用 HTTPS 协议 */
|
|
3782
|
+
https?: boolean;
|
|
3783
|
+
[x: string]: any;
|
|
3784
|
+
};
|
|
3785
|
+
/** 打包优化配置 */
|
|
3786
|
+
optimization?: {
|
|
3787
|
+
/** 摇树优化 */
|
|
3788
|
+
treeShaking?: {
|
|
3789
|
+
/** 是否开启摇树优化 */
|
|
3790
|
+
enable?: boolean;
|
|
3791
|
+
[x: string]: any;
|
|
3792
|
+
};
|
|
3793
|
+
[x: string]: any;
|
|
3794
|
+
};
|
|
3795
|
+
/** uni-push 配置 */
|
|
3796
|
+
unipush?: {
|
|
3797
|
+
/** 是否启用 uni-push */
|
|
3798
|
+
enable?: boolean;
|
|
3799
|
+
[x: string]: any;
|
|
3800
|
+
};
|
|
3801
|
+
/** SDK 配置 */
|
|
3802
|
+
sdkConfigs?: {
|
|
3803
|
+
/** 定位和地图(只能选一个) */
|
|
3804
|
+
maps?: {
|
|
3805
|
+
/** 腾讯地图,旧配置项为 qqmap */
|
|
3806
|
+
tencent?: {
|
|
3807
|
+
/** 腾讯地图密钥,申请地址 <https://lbs.qq.com/dev/console/key/manage> */
|
|
3808
|
+
key?: string;
|
|
3809
|
+
[x: string]: any;
|
|
3810
|
+
};
|
|
3811
|
+
/** 谷歌地图 */
|
|
3812
|
+
google?: {
|
|
3813
|
+
/** 谷歌地图密钥,申请地址 <https://developers.google.com/maps/documentation/javascript/get-api-key> */
|
|
3814
|
+
key?: string;
|
|
3815
|
+
[x: string]: any;
|
|
3816
|
+
};
|
|
3817
|
+
/** 高德地图 */
|
|
3818
|
+
amap?: {
|
|
3819
|
+
/** 高德地图密钥,申请地址 <https://console.amap.com/dev/key/app> */
|
|
3820
|
+
key?: string;
|
|
3821
|
+
/** 高德地图安全密钥,申请地址 <https://console.amap.com/dev/key/app> */
|
|
3822
|
+
securityJsCode?: string;
|
|
3823
|
+
/** 高德地图安全密钥代理服务器地址,参考 <https://lbs.amap.com/api/jsapi-v2/guide/abc/prepare> */
|
|
3824
|
+
serviceHost?: string;
|
|
3825
|
+
[x: string]: any;
|
|
3826
|
+
};
|
|
3827
|
+
[x: string]: any;
|
|
3828
|
+
};
|
|
3829
|
+
[x: string]: any;
|
|
3830
|
+
};
|
|
3831
|
+
/** 是否开启暗黑模式,详见 <https://doc.dcloud.net.cn/uni-app-x/api/theme-change.html> */
|
|
3832
|
+
darkmode?: boolean;
|
|
3833
|
+
[x: string]: any;
|
|
3834
|
+
}
|
|
3835
|
+
//#endregion
|
|
3836
|
+
//#region src/manifest/interfaces/config.d.ts
|
|
3837
|
+
/**
|
|
3838
|
+
* 应用的配置文件,用于指定应用的名称、图标、权限等
|
|
3839
|
+
*
|
|
3840
|
+
* HBuilderX 创建的工程此文件在根目录,CLI 创建的工程此文件在 src 目录
|
|
3841
|
+
*/
|
|
3842
|
+
interface ManifestJson {
|
|
3843
|
+
/** 应用名称,安装 APP 后显示的名称 */
|
|
3844
|
+
'name': string;
|
|
3845
|
+
/** 应用标识,由 DCloud 云端分配,详见 <https://ask.dcloud.net.cn/article/35907> */
|
|
3846
|
+
'appid': string;
|
|
3847
|
+
/** 应用描述 */
|
|
3848
|
+
'description': string;
|
|
3849
|
+
/**
|
|
3850
|
+
* 当前默认语言,详见 <https://uniapp.dcloud.net.cn/api/ui/locale.html>
|
|
3851
|
+
*
|
|
3852
|
+
* @default "auto"
|
|
3853
|
+
*/
|
|
3854
|
+
'locale'?: string;
|
|
3855
|
+
/** 默认回退语言,当 locale 指定的语言不可用时使用 */
|
|
3856
|
+
'fallbackLocale'?: string;
|
|
3857
|
+
/** 版本名称,在云打包和生成 wgt 资源时使用 */
|
|
3858
|
+
'versionName': string;
|
|
3859
|
+
/** 版本号 */
|
|
3860
|
+
'versionCode': string | number;
|
|
3861
|
+
/**
|
|
3862
|
+
* 是否转换 px 为 rpx,仅部分平台支持,不推荐新项目启用此配置,建议设为 false
|
|
3863
|
+
*
|
|
3864
|
+
* @default true
|
|
3865
|
+
*
|
|
3866
|
+
* @deprecated
|
|
3867
|
+
*/
|
|
3868
|
+
'transformPx'?: boolean;
|
|
3869
|
+
/** 网络超时时间 */
|
|
3870
|
+
'networkTimeout'?: {
|
|
3871
|
+
/**
|
|
3872
|
+
* uni.request 超时时间,单位为 ms
|
|
3873
|
+
*
|
|
3874
|
+
* @default 60000
|
|
3875
|
+
*/
|
|
3876
|
+
request?: number;
|
|
3877
|
+
/**
|
|
3878
|
+
* uni.connectSocket 超时时间,单位为 ms
|
|
3879
|
+
*
|
|
3880
|
+
* @default 60000
|
|
3881
|
+
*/
|
|
3882
|
+
connectSocket?: number;
|
|
3883
|
+
/**
|
|
3884
|
+
* uni.uploadFile 超时时间,单位为 ms
|
|
3885
|
+
*
|
|
3886
|
+
* @default 60000
|
|
3887
|
+
*/
|
|
3888
|
+
uploadFile?: number;
|
|
3889
|
+
/**
|
|
3890
|
+
* uni.downloadFile 超时时间,单位为 ms
|
|
3891
|
+
*
|
|
3892
|
+
* @default 60000
|
|
3893
|
+
*/
|
|
3894
|
+
downloadFile?: number;
|
|
3895
|
+
[x: string]: any;
|
|
3896
|
+
};
|
|
3897
|
+
/**
|
|
3898
|
+
* 是否开启 debug 模式,开启后调试信息以 `info` 的形式给出,其信息有页面注册、页面路由、数据更新、事件触发等
|
|
3899
|
+
*
|
|
3900
|
+
* @default false
|
|
3901
|
+
*/
|
|
3902
|
+
'debug'?: boolean;
|
|
3903
|
+
/**
|
|
3904
|
+
* uni 统计配置
|
|
3905
|
+
* 更多信息查看 <https://uniapp.dcloud.net.cn/uni-stat-v1.html> 和 <https://uniapp.dcloud.net.cn/uni-stat-v2.html>
|
|
3906
|
+
*/
|
|
3907
|
+
'uniStatistics'?: UniStatistics;
|
|
3908
|
+
/**
|
|
3909
|
+
* 使用的 SCSS 预编译库,仅限 Vue2 项目
|
|
3910
|
+
*
|
|
3911
|
+
* @since 4.56+
|
|
3912
|
+
*
|
|
3913
|
+
* @default "dart-sass"
|
|
3914
|
+
*/
|
|
3915
|
+
'sassImplementationName'?: 'dart-sass' | 'node-sass';
|
|
3916
|
+
/** APP 特有配置 */
|
|
3917
|
+
'app-plus'?: AppPlus;
|
|
3918
|
+
/** HarmonyOS 应用配置 */
|
|
3919
|
+
'app-harmony'?: AppHarmony;
|
|
3920
|
+
/** HarmonyOS 元服务配置 */
|
|
3921
|
+
'mp-harmony'?: MpHarmony;
|
|
3922
|
+
/** H5 配置 */
|
|
3923
|
+
'h5'?: H5;
|
|
3924
|
+
/** 快应用特有配置,即将支持 */
|
|
3925
|
+
'quickapp'?: Record<string, any>;
|
|
3926
|
+
/** 快应用特有配置 */
|
|
3927
|
+
'quickapp-webview'?: QuickappWebview;
|
|
3928
|
+
/** 快应用联盟特有配置 */
|
|
3929
|
+
'quickapp-webview-union'?: QuickappWebviewUnion;
|
|
3930
|
+
/** 快应用华为特有配置 */
|
|
3931
|
+
'quickapp-webview-huawei'?: QuickappWebviewHuawei;
|
|
3932
|
+
/** 微信小程序特有配置 */
|
|
3933
|
+
'mp-weixin'?: MpWeixin;
|
|
3934
|
+
/** 支付宝小程序特有配置 */
|
|
3935
|
+
'mp-alipay'?: MpAlipay;
|
|
3936
|
+
/** 百度小程序特有配置 */
|
|
3937
|
+
'mp-baidu'?: MpBaidu;
|
|
3938
|
+
/** 字节跳动小程序特有配置 */
|
|
3939
|
+
'mp-toutiao'?: MpToutiao;
|
|
3940
|
+
/** 飞书小程序特有配置 */
|
|
3941
|
+
'mp-lark'?: MpLark;
|
|
3942
|
+
/** QQ 小程序特有配置 */
|
|
3943
|
+
'mp-qq'?: MpQq;
|
|
3944
|
+
/** 快手小程序特有配置 */
|
|
3945
|
+
'mp-kuaishou'?: MpKuaishou;
|
|
3946
|
+
/** 小红书小程序特有配置 */
|
|
3947
|
+
'mp-xhs'?: MpXhs;
|
|
3948
|
+
/**
|
|
3949
|
+
* 存在 uni-app-x 节点则表示为 uni-app x 项目,uni-app x 独有配置
|
|
3950
|
+
*
|
|
3951
|
+
* 详见 <https://doc.dcloud.net.cn/uni-app-x/collocation/manifest.html#manifest-uni-app-x>
|
|
3952
|
+
*/
|
|
3953
|
+
'uni-app-x'?: UniAppX;
|
|
3954
|
+
/** uni-app x App 平台(原生 App)配置 */
|
|
3955
|
+
'app'?: App;
|
|
3956
|
+
/** uni-app x App-Android 平台配置 */
|
|
3957
|
+
'app-android'?: AppAndroid;
|
|
3958
|
+
/** uni-app x iOS App 平台配置 */
|
|
3959
|
+
'app-ios'?: AppIos;
|
|
3960
|
+
/** uni-app x Web 平台配置 */
|
|
3961
|
+
'web'?: Web;
|
|
3962
|
+
/** HBuilderX 可视化界面相关操作配置 */
|
|
3963
|
+
'__hbuilderx'?: HBuilderX;
|
|
3964
|
+
[x: string]: any;
|
|
3965
|
+
}
|
|
3966
|
+
interface UserManifestJson extends ManifestJson {}
|
|
3967
|
+
//#endregion
|
|
3968
|
+
//#region src/manifest/index.d.ts
|
|
3969
|
+
interface ManifestConfig extends ManifestJson {}
|
|
3970
|
+
declare function defineManifestConfig(config: ManifestConfig): ManifestConfig;
|
|
3971
|
+
//#endregion
|
|
7
3972
|
//#region src/oiyo/types.d.ts
|
|
8
3973
|
type GlobRule = string | string[];
|
|
9
3974
|
interface OnlyPickNameItem {
|
|
@@ -186,13 +4151,6 @@ interface EasyCom {
|
|
|
186
4151
|
}
|
|
187
4152
|
//#endregion
|
|
188
4153
|
//#region src/pages/interfaces/common.d.ts
|
|
189
|
-
type RGBColor = `rgb(${number}, ${number}, ${number})`;
|
|
190
|
-
type RGBAColor = `rgba(${number}, ${number}, ${number}, ${number})`;
|
|
191
|
-
type HEXColor = `#${string}`;
|
|
192
|
-
type Color = RGBColor | RGBAColor | HEXColor;
|
|
193
|
-
type PxSize = `${number}px`;
|
|
194
|
-
type RpxSize = `${number}rpx`;
|
|
195
|
-
type PercentageSize = `${number}%`;
|
|
196
4154
|
type ThemeVar = `@${string}`;
|
|
197
4155
|
/**
|
|
198
4156
|
* 窗口动画,详见 [窗口动画](https://uniapp.dcloud.net.cn/api/router.html#animation)
|
|
@@ -292,7 +4250,7 @@ interface TitleNViewButton {
|
|
|
292
4250
|
}
|
|
293
4251
|
//#endregion
|
|
294
4252
|
//#region src/pages/interfaces/globalStyle/app-plus.d.ts
|
|
295
|
-
interface AppPlus {
|
|
4253
|
+
interface AppPlus$1 {
|
|
296
4254
|
/**
|
|
297
4255
|
* 窗体背景色,支持 HEX 颜色
|
|
298
4256
|
*
|
|
@@ -1327,7 +5285,7 @@ interface AppPlus {
|
|
|
1327
5285
|
}
|
|
1328
5286
|
//#endregion
|
|
1329
5287
|
//#region src/pages/interfaces/globalStyle/h5.d.ts
|
|
1330
|
-
interface H5 {
|
|
5288
|
+
interface H5$1 {
|
|
1331
5289
|
/**
|
|
1332
5290
|
* 导航栏,详见 [导航栏](https://uniapp.dcloud.net.cn/collocation/pages#h5-titlenview)
|
|
1333
5291
|
*/
|
|
@@ -1459,7 +5417,7 @@ interface H5 {
|
|
|
1459
5417
|
*
|
|
1460
5418
|
* @desc 支付宝小程序
|
|
1461
5419
|
*/
|
|
1462
|
-
interface MpAlipay {
|
|
5420
|
+
interface MpAlipay$1 {
|
|
1463
5421
|
/**
|
|
1464
5422
|
* 是否允许向下拉拽
|
|
1465
5423
|
*
|
|
@@ -1569,7 +5527,7 @@ interface MpAlipay {
|
|
|
1569
5527
|
*
|
|
1570
5528
|
* @desc 百度小程序
|
|
1571
5529
|
*/
|
|
1572
|
-
interface MpBaidu {
|
|
5530
|
+
interface MpBaidu$1 {
|
|
1573
5531
|
/**
|
|
1574
5532
|
* 导航栏背景颜色,支持 HEX 颜色
|
|
1575
5533
|
*
|
|
@@ -1743,7 +5701,7 @@ interface MpJd {
|
|
|
1743
5701
|
*
|
|
1744
5702
|
* @desc 快手小程序
|
|
1745
5703
|
*/
|
|
1746
|
-
interface MpKuaishou {
|
|
5704
|
+
interface MpKuaishou$1 {
|
|
1747
5705
|
/**
|
|
1748
5706
|
* 导航栏背景颜色,支持 HEX 颜色
|
|
1749
5707
|
*
|
|
@@ -1831,7 +5789,7 @@ interface MpKuaishou {
|
|
|
1831
5789
|
*
|
|
1832
5790
|
* @desc 飞书小程序
|
|
1833
5791
|
*/
|
|
1834
|
-
interface MpLark {
|
|
5792
|
+
interface MpLark$1 {
|
|
1835
5793
|
/**
|
|
1836
5794
|
* 导航栏背景颜色,支持 HEX 颜色
|
|
1837
5795
|
*
|
|
@@ -1933,7 +5891,7 @@ interface MpLark {
|
|
|
1933
5891
|
/**
|
|
1934
5892
|
* PCMode 模式下特定的窗口配置,支持的属性与通用 window 配置属性一致,仅当在 ext 内配置了 defaultPages.PCMode 时生效
|
|
1935
5893
|
*/
|
|
1936
|
-
PCMode?: Omit<MpLark, 'PCMode'>;
|
|
5894
|
+
PCMode?: Omit<MpLark$1, 'PCMode'>;
|
|
1937
5895
|
[x: string]: any;
|
|
1938
5896
|
}
|
|
1939
5897
|
//#endregion
|
|
@@ -1945,7 +5903,7 @@ interface MpLark {
|
|
|
1945
5903
|
*
|
|
1946
5904
|
* @desc QQ 小程序
|
|
1947
5905
|
*/
|
|
1948
|
-
interface MpQq {
|
|
5906
|
+
interface MpQq$1 {
|
|
1949
5907
|
/**
|
|
1950
5908
|
* 导航栏背景颜色,支持 HEX 颜色
|
|
1951
5909
|
*
|
|
@@ -2027,7 +5985,7 @@ interface MpQq {
|
|
|
2027
5985
|
*
|
|
2028
5986
|
* @desc 抖音小程序
|
|
2029
5987
|
*/
|
|
2030
|
-
interface MpToutiao {
|
|
5988
|
+
interface MpToutiao$1 {
|
|
2031
5989
|
/**
|
|
2032
5990
|
* 导航栏背景颜色,支持 HEX 颜色
|
|
2033
5991
|
*
|
|
@@ -2215,7 +6173,7 @@ interface MpToutiao {
|
|
|
2215
6173
|
*
|
|
2216
6174
|
* @desc 微信小程序
|
|
2217
6175
|
*/
|
|
2218
|
-
interface MpWeixin {
|
|
6176
|
+
interface MpWeixin$1 {
|
|
2219
6177
|
/**
|
|
2220
6178
|
* 导航栏背景颜色,支持 HEX 颜色
|
|
2221
6179
|
*
|
|
@@ -2507,7 +6465,7 @@ interface GlobalStyle {
|
|
|
2507
6465
|
*
|
|
2508
6466
|
* @desc App
|
|
2509
6467
|
*/
|
|
2510
|
-
'app-plus'?: AppPlus;
|
|
6468
|
+
'app-plus'?: AppPlus$1;
|
|
2511
6469
|
/**
|
|
2512
6470
|
* 设置编译到 H5 平台的特定样式,配置项参考 [H5](https://uniapp.dcloud.net.cn/collocation/pages#h5)
|
|
2513
6471
|
*
|
|
@@ -2515,7 +6473,7 @@ interface GlobalStyle {
|
|
|
2515
6473
|
*
|
|
2516
6474
|
* @desc H5
|
|
2517
6475
|
*/
|
|
2518
|
-
'h5'?: H5;
|
|
6476
|
+
'h5'?: H5$1;
|
|
2519
6477
|
/**
|
|
2520
6478
|
* 设置编译到 mp-alipay 平台的特定样式,配置项参考 [MP-ALIPAY](https://uniapp.dcloud.net.cn/collocation/pages#mp-alipay) 和 <https://opendocs.alipay.com/mini/framework/app-json#window>
|
|
2521
6479
|
*
|
|
@@ -2523,7 +6481,7 @@ interface GlobalStyle {
|
|
|
2523
6481
|
*
|
|
2524
6482
|
* @desc 支付宝小程序
|
|
2525
6483
|
*/
|
|
2526
|
-
'mp-alipay'?: MpAlipay;
|
|
6484
|
+
'mp-alipay'?: MpAlipay$1;
|
|
2527
6485
|
/**
|
|
2528
6486
|
* 设置编译到 mp-weixin 平台的特定样式,配置项参考 [MP-WEIXIN](https://uniapp.dcloud.net.cn/collocation/pages#mp-weixin) 和 <https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#window>
|
|
2529
6487
|
*
|
|
@@ -2531,7 +6489,7 @@ interface GlobalStyle {
|
|
|
2531
6489
|
*
|
|
2532
6490
|
* @desc 微信小程序
|
|
2533
6491
|
*/
|
|
2534
|
-
'mp-weixin'?: MpWeixin;
|
|
6492
|
+
'mp-weixin'?: MpWeixin$1;
|
|
2535
6493
|
/**
|
|
2536
6494
|
* 设置编译到 mp-baidu 平台的特定样式,配置项参考 [MP-BAIDU](https://uniapp.dcloud.net.cn/collocation/pages.html#mp-baidu) 和 <https://smartprogram.baidu.com/docs/develop/framework/process/#window>
|
|
2537
6495
|
*
|
|
@@ -2539,7 +6497,7 @@ interface GlobalStyle {
|
|
|
2539
6497
|
*
|
|
2540
6498
|
* @desc 百度小程序
|
|
2541
6499
|
*/
|
|
2542
|
-
'mp-baidu'?: MpBaidu;
|
|
6500
|
+
'mp-baidu'?: MpBaidu$1;
|
|
2543
6501
|
/**
|
|
2544
6502
|
* 设置编译到 mp-toutiao 平台的特定样式,配置项参考 <https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/framework/general-configuration#window>
|
|
2545
6503
|
*
|
|
@@ -2547,7 +6505,7 @@ interface GlobalStyle {
|
|
|
2547
6505
|
*
|
|
2548
6506
|
* @desc 抖音小程序
|
|
2549
6507
|
*/
|
|
2550
|
-
'mp-toutiao'?: MpToutiao;
|
|
6508
|
+
'mp-toutiao'?: MpToutiao$1;
|
|
2551
6509
|
/**
|
|
2552
6510
|
* 设置编译到 mp-lark 平台的特定样式
|
|
2553
6511
|
*
|
|
@@ -2555,7 +6513,7 @@ interface GlobalStyle {
|
|
|
2555
6513
|
*
|
|
2556
6514
|
* @desc 飞书小程序
|
|
2557
6515
|
*/
|
|
2558
|
-
'mp-lark'?: MpLark;
|
|
6516
|
+
'mp-lark'?: MpLark$1;
|
|
2559
6517
|
/**
|
|
2560
6518
|
* 设置编译到 mp-qq 平台的特定样式
|
|
2561
6519
|
*
|
|
@@ -2563,7 +6521,7 @@ interface GlobalStyle {
|
|
|
2563
6521
|
*
|
|
2564
6522
|
* @desc QQ 小程序
|
|
2565
6523
|
*/
|
|
2566
|
-
'mp-qq'?: MpQq;
|
|
6524
|
+
'mp-qq'?: MpQq$1;
|
|
2567
6525
|
/**
|
|
2568
6526
|
* 设置编译到 mp-kuaishou 平台的特定样式
|
|
2569
6527
|
*
|
|
@@ -2571,7 +6529,7 @@ interface GlobalStyle {
|
|
|
2571
6529
|
*
|
|
2572
6530
|
* @desc 快手小程序
|
|
2573
6531
|
*/
|
|
2574
|
-
'mp-kuaishou'?: MpKuaishou;
|
|
6532
|
+
'mp-kuaishou'?: MpKuaishou$1;
|
|
2575
6533
|
/**
|
|
2576
6534
|
* 设置编译到 mp-jd 平台的特定样式
|
|
2577
6535
|
*
|
|
@@ -3094,4 +7052,4 @@ interface PagesJson {
|
|
|
3094
7052
|
interface PagesConfig extends PagesJson {}
|
|
3095
7053
|
declare function definePagesConfig(config: PagesConfig): PagesConfig;
|
|
3096
7054
|
//#endregion
|
|
3097
|
-
export { type AnimationType, type ApiScanTarget, type
|
|
7055
|
+
export { type AndroidFeature, type AndroidFeatureName, type AndroidPermission, type AndroidPermissionName, type AndroidPermissionOrFeature, type AnimationType, type ApiScanTarget, type App, type AppAndroid, type AppAndroidDistribute, type AppDistribute, type AppDistributeAndroid, type AppDistributeIos, type AppHarmony, type AppHarmonyDistribute, type AppHarmonyDistributeSigningConfig, type AppHarmonyIcons, type AppHarmonyModules, type AppHarmonySafearea, type AppHarmonySplashScreens, type AppHarmonyUserAgent, type AppIcons, type AppIconsAndroid, type AppIconsIos, type AppIos, type AppIosDistribute, type AppModules, type AppModulesUniAd, type AppModulesUniLocation, type AppModulesUniMap, type AppModulesUniPayment, type AppModulesUniPaymentWxpay, type AppPlus, type AppPlusPermissionPrompt, type AppPlusScreenOrientation, type AppPlusUserAgent, type AppSplashScreen, type AppSplashScreens, type AppSplashScreensAndroid, type AppSplashScreensAndroid12, type AppSplashScreensAndroid12Brand, type AppSplashScreensAndroid12Icon, type AppSplashScreensIos, type ComponentScanTarget, type Condition, type ConditionItem, DEFAULT_EXCLUDE, type EasyCom, type GlobRule, type GlobalStyle, type H5, type HBuilderX, type IDEPlatformPath, ManifestConfig, type ManifestJson, type MpAlipay, type MpBaidu, type MpHarmony, type MpHarmonyDistribute, type MpHarmonySigningConfig, type MpKuaishou, type MpLark, type MpQq, type MpToutiao, type MpWeixin, type MpXhs, type OiyoConfig, type OiyoConfigDir, type OiyoConfigIDE, type OiyoConfigScan, type OnlyPickNameItem, type Page, PagesConfig, type PagesJson, type PlatformUniStatistics, type QuickappWebview, type QuickappWebviewHuawei, type QuickappWebviewUnion, type SubPackage, type TabBar, type TabBarIconFont, type TabBarItem, type TabBarMidButton, type TheWindow, type ThemeVar, type TitleNViewButton, type UniAppX, type UniIdRouter, type UniStatistics, type UserManifestJson, type Web, defineManifestConfig, defineOiyoConfig, definePagesConfig, resolveOiyoConfig };
|