zcw-shared 1.37.0 → 1.38.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.
Files changed (59) hide show
  1. package/README.md +8 -0
  2. package/dist/functions/android/modifyGradle.d.ts +1 -0
  3. package/dist/functions/android/modifyGradle.js +45 -0
  4. package/dist/functions/android/modifyGradle.js.map +1 -1
  5. package/dist/functions/auth/parseJwtPayload.d.ts +7 -0
  6. package/dist/functions/auth/parseJwtPayload.js +33 -0
  7. package/dist/functions/auth/parseJwtPayload.js.map +1 -0
  8. package/dist/functions/browser/isWeChat.d.ts +5 -0
  9. package/dist/functions/browser/isWeChat.js +5 -0
  10. package/dist/functions/browser/isWeChat.js.map +1 -0
  11. package/dist/functions/ios/integrateNativePlugin.d.ts +31 -0
  12. package/dist/functions/ios/integrateNativePlugin.js +597 -0
  13. package/dist/functions/ios/integrateNativePlugin.js.map +1 -0
  14. package/dist/functions/ios/integrateQQShare.d.ts +14 -0
  15. package/dist/functions/ios/integrateQQShare.js +132 -0
  16. package/dist/functions/ios/integrateQQShare.js.map +1 -0
  17. package/dist/functions/ios/integrateSinaShare.d.ts +16 -0
  18. package/dist/functions/ios/integrateSinaShare.js +108 -0
  19. package/dist/functions/ios/integrateSinaShare.js.map +1 -0
  20. package/dist/functions/ios/integrateThirdPartyModule.d.ts +62 -0
  21. package/dist/functions/ios/integrateThirdPartyModule.js +874 -0
  22. package/dist/functions/ios/integrateThirdPartyModule.js.map +1 -0
  23. package/dist/functions/ios/integrateWechatOauth.d.ts +14 -0
  24. package/dist/functions/ios/integrateWechatOauth.js +107 -0
  25. package/dist/functions/ios/integrateWechatOauth.js.map +1 -0
  26. package/dist/functions/ios/integrateWechatShare.d.ts +14 -0
  27. package/dist/functions/ios/integrateWechatShare.js +101 -0
  28. package/dist/functions/ios/integrateWechatShare.js.map +1 -0
  29. package/dist/functions/uniapp/app-plus/buildAndroidApp.js +128 -35
  30. package/dist/functions/uniapp/app-plus/buildAndroidApp.js.map +1 -1
  31. package/dist/functions/uniapp/app-plus/buildIOSApp.d.ts +27 -0
  32. package/dist/functions/uniapp/app-plus/buildIOSApp.js +849 -0
  33. package/dist/functions/uniapp/app-plus/buildIOSApp.js.map +1 -0
  34. package/dist/functions/uniapp/parseManifest.d.ts +2 -0
  35. package/dist/functions/uniapp/parseManifest.js +3 -1
  36. package/dist/functions/uniapp/parseManifest.js.map +1 -1
  37. package/dist/vue-hooks/browser/useWechatEnv.d.ts +10 -0
  38. package/dist/vue-hooks/browser/useWechatEnv.js +23 -0
  39. package/dist/vue-hooks/browser/useWechatEnv.js.map +1 -0
  40. package/dist/vue-hooks/browser/useWechatJSSDK.d.ts +47 -0
  41. package/dist/vue-hooks/browser/useWechatJSSDK.js +174 -0
  42. package/dist/vue-hooks/browser/useWechatJSSDK.js.map +1 -0
  43. package/dist/vue-hooks/state/useGlobalSettingsManager.d.ts +2 -6
  44. package/dist/vue-hooks/state/useGlobalSettingsManager.js +20 -19
  45. package/dist/vue-hooks/state/useGlobalSettingsManager.js.map +1 -1
  46. package/dist/vue-hooks/state/useSystemSettingsManager.d.ts +2 -6
  47. package/dist/vue-hooks/state/useSystemSettingsManager.js +16 -15
  48. package/dist/vue-hooks/state/useSystemSettingsManager.js.map +1 -1
  49. package/dist/vue-hooks/state/useTokenManager.d.ts +2 -6
  50. package/dist/vue-hooks/state/useTokenManager.js +16 -15
  51. package/dist/vue-hooks/state/useTokenManager.js.map +1 -1
  52. package/dist/vue-hooks/state/useUserManager.d.ts +2 -6
  53. package/dist/vue-hooks/state/useUserManager.js +14 -13
  54. package/dist/vue-hooks/state/useUserManager.js.map +1 -1
  55. package/package.json +14 -1
  56. package/references/wechat.d.ts +8 -0
  57. package/types/ios-build.d.ts +47 -0
  58. package/types/uniapp-android-build.d.ts +10 -0
  59. package/types/uniapp-ios-build.d.ts +131 -0
