zcw-shared 1.38.0 → 1.38.2

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.
@@ -129,3 +129,49 @@ export interface UniAppIOSBuildResult extends IOSBuildResult {
129
129
  // 可以添加 UniApp 特有的结果属性
130
130
  }
131
131
 
132
+ /**
133
+ * UniApp iOS 插件开发构建选项
134
+ *
135
+ * @description
136
+ * 专门用于 iOS 插件开发场景的构建选项,是 UniAppIOSBuildOptions 的简化版本。
137
+ * 与完整的应用打包相比,插件开发构建有以下区别:
138
+ * 1. 默认使用 Debug 配置
139
+ * 2. 始终启用自定义基座模式(buildCustomBase 隐式为 true)
140
+ * 3. 只构建到 archive,不导出 IPA(更快,适合开发调试)
141
+ * 4. 专门针对 HBuilder-uniPluginDemo 项目结构优化
142
+ *
143
+ * @example
144
+ * ```typescript
145
+ * const options: UniAppIOSPluginBuildOptions = {
146
+ * uniappProjectPath: '/path/to/uniapp/project',
147
+ * projectPath: '/path/to/HBuilder-uniPluginDemo/HBuilder-Hello',
148
+ * bundleId: 'com.example.app',
149
+ * appkey: 'your-appkey',
150
+ * configuration: 'Debug', // 可选,默认为 Debug
151
+ * signing: {
152
+ * teamId: 'XXXXXXXXXX'
153
+ * },
154
+ * nativePlugins: [
155
+ * {
156
+ * pluginPath: '/path/to/plugin.zip',
157
+ * parameters: { appid: 'xxx' }
158
+ * }
159
+ * ]
160
+ * }
161
+ * ```
162
+ */
163
+ export interface UniAppIOSPluginBuildOptions extends IOSBuildOptions {
164
+ /** UniApp 工程路径 */
165
+ uniappProjectPath: string
166
+ /** UniApp 编译结果路径(可选,如果提供则跳过构建步骤,直接使用此路径) */
167
+ uniappBuildOutputPath?: string
168
+ /** iOS Bundle Identifier */
169
+ bundleId?: string
170
+ /** UniApp 应用密钥 */
171
+ appkey?: string
172
+ /** 源码目录名称(可选,如果 .xcodeproj 文件名与实际源码目录不一致时需要指定,默认从 .xcodeproj 推断) */
173
+ sourceDirectoryName?: string
174
+ /** UniApp 原生插件配置列表(可选) */
175
+ nativePlugins?: UniAppNativePluginIOSOptions[]
176
+ }
177
+