zcw-shared 1.42.0 → 1.44.1
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/dist/functions/android/configureAppIcon.d.ts +17 -0
- package/dist/functions/android/configureAppIcon.js +106 -0
- package/dist/functions/android/configureAppIcon.js.map +1 -0
- package/dist/functions/android/configureLaunchScreen.d.ts +5 -1
- package/dist/functions/android/configureLaunchScreen.js +115 -20
- package/dist/functions/android/configureLaunchScreen.js.map +1 -1
- package/dist/functions/android/modifyGradle.d.ts +1 -0
- package/dist/functions/android/modifyGradle.js +5 -0
- package/dist/functions/android/modifyGradle.js.map +1 -1
- package/dist/functions/android/permission.d.ts +17 -3
- package/dist/functions/android/permission.js +26 -6
- package/dist/functions/android/permission.js.map +1 -1
- package/dist/functions/ios/configureAppIcon.d.ts +17 -0
- package/dist/functions/ios/configureAppIcon.js +149 -0
- package/dist/functions/ios/configureAppIcon.js.map +1 -0
- package/dist/functions/ios/configureLaunchScreen.js +70 -57
- package/dist/functions/ios/configureLaunchScreen.js.map +1 -1
- package/dist/functions/ios/configurePermissions.d.ts +19 -0
- package/dist/functions/ios/configurePermissions.js +120 -0
- package/dist/functions/ios/configurePermissions.js.map +1 -0
- package/dist/functions/uniapp/app-plus/buildAndroidApp.d.ts +2 -2
- package/dist/functions/uniapp/app-plus/buildAndroidApp.js +109 -36
- package/dist/functions/uniapp/app-plus/buildAndroidApp.js.map +1 -1
- package/dist/functions/uniapp/app-plus/buildAndroidPlugin.js +42 -34
- package/dist/functions/uniapp/app-plus/buildAndroidPlugin.js.map +1 -1
- package/dist/functions/uniapp/app-plus/buildIOSApp.d.ts +0 -1
- package/dist/functions/uniapp/app-plus/buildIOSApp.js +109 -31
- package/dist/functions/uniapp/app-plus/buildIOSApp.js.map +1 -1
- package/dist/functions/uniapp/app-plus/buildIOSPlugin.js +50 -27
- package/dist/functions/uniapp/app-plus/buildIOSPlugin.js.map +1 -1
- package/package.json +4 -3
- package/types/uniapp-android-build.d.ts +20 -0
- package/types/uniapp-ios-build.d.ts +22 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcw-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.44.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"references",
|
|
6
6
|
"dist",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"./functions/algorithm/trap": "./dist/functions/algorithm/trap.js",
|
|
58
58
|
"./functions/algorithm/visualizeGarbageCollection": "./dist/functions/algorithm/visualizeGarbageCollection.js",
|
|
59
59
|
"./functions/android/buildProject": "./dist/functions/android/buildProject.js",
|
|
60
|
+
"./functions/android/configureAppIcon": "./dist/functions/android/configureAppIcon.js",
|
|
60
61
|
"./functions/android/configureLaunchScreen": "./dist/functions/android/configureLaunchScreen.js",
|
|
61
62
|
"./functions/android/detectAndroidModules": "./dist/functions/android/detectAndroidModules.js",
|
|
62
63
|
"./functions/android/integrateFacebookLogin": "./dist/functions/android/integrateFacebookLogin.js",
|
|
@@ -167,7 +168,9 @@
|
|
|
167
168
|
"./functions/image/renderDrivingLicense": "./dist/functions/image/renderDrivingLicense.js",
|
|
168
169
|
"./functions/image/renderIdCard": "./dist/functions/image/renderIdCard.js",
|
|
169
170
|
"./functions/image/renderLicensePlate": "./dist/functions/image/renderLicensePlate.js",
|
|
171
|
+
"./functions/ios/configureAppIcon": "./dist/functions/ios/configureAppIcon.js",
|
|
170
172
|
"./functions/ios/configureLaunchScreen": "./dist/functions/ios/configureLaunchScreen.js",
|
|
173
|
+
"./functions/ios/configurePermissions": "./dist/functions/ios/configurePermissions.js",
|
|
171
174
|
"./functions/ios/integrateNativePlugin": "./dist/functions/ios/integrateNativePlugin.js",
|
|
172
175
|
"./functions/ios/integrateQQShare": "./dist/functions/ios/integrateQQShare.js",
|
|
173
176
|
"./functions/ios/integrateSinaShare": "./dist/functions/ios/integrateSinaShare.js",
|
|
@@ -236,9 +239,7 @@
|
|
|
236
239
|
"./functions/tree/findNode": "./dist/functions/tree/findNode.js",
|
|
237
240
|
"./functions/tree/flattenTree": "./dist/functions/tree/flattenTree.js",
|
|
238
241
|
"./functions/uniapp/app-plus/buildAndroidApp": "./dist/functions/uniapp/app-plus/buildAndroidApp.js",
|
|
239
|
-
"./functions/uniapp/app-plus/buildAndroidPlugin": "./dist/functions/uniapp/app-plus/buildAndroidPlugin.js",
|
|
240
242
|
"./functions/uniapp/app-plus/buildIOSApp": "./dist/functions/uniapp/app-plus/buildIOSApp.js",
|
|
241
|
-
"./functions/uniapp/app-plus/buildIOSPlugin": "./dist/functions/uniapp/app-plus/buildIOSPlugin.js",
|
|
242
243
|
"./functions/uniapp/build": "./dist/functions/uniapp/build.js",
|
|
243
244
|
"./functions/uniapp/detectAndroidProjectStructure": "./dist/functions/uniapp/detectAndroidProjectStructure.js",
|
|
244
245
|
"./functions/uniapp/detectProjectType": "./dist/functions/uniapp/detectProjectType.js",
|
|
@@ -143,6 +143,14 @@ export interface UniAppAndroidBuildOptions extends AndroidBuildOptions {
|
|
|
143
143
|
uniappProjectPath: string
|
|
144
144
|
/** UniApp 编译结果路径(可选,如果提供则跳过构建步骤,直接使用此路径) */
|
|
145
145
|
uniappBuildOutputPath?: string
|
|
146
|
+
/** UniApp 应用 ID(如 __UNI__7AE6056) */
|
|
147
|
+
uniAppId: string
|
|
148
|
+
/** 应用显示名称 */
|
|
149
|
+
displayName: string
|
|
150
|
+
/** 版本名称(如 1.0.0) */
|
|
151
|
+
versionName: string
|
|
152
|
+
/** 版本代码(如 1) */
|
|
153
|
+
versionCode: string
|
|
146
154
|
/** 是否解决 allowBackup 冲突(可选,默认为 true) */
|
|
147
155
|
resolveAllowBackupConflict?: boolean
|
|
148
156
|
/** 是否修复缺少 xmlns:android 命名空间声明(可选,默认为 true) */
|
|
@@ -155,8 +163,20 @@ export interface UniAppAndroidBuildOptions extends AndroidBuildOptions {
|
|
|
155
163
|
applicationId?: string
|
|
156
164
|
/** UniApp 应用密钥 */
|
|
157
165
|
appkey?: string
|
|
166
|
+
/** 是否只修改主应用模块的 AndroidManifest.xml(可选,默认为 false,如果为 true 则只修改主应用模块,不修改其他模块) */
|
|
167
|
+
onlyModifyMainModule?: boolean
|
|
158
168
|
/** 启动屏路径(可选,如果提供则自动配置 LaunchScreen) */
|
|
159
169
|
launchScreenPath?: string
|
|
170
|
+
/** 启动屏背景颜色(可选,用于 Android 12+ Splash Screen,如 '#FFFFFF',默认白色) */
|
|
171
|
+
splashBackgroundColor?: string
|
|
172
|
+
/** Android 12+ Splash Screen 图标路径(可选,不设置则使用应用图标) */
|
|
173
|
+
splashIconPath?: string
|
|
174
|
+
/** 应用图标路径(可选,如果提供则自动生成各密度图标) */
|
|
175
|
+
appIconPath?: string
|
|
176
|
+
/** Android 权限列表(可选,如 ['CAMERA', 'READ_EXTERNAL_STORAGE'],不需要加 android.permission. 前缀) */
|
|
177
|
+
permissions?: string[]
|
|
178
|
+
/** 目标 SDK 版本(可选,设为 30 可绕过 Android 12+ 强制 Splash Screen) */
|
|
179
|
+
targetSdkVersion?: number
|
|
160
180
|
/** 微信登录配置(可选) */
|
|
161
181
|
wechatLogin?: WechatLoginOptions
|
|
162
182
|
/** 微信分享配置(可选) */
|
|
@@ -96,6 +96,14 @@ export interface UniAppIOSBuildOptions extends IOSBuildOptions {
|
|
|
96
96
|
uniappProjectPath: string
|
|
97
97
|
/** UniApp 编译结果路径(可选,如果提供则跳过构建步骤,直接使用此路径) */
|
|
98
98
|
uniappBuildOutputPath?: string
|
|
99
|
+
/** UniApp 应用 ID(如 __UNI__7AE6056) */
|
|
100
|
+
uniAppId: string
|
|
101
|
+
/** 应用显示名称 */
|
|
102
|
+
displayName: string
|
|
103
|
+
/** 版本名称(如 1.0.0) */
|
|
104
|
+
versionName: string
|
|
105
|
+
/** 版本代码(如 1) */
|
|
106
|
+
versionCode: string
|
|
99
107
|
/** iOS Bundle Identifier */
|
|
100
108
|
bundleId?: string
|
|
101
109
|
/** UniApp 应用密钥 */
|
|
@@ -108,6 +116,8 @@ export interface UniAppIOSBuildOptions extends IOSBuildOptions {
|
|
|
108
116
|
appIconPath?: string
|
|
109
117
|
/** 启动屏路径(可选,如果提供则配置 LaunchScreen) */
|
|
110
118
|
launchScreenPath?: string
|
|
119
|
+
/** iOS 权限列表(可选,如 ['CAMERA', 'READ_EXTERNAL_STORAGE'],会自动映射到对应的 iOS 权限 key) */
|
|
120
|
+
permissions?: string[]
|
|
111
121
|
/** 是否开启 IDFA(可选,默认为 false) */
|
|
112
122
|
enableIDFA?: boolean
|
|
113
123
|
/** 微信分享配置(可选) */
|
|
@@ -120,6 +130,10 @@ export interface UniAppIOSBuildOptions extends IOSBuildOptions {
|
|
|
120
130
|
sinaShare?: SinaShareIOSOptions
|
|
121
131
|
/** UniApp 原生插件配置列表(可选) */
|
|
122
132
|
nativePlugins?: UniAppNativePluginIOSOptions[]
|
|
133
|
+
/** 源码目录名称(可选,如果 .xcodeproj 文件名与实际源码目录不一致时需要指定,默认从 .xcodeproj 推断) */
|
|
134
|
+
sourceDirectoryName?: string
|
|
135
|
+
/** 是否导出 IPA 文件(可选,默认为 true,插件开发模式可设为 false) */
|
|
136
|
+
exportIPA?: boolean
|
|
123
137
|
}
|
|
124
138
|
|
|
125
139
|
/**
|
|
@@ -165,6 +179,14 @@ export interface UniAppIOSPluginBuildOptions extends IOSBuildOptions {
|
|
|
165
179
|
uniappProjectPath: string
|
|
166
180
|
/** UniApp 编译结果路径(可选,如果提供则跳过构建步骤,直接使用此路径) */
|
|
167
181
|
uniappBuildOutputPath?: string
|
|
182
|
+
/** UniApp 应用 ID(如 __UNI__7AE6056) */
|
|
183
|
+
uniAppId: string
|
|
184
|
+
/** 应用显示名称 */
|
|
185
|
+
displayName: string
|
|
186
|
+
/** 版本名称(如 1.0.0) */
|
|
187
|
+
versionName: string
|
|
188
|
+
/** 版本代码(如 1) */
|
|
189
|
+
versionCode: string
|
|
168
190
|
/** iOS Bundle Identifier */
|
|
169
191
|
bundleId?: string
|
|
170
192
|
/** UniApp 应用密钥 */
|