@@ -0,0 +1,597 @@
1
+ import { addFileToXcodeProject, addFileToEmbedFrameworks } from './integrateThirdPartyModule';
2
+ async function extractPlugin(pluginPath, extractDir, deps) {
3
+ try {
4
+ if (deps.existsSync(pluginPath)) {
5
+ const stat = deps.statSync(pluginPath);
6
+ if (stat.isDirectory()) {
7
+ return {
8
+ success: true,
9
+ extractedPath: pluginPath
10
+ };
11
+ }
12
+ }
13
+ if (pluginPath.endsWith('.zip')) {
14
+ const pluginName = deps.basename(pluginPath, '.zip');
15
+ const targetDir = deps.join(extractDir, pluginName);
16
+ if (deps.existsSync(targetDir)) {
17
+ return {
18
+ success: true,
19
+ extractedPath: targetDir
20
+ };
21
+ }
22
+ if (!deps.existsSync(extractDir)) {
23
+ deps.mkdirSync(extractDir, { recursive: true });
24
+ }
25
+ return new Promise((resolve) => {
26
+ deps.exec(`unzip -q "${pluginPath}" -d "${extractDir}"`, (error, stdout, stderr) => {
27
+ if (error) {
28
+ resolve({
29
+ success: false,
30
+ error: `解压插件失败: ${error.message}`
31
+ });
32
+ return;
33
+ }
34
+ const files = deps.readdirSync(extractDir);
35
+ if (files.length === 0) {
36
+ resolve({
37
+ success: false,
38
+ error: '解压后未找到插件文件'
39
+ });
40
+ return;
41
+ }
42
+ const extractedPath = deps.join(extractDir, files[0]);
43
+ resolve({
44
+ success: true,
45
+ extractedPath
46
+ });
47
+ });
48
+ });
49
+ }
50
+ return {
51
+ success: false,
52
+ error: `不支持的插件格式: ${pluginPath}`
53
+ };
54
+ }
55
+ catch (error) {
56
+ return {
57
+ success: false,
58
+ error: `解压插件异常: ${error instanceof Error ? error.message : String(error)}`
59
+ };
60
+ }
61
+ }
62
+ function readPluginPackageJson(pluginDir, deps) {
63
+ try {
64
+ const packageJsonPath = deps.join(pluginDir, 'package.json');
65
+ if (!deps.existsSync(packageJsonPath)) {
66
+ return {
67
+ success: false,
68
+ error: `插件 package.json 不存在: ${packageJsonPath}`
69
+ };
70
+ }
71
+ const content = deps.readFileSync(packageJsonPath, 'utf8');
72
+ const packageJson = deps.parse(content);
73
+ return {
74
+ success: true,
75
+ packageJson
76
+ };
77
+ }
78
+ catch (error) {
79
+ return {
80
+ success: false,
81
+ error: `读取插件 package.json 失败: ${error instanceof Error ? error.message : String(error)}`
82
+ };
83
+ }
84
+ }
85
+ function extractIOSPluginConfig(packageJson) {
86
+ try {
87
+ const iosConfig = packageJson._dp_nativeplugin?.ios;
88
+ if (!iosConfig) {
89
+ return {
90
+ success: false,
91
+ error: 'package.json 中未找到 _dp_nativeplugin.ios 配置'
92
+ };
93
+ }
94
+ const plugins = iosConfig.plugins;
95
+ if (!plugins || !Array.isArray(plugins) || plugins.length === 0) {
96
+ return {
97
+ success: false,
98
+ error: 'package.json 中未找到有效的 plugins 配置'
99
+ };
100
+ }
101
+ const pluginItems = [];
102
+ for (const plugin of plugins) {
103
+ if (plugin.type && plugin.name && plugin.class) {
104
+ pluginItems.push({
105
+ type: plugin.type,
106
+ name: plugin.name,
107
+ class: plugin.class
108
+ });
109
+ }
110
+ }
111
+ if (pluginItems.length === 0) {
112
+ return {
113
+ success: false,
114
+ error: 'package.json 中未找到有效的插件配置'
115
+ };
116
+ }
117
+ const hooksClass = iosConfig.hooksClass || '';
118
+ const frameworks = iosConfig.frameworks || [];
119
+ const embedFrameworks = iosConfig.embedFrameworks || [];
120
+ const resources = iosConfig.resources || [];
121
+ const privacies = iosConfig.privacies || [];
122
+ let parameters = undefined;
123
+ if (iosConfig.parameters && typeof iosConfig.parameters === 'object') {
124
+ parameters = {};
125
+ for (const [paramName, paramConfig] of Object.entries(iosConfig.parameters)) {
126
+ if (paramConfig && typeof paramConfig === 'object' && 'key' in paramConfig) {
127
+ parameters[paramName] = {
128
+ key: paramConfig.key,
129
+ des: paramConfig.des || ''
130
+ };
131
+ }
132
+ }
133
+ }
134
+ return {
135
+ success: true,
136
+ plugins: pluginItems,
137
+ hooksClass,
138
+ frameworks,
139
+ embedFrameworks,
140
+ resources,
141
+ privacies,
142
+ parameters
143
+ };
144
+ }
145
+ catch (error) {
146
+ return {
147
+ success: false,
148
+ error: `提取插件配置失败: ${error instanceof Error ? error.message : String(error)}`
149
+ };
150
+ }
151
+ }
152
+ function addPluginToInfoPlist(xmlDoc, pluginItems, hooksClass) {
153
+ const dictElement = xmlDoc.getElementsByTagName('dict')[0];
154
+ if (!dictElement)
155
+ return false;
156
+ let unipluginsKey = null;
157
+ let unipluginsArray = null;
158
+ const childNodes = Array.from(dictElement.childNodes || []).filter((node) => node.nodeType === 1);
159
+ for (let i = 0; i < childNodes.length; i++) {
160
+ const node = childNodes[i];
161
+ if (node.nodeName === 'key' && node.textContent === 'dcloud_uniplugins') {
162
+ unipluginsKey = node;
163
+ if (i + 1 < childNodes.length && childNodes[i + 1].nodeName === 'array') {
164
+ unipluginsArray = childNodes[i + 1];
165
+ break;
166
+ }
167
+ }
168
+ }
169
+ if (!unipluginsArray) {
170
+ if (!unipluginsKey) {
171
+ unipluginsKey = xmlDoc.createElement('key');
172
+ unipluginsKey.textContent = 'dcloud_uniplugins';
173
+ dictElement.appendChild(unipluginsKey);
174
+ }
175
+ unipluginsArray = xmlDoc.createElement('array');
176
+ dictElement.appendChild(unipluginsArray);
177
+ }
178
+ const pluginDict = xmlDoc.createElement('dict');
179
+ const hooksClassKey = xmlDoc.createElement('key');
180
+ hooksClassKey.textContent = 'hooksClass';
181
+ const hooksClassValue = xmlDoc.createElement('string');
182
+ hooksClassValue.textContent = hooksClass;
183
+ pluginDict.appendChild(hooksClassKey);
184
+ pluginDict.appendChild(hooksClassValue);
185
+ const pluginsKey = xmlDoc.createElement('key');
186
+ pluginsKey.textContent = 'plugins';
187
+ const pluginsArray = xmlDoc.createElement('array');
188
+ for (const plugin of pluginItems) {
189
+ const itemDict = xmlDoc.createElement('dict');
190
+ const typeKey = xmlDoc.createElement('key');
191
+ typeKey.textContent = 'type';
192
+ const typeValue = xmlDoc.createElement('string');
193
+ typeValue.textContent = plugin.type;
194
+ itemDict.appendChild(typeKey);
195
+ itemDict.appendChild(typeValue);
196
+ const nameKey = xmlDoc.createElement('key');
197
+ nameKey.textContent = 'name';
198
+ const nameValue = xmlDoc.createElement('string');
199
+ nameValue.textContent = plugin.name;
200
+ itemDict.appendChild(nameKey);
201
+ itemDict.appendChild(nameValue);
202
+ const classKey = xmlDoc.createElement('key');
203
+ classKey.textContent = 'class';
204
+ const classValue = xmlDoc.createElement('string');
205
+ classValue.textContent = plugin.class;
206
+ itemDict.appendChild(classKey);
207
+ itemDict.appendChild(classValue);
208
+ pluginsArray.appendChild(itemDict);
209
+ }
210
+ pluginDict.appendChild(pluginsKey);
211
+ pluginDict.appendChild(pluginsArray);
212
+ unipluginsArray.appendChild(pluginDict);
213
+ return true;
214
+ }
215
+ function addPluginParametersToInfoPlist(xmlDoc, parameters, parameterValues) {
216
+ const dictElement = xmlDoc.getElementsByTagName('dict')[0];
217
+ if (!dictElement)
218
+ return false;
219
+ for (const [paramName, paramConfig] of Object.entries(parameters)) {
220
+ const value = parameterValues[paramName];
221
+ if (!value)
222
+ continue;
223
+ const key = paramConfig.key;
224
+ const keys = key.split(':');
225
+ if (keys.length === 1) {
226
+ const keyElement = xmlDoc.createElement('key');
227
+ keyElement.textContent = keys[0];
228
+ const valueElement = xmlDoc.createElement('string');
229
+ valueElement.textContent = value;
230
+ dictElement.appendChild(keyElement);
231
+ dictElement.appendChild(valueElement);
232
+ }
233
+ else {
234
+ const parentKey = keys[0];
235
+ const childKey = keys[1];
236
+ let parentDict = null;
237
+ const childNodes = Array.from(dictElement.childNodes || []).filter((node) => node.nodeType === 1);
238
+ for (let i = 0; i < childNodes.length; i++) {
239
+ const node = childNodes[i];
240
+ if (node.nodeName === 'key' && node.textContent === parentKey) {
241
+ if (i + 1 < childNodes.length && childNodes[i + 1].nodeName === 'dict') {
242
+ parentDict = childNodes[i + 1];
243
+ break;
244
+ }
245
+ }
246
+ }
247
+ if (!parentDict) {
248
+ const parentKeyElement = xmlDoc.createElement('key');
249
+ parentKeyElement.textContent = parentKey;
250
+ parentDict = xmlDoc.createElement('dict');
251
+ dictElement.appendChild(parentKeyElement);
252
+ dictElement.appendChild(parentDict);
253
+ }
254
+ const childKeyElement = xmlDoc.createElement('key');
255
+ childKeyElement.textContent = childKey;
256
+ const childValueElement = xmlDoc.createElement('string');
257
+ childValueElement.textContent = value;
258
+ parentDict.appendChild(childKeyElement);
259
+ parentDict.appendChild(childValueElement);
260
+ }
261
+ }
262
+ return true;
263
+ }
264
+ function addPrivaciesToInfoPlist(xmlDoc, privacies) {
265
+ const dictElement = xmlDoc.getElementsByTagName('dict')[0];
266
+ if (!dictElement)
267
+ return false;
268
+ for (const privacy of privacies) {
269
+ const keyElements = xmlDoc.getElementsByTagName('key');
270
+ let found = false;
271
+ for (let i = 0; i < keyElements.length; i++) {
272
+ const keyElement = keyElements[i];
273
+ if (keyElement.textContent === privacy) {
274
+ found = true;
275
+ break;
276
+ }
277
+ }
278
+ if (!found) {
279
+ const keyElement = xmlDoc.createElement('key');
280
+ keyElement.textContent = privacy;
281
+ const valueElement = xmlDoc.createElement('string');
282
+ valueElement.textContent = '应用需要使用此功能';
283
+ dictElement.appendChild(keyElement);
284
+ dictElement.appendChild(valueElement);
285
+ }
286
+ }
287
+ return true;
288
+ }
289
+ function findFilesRecursive(dir, extensions, deps) {
290
+ const result = [];
291
+ if (!deps.existsSync(dir)) {
292
+ return result;
293
+ }
294
+ const files = deps.readdirSync(dir);
295
+ for (const file of files) {
296
+ const filePath = deps.join(dir, file);
297
+ const stat = deps.statSync(filePath);
298
+ if (stat.isDirectory()) {
299
+ result.push(...findFilesRecursive(filePath, extensions, deps));
300
+ }
301
+ else {
302
+ for (const ext of extensions) {
303
+ if (file.endsWith(ext)) {
304
+ result.push(filePath);
305
+ break;
306
+ }
307
+ }
308
+ }
309
+ }
310
+ return result;
311
+ }
312
+ export async function integrateNativePluginIOS(projectPath, projectName, pluginPath, deps, parameters) {
313
+ const logs = [];
314
+ try {
315
+ logs.push(`开始集成 UniApp 原生插件: ${pluginPath}`);
316
+ logs.push('步骤 1: 解压插件');
317
+ const tempDir = deps.join(projectPath, '.temp');
318
+ if (!deps.existsSync(tempDir)) {
319
+ deps.mkdirSync(tempDir, { recursive: true });
320
+ }
321
+ const extractResult = await extractPlugin(pluginPath, tempDir, {
322
+ existsSync: deps.existsSync,
323
+ readdirSync: deps.readdirSync,
324
+ statSync: deps.statSync,
325
+ join: deps.join,
326
+ exec: deps.exec,
327
+ basename: deps.basename,
328
+ dirname: deps.dirname,
329
+ mkdirSync: deps.mkdirSync
330
+ });
331
+ if (!extractResult.success) {
332
+ return {
333
+ success: false,
334
+ error: extractResult.error,
335
+ logs
336
+ };
337
+ }
338
+ const pluginDir = extractResult.extractedPath;
339
+ logs.push(`插件已解压到: ${pluginDir}`);
340
+ logs.push('步骤 2: 读取插件配置');
341
+ const packageJsonResult = readPluginPackageJson(pluginDir, {
342
+ existsSync: deps.existsSync,
343
+ readFileSync: deps.readFileSync,
344
+ join: deps.join,
345
+ parse: deps.parse
346
+ });
347
+ if (!packageJsonResult.success) {
348
+ return {
349
+ success: false,
350
+ error: packageJsonResult.error,
351
+ logs
352
+ };
353
+ }
354
+ const packageJson = packageJsonResult.packageJson;
355
+ logs.push(`插件名称: ${packageJson.name}`);
356
+ logs.push(`插件 ID: ${packageJson.id}`);
357
+ logs.push(`插件版本: ${packageJson.version}`);
358
+ logs.push('步骤 3: 提取 iOS 插件配置');
359
+ const configResult = extractIOSPluginConfig(packageJson);
360
+ if (!configResult.success) {
361
+ return {
362
+ success: false,
363
+ error: configResult.error,
364
+ logs
365
+ };
366
+ }
367
+ const { plugins: pluginItems, hooksClass, frameworks, embedFrameworks, resources, privacies, parameters: pluginParameters } = configResult;
368
+ logs.push(`找到 ${pluginItems.length} 个插件`);
369
+ if (hooksClass) {
370
+ logs.push(`Hooks 类: ${hooksClass}`);
371
+ }
372
+ logs.push('步骤 4: 复制插件文件');
373
+ const iosDir = deps.join(pluginDir, 'ios');
374
+ if (!deps.existsSync(iosDir)) {
375
+ return {
376
+ success: false,
377
+ error: `插件 ios 目录不存在: ${iosDir}`,
378
+ logs
379
+ };
380
+ }
381
+ const staticLibs = findFilesRecursive(iosDir, ['.a'], deps);
382
+ const libsDir = deps.join(projectPath, 'libs');
383
+ if (!deps.existsSync(libsDir)) {
384
+ deps.mkdirSync(libsDir, { recursive: true });
385
+ }
386
+ for (const libPath of staticLibs) {
387
+ const libName = deps.basename(libPath);
388
+ const targetPath = deps.join(libsDir, libName);
389
+ deps.copyFileSync(libPath, targetPath);
390
+ logs.push(`已复制静态库: ${libName}`);
391
+ }
392
+ const staticFrameworks = findFilesRecursive(iosDir, ['.framework'], deps).filter(f => {
393
+ const frameworkName = deps.basename(f);
394
+ return !embedFrameworks?.includes(frameworkName);
395
+ });
396
+ const frameworksDir = deps.join(projectPath, 'Frameworks');
397
+ if (!deps.existsSync(frameworksDir)) {
398
+ deps.mkdirSync(frameworksDir, { recursive: true });
399
+ }
400
+ for (const frameworkPath of staticFrameworks) {
401
+ const frameworkName = deps.basename(frameworkPath);
402
+ const targetPath = deps.join(frameworksDir, frameworkName);
403
+ await deps.cp(frameworkPath, targetPath, { recursive: true, force: true });
404
+ logs.push(`已复制静态 framework: ${frameworkName}`);
405
+ }
406
+ if (embedFrameworks && embedFrameworks.length > 0) {
407
+ for (const frameworkName of embedFrameworks) {
408
+ const frameworkPath = deps.join(iosDir, frameworkName);
409
+ if (deps.existsSync(frameworkPath)) {
410
+ const targetPath = deps.join(frameworksDir, frameworkName);
411
+ await deps.cp(frameworkPath, targetPath, { recursive: true, force: true });
412
+ logs.push(`已复制动态 framework: ${frameworkName}`);
413
+ }
414
+ else {
415
+ logs.push(`警告: 动态 framework 不存在: ${frameworkPath}`);
416
+ }
417
+ }
418
+ }
419
+ const xcframeworks = findFilesRecursive(iosDir, ['.xcframework'], deps);
420
+ for (const xcframeworkPath of xcframeworks) {
421
+ const xcframeworkName = deps.basename(xcframeworkPath);
422
+ const targetPath = deps.join(frameworksDir, xcframeworkName);
423
+ await deps.cp(xcframeworkPath, targetPath, { recursive: true, force: true });
424
+ logs.push(`已复制 xcframework: ${xcframeworkName}`);
425
+ }
426
+ if (resources && resources.length > 0) {
427
+ const resourcesTargetDir = deps.join(projectPath, projectName, 'Resources');
428
+ if (!deps.existsSync(resourcesTargetDir)) {
429
+ deps.mkdirSync(resourcesTargetDir, { recursive: true });
430
+ }
431
+ for (const resourcePath of resources) {
432
+ const sourcePath = deps.join(iosDir, resourcePath);
433
+ if (deps.existsSync(sourcePath)) {
434
+ const resourceName = deps.basename(resourcePath);
435
+ const targetPath = deps.join(resourcesTargetDir, resourceName);
436
+ const stat = deps.statSync(sourcePath);
437
+ if (stat.isDirectory()) {
438
+ await deps.cp(sourcePath, targetPath, { recursive: true, force: true });
439
+ }
440
+ else {
441
+ deps.copyFileSync(sourcePath, targetPath);
442
+ }
443
+ logs.push(`已复制资源文件: ${resourceName}`);
444
+ }
445
+ else {
446
+ logs.push(`警告: 资源文件不存在: ${sourcePath}`);
447
+ }
448
+ }
449
+ }
450
+ const headers = findFilesRecursive(iosDir, ['.h'], deps);
451
+ const headersDir = deps.join(projectPath, projectName, 'NativePlugins');
452
+ if (headers.length > 0) {
453
+ if (!deps.existsSync(headersDir)) {
454
+ deps.mkdirSync(headersDir, { recursive: true });
455
+ }
456
+ for (const headerPath of headers) {
457
+ const headerName = deps.basename(headerPath);
458
+ const targetPath = deps.join(headersDir, headerName);
459
+ deps.copyFileSync(headerPath, targetPath);
460
+ logs.push(`已复制头文件: ${headerName}`);
461
+ }
462
+ }
463
+ logs.push('步骤 5: 修改 Info.plist');
464
+ const infoPlistPath = deps.join(projectPath, projectName, `${projectName}-Info.plist`);
465
+ if (deps.existsSync(infoPlistPath)) {
466
+ try {
467
+ const xmlContent = deps.readFileSync(infoPlistPath, 'utf8');
468
+ const parser = new deps.xmlParser();
469
+ const xmlDoc = parser.parseFromString(xmlContent, 'text/xml');
470
+ addPluginToInfoPlist(xmlDoc, pluginItems, hooksClass || '');
471
+ logs.push('已添加插件信息到 dcloud_uniplugins');
472
+ if (privacies && privacies.length > 0) {
473
+ addPrivaciesToInfoPlist(xmlDoc, privacies);
474
+ logs.push(`已添加 ${privacies.length} 个隐私权限描述`);
475
+ }
476
+ if (pluginParameters && parameters) {
477
+ addPluginParametersToInfoPlist(xmlDoc, pluginParameters, parameters);
478
+ logs.push('已添加插件参数配置');
479
+ }
480
+ const serializer = new deps.xmlSerializer();
481
+ const newXmlContent = serializer.serializeToString(xmlDoc);
482
+ deps.writeFileSync(infoPlistPath, newXmlContent, 'utf8');
483
+ logs.push('Info.plist 修改完成');
484
+ }
485
+ catch (error) {
486
+ logs.push(`修改 Info.plist 失败: ${error instanceof Error ? error.message : String(error)}`);
487
+ }
488
+ }
489
+ logs.push('步骤 6: 添加文件到 Xcode 项目');
490
+ const projectFiles = deps.readdirSync(projectPath).filter(file => file.endsWith('.xcodeproj'));
491
+ if (projectFiles.length === 0) {
492
+ logs.push('警告: 未找到 .xcodeproj 文件,跳过 Xcode 项目配置');
493
+ }
494
+ else {
495
+ const projectFile = projectFiles[0];
496
+ const projectPbxprojPath = deps.join(projectPath, projectFile, 'project.pbxproj');
497
+ for (const libPath of staticLibs) {
498
+ const libName = deps.basename(libPath);
499
+ const relativePath = `libs/${libName}`;
500
+ const addResult = addFileToXcodeProject(projectPbxprojPath, relativePath, 'staticLibrary', {
501
+ existsSync: deps.existsSync,
502
+ readFileSync: deps.readFileSync,
503
+ writeFileSync: deps.writeFileSync
504
+ });
505
+ if (addResult.success) {
506
+ logs.push(`已添加到 Xcode 项目: ${libName}`);
507
+ }
508
+ else {
509
+ logs.push(`警告: 添加到 Xcode 项目失败: ${addResult.error}`);
510
+ }
511
+ }
512
+ for (const frameworkPath of staticFrameworks) {
513
+ const frameworkName = deps.basename(frameworkPath);
514
+ const relativePath = `Frameworks/${frameworkName}`;
515
+ const addResult = addFileToXcodeProject(projectPbxprojPath, relativePath, 'framework', {
516
+ existsSync: deps.existsSync,
517
+ readFileSync: deps.readFileSync,
518
+ writeFileSync: deps.writeFileSync
519
+ });
520
+ if (addResult.success) {
521
+ logs.push(`已添加到 Xcode 项目: ${frameworkName}`);
522
+ }
523
+ else {
524
+ logs.push(`警告: 添加到 Xcode 项目失败: ${addResult.error}`);
525
+ }
526
+ }
527
+ for (const xcframeworkPath of xcframeworks) {
528
+ const xcframeworkName = deps.basename(xcframeworkPath);
529
+ const relativePath = `Frameworks/${xcframeworkName}`;
530
+ const addResult = addFileToXcodeProject(projectPbxprojPath, relativePath, 'framework', {
531
+ existsSync: deps.existsSync,
532
+ readFileSync: deps.readFileSync,
533
+ writeFileSync: deps.writeFileSync
534
+ });
535
+ if (addResult.success) {
536
+ logs.push(`已添加到 Xcode 项目: ${xcframeworkName}`);
537
+ }
538
+ else {
539
+ logs.push(`警告: 添加到 Xcode 项目失败: ${addResult.error}`);
540
+ }
541
+ }
542
+ if (resources && resources.length > 0) {
543
+ for (const resourcePath of resources) {
544
+ const resourceName = deps.basename(resourcePath);
545
+ const relativePath = `${projectName}/Resources/${resourceName}`;
546
+ const addResult = addFileToXcodeProject(projectPbxprojPath, relativePath, 'bundle', {
547
+ existsSync: deps.existsSync,
548
+ readFileSync: deps.readFileSync,
549
+ writeFileSync: deps.writeFileSync
550
+ });
551
+ if (addResult.success) {
552
+ logs.push(`已添加资源到 Xcode 项目: ${resourceName}`);
553
+ }
554
+ else {
555
+ logs.push(`警告: 添加资源到 Xcode 项目失败: ${addResult.error}`);
556
+ }
557
+ }
558
+ }
559
+ if (embedFrameworks && embedFrameworks.length > 0) {
560
+ for (const frameworkName of embedFrameworks) {
561
+ const relativePath = `Frameworks/${frameworkName}`;
562
+ const addResult = addFileToEmbedFrameworks(projectPbxprojPath, relativePath, {
563
+ existsSync: deps.existsSync,
564
+ readFileSync: deps.readFileSync,
565
+ writeFileSync: deps.writeFileSync
566
+ });
567
+ if (addResult.success) {
568
+ logs.push(`已添加动态 framework 到 Embed Frameworks: ${frameworkName}`);
569
+ }
570
+ else {
571
+ logs.push(`警告: 添加动态 framework 失败: ${addResult.error}`);
572
+ }
573
+ }
574
+ }
575
+ if (frameworks && frameworks.length > 0) {
576
+ logs.push('注意: 系统库需要手动在 Xcode 中添加到 Link Binary With Libraries:');
577
+ for (const framework of frameworks) {
578
+ logs.push(` - ${framework}`);
579
+ }
580
+ }
581
+ }
582
+ return {
583
+ success: true,
584
+ message: '原生插件集成成功',
585
+ logs
586
+ };
587
+ }
588
+ catch (error) {
589
+ logs.push(`原生插件集成异常: ${error instanceof Error ? error.message : String(error)}`);
590
+ return {
591
+ success: false,
592
+ error: `原生插件集成异常: ${error instanceof Error ? error.message : String(error)}`,
593
+ logs
594
+ };
595
+ }
596
+ }
597
+ //# sourceMappingURL=integrateNativePlugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrateNativePlugin.js","sourceRoot":"","sources":["../../../src/functions/ios/integrateNativePlugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAkD7F,KAAK,UAAU,aAAa,CAC1B,UAAkB,EAClB,UAAkB,EAClB,IAA4I;IAE5I,IAAI,CAAC;QAEH,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YAChC,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;YACtC,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;gBACvB,OAAO;oBACL,OAAO,EAAE,IAAI;oBACb,aAAa,EAAE,UAAU;iBAC1B,CAAA;YACH,CAAC;QACH,CAAC;QAGD,IAAI,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YAChC,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;YACpD,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA;YAGnD,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;gBAC/B,OAAO;oBACL,OAAO,E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ED,OAAO;YACL,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,UAAU;YACnB,IAAI;SACL,CAAA;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,IAAI,CAAC,aAAa,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;QAChF,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,aAAa,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;YAC5E,IAAI;SACL,CAAA;IACH,CAAC;AACH,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { IntegrateIOSThirdPartyModuleDeps } from './integrateThirdPartyModule';
2
+ export interface QQShareIOSConfig {
3
+ appId: string;
4
+ universalLinks: string;
5
+ liblibSharePath?: string;
6
+ libQQSharePath?: string;
7
+ tencentOpenAPIPath?: string;
8
+ }
9
+ export declare function integrateQQShareIOS(projectPath: string, projectName: string, bundleId: string, config: QQShareIOSConfig, deps: IntegrateIOSThirdPartyModuleDeps): Promise<{
10
+ success: boolean;
11
+ message?: string;
12
+ error?: string;
13
+ logs: string[];
14
+ }>;