zcw-shared 1.10.0 → 1.10.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.
Files changed (270) hide show
  1. package/dist/constants/colorPatterns.d.ts +8 -0
  2. package/dist/constants/colorPatterns.js +9 -1
  3. package/dist/constants/colorPatterns.js.map +1 -1
  4. package/dist/functions/color/detectColorFormat.js +11 -11
  5. package/dist/functions/color/detectColorFormat.js.map +1 -1
  6. package/dist/functions/color/extractColors.d.ts +1 -0
  7. package/dist/functions/color/extractColors.js +13 -79
  8. package/dist/functions/color/extractColors.js.map +1 -1
  9. package/package.json +1 -1
  10. package/dist/functions/altool/createAltoolClient.d.ts +0 -21
  11. package/dist/functions/altool/createAltoolClient.js +0 -53
  12. package/dist/functions/altool/createAltoolClient.js.map +0 -1
  13. package/dist/functions/altool/getAltoolAuth.d.ts +0 -2
  14. package/dist/functions/altool/getAltoolAuth.js +0 -8
  15. package/dist/functions/altool/getAltoolAuth.js.map +0 -1
  16. package/dist/functions/altool/getAppInfo.d.ts +0 -13
  17. package/dist/functions/altool/getAppInfo.js +0 -39
  18. package/dist/functions/altool/getAppInfo.js.map +0 -1
  19. package/dist/functions/altool/index.d.ts +0 -10
  20. package/dist/functions/altool/index.js +0 -6
  21. package/dist/functions/altool/index.js.map +0 -1
  22. package/dist/functions/altool/isApiKeyAuth.d.ts +0 -2
  23. package/dist/functions/altool/isApiKeyAuth.js +0 -4
  24. package/dist/functions/altool/isApiKeyAuth.js.map +0 -1
  25. package/dist/functions/altool/isCredentialsAuth.d.ts +0 -2
  26. package/dist/functions/altool/isCredentialsAuth.js +0 -4
  27. package/dist/functions/altool/isCredentialsAuth.js.map +0 -1
  28. package/dist/functions/altool/parseAppInfoOutput.d.ts +0 -2
  29. package/dist/functions/altool/parseAppInfoOutput.js +0 -55
  30. package/dist/functions/altool/parseAppInfoOutput.js.map +0 -1
  31. package/dist/functions/altool/parseValidationOutput.d.ts +0 -6
  32. package/dist/functions/altool/parseValidationOutput.js +0 -21
  33. package/dist/functions/altool/parseValidationOutput.js.map +0 -1
  34. package/dist/functions/altool/types.d.ts +0 -26
  35. package/dist/functions/altool/types.js +0 -7
  36. package/dist/functions/altool/types.js.map +0 -1
  37. package/dist/functions/altool/uploadApp.d.ts +0 -6
  38. package/dist/functions/altool/uploadApp.js +0 -36
  39. package/dist/functions/altool/uploadApp.js.map +0 -1
  40. package/dist/functions/altool/validateApp.d.ts +0 -17
  41. package/dist/functions/altool/validateApp.js +0 -40
  42. package/dist/functions/altool/validateApp.js.map +0 -1
  43. package/dist/functions/base64/strToBase64.d.ts +0 -2
  44. package/dist/functions/base64/strToBase64.js +0 -6
  45. package/dist/functions/base64/strToBase64.js.map +0 -1
  46. package/dist/functions/color-converter/COLOR_PATTERNS.d.ts +0 -2
  47. package/dist/functions/color-converter/COLOR_PATTERNS.js +0 -9
  48. package/dist/functions/color-converter/COLOR_PATTERNS.js.map +0 -1
  49. package/dist/functions/color-converter/colorPatterns.d.ts +0 -4
  50. package/dist/functions/color-converter/colorPatterns.js +0 -41
  51. package/dist/functions/color-converter/colorPatterns.js.map +0 -1
  52. package/dist/functions/color-converter/convertColor.d.ts +0 -6
  53. package/dist/functions/color-converter/convertColor.js +0 -12
  54. package/dist/functions/color-converter/convertColor.js.map +0 -1
  55. package/dist/functions/color-converter/createColorReference.d.ts +0 -2
  56. package/dist/functions/color-converter/createColorReference.js +0 -12
  57. package/dist/functions/color-converter/createColorReference.js.map +0 -1
  58. package/dist/functions/color-converter/detectColorFormat.d.ts +0 -2
  59. package/dist/functions/color-converter/detectColorFormat.js +0 -19
  60. package/dist/functions/color-converter/detectColorFormat.js.map +0 -1
  61. package/dist/functions/color-converter/extractColors.d.ts +0 -3
  62. package/dist/functions/color-converter/extractColors.js +0 -16
  63. package/dist/functions/color-converter/extractColors.js.map +0 -1
  64. package/dist/functions/color-converter/extractColorsFromLine.d.ts +0 -2
  65. package/dist/functions/color-converter/extractColorsFromLine.js +0 -18
  66. package/dist/functions/color-converter/extractColorsFromLine.js.map +0 -1
  67. package/dist/functions/color-converter/extractColorsGeneric.d.ts +0 -2
  68. package/dist/functions/color-converter/extractColorsGeneric.js +0 -12
  69. package/dist/functions/color-converter/extractColorsGeneric.js.map +0 -1
  70. package/dist/functions/color-converter/extractCssVariableReferences.d.ts +0 -2
  71. package/dist/functions/color-converter/extractCssVariableReferences.js +0 -15
  72. package/dist/functions/color-converter/extractCssVariableReferences.js.map +0 -1
  73. package/dist/functions/color-converter/extractThirdPartyVariableReferences.d.ts +0 -2
  74. package/dist/functions/color-converter/extractThirdPartyVariableReferences.js +0 -15
  75. package/dist/functions/color-converter/extractThirdPartyVariableReferences.js.map +0 -1
  76. package/dist/functions/color-converter/formatColorOutput.d.ts +0 -5
  77. package/dist/functions/color-converter/formatColorOutput.js +0 -48
  78. package/dist/functions/color-converter/formatColorOutput.js.map +0 -1
  79. package/dist/functions/color-converter/getColorPatterns.d.ts +0 -2
  80. package/dist/functions/color-converter/getColorPatterns.js +0 -11
  81. package/dist/functions/color-converter/getColorPatterns.js.map +0 -1
  82. package/dist/functions/color-converter/getNamedColorMap.d.ts +0 -2
  83. package/dist/functions/color-converter/getNamedColorMap.js +0 -19
  84. package/dist/functions/color-converter/getNamedColorMap.js.map +0 -1
  85. package/dist/functions/color-converter/hexToRgb.d.ts +0 -2
  86. package/dist/functions/color-converter/hexToRgb.js +0 -42
  87. package/dist/functions/color-converter/hexToRgb.js.map +0 -1
  88. package/dist/functions/color-converter/hslToRgb.d.ts +0 -2
  89. package/dist/functions/color-converter/hslToRgb.js +0 -78
  90. package/dist/functions/color-converter/hslToRgb.js.map +0 -1
  91. package/dist/functions/color-converter/hslToRgbInternal.d.ts +0 -2
  92. package/dist/functions/color-converter/hslToRgbInternal.js +0 -24
  93. package/dist/functions/color-converter/hslToRgbInternal.js.map +0 -1
  94. package/dist/functions/color-converter/hueToRgb.d.ts +0 -1
  95. package/dist/functions/color-converter/hueToRgb.js +0 -14
  96. package/dist/functions/color-converter/hueToRgb.js.map +0 -1
  97. package/dist/functions/color-converter/isColorValue.d.ts +0 -2
  98. package/dist/functions/color-converter/isColorValue.js +0 -79
  99. package/dist/functions/color-converter/isColorValue.js.map +0 -1
  100. package/dist/functions/color-converter/isValidColorValue.d.ts +0 -1
  101. package/dist/functions/color-converter/isValidColorValue.js +0 -4
  102. package/dist/functions/color-converter/isValidColorValue.js.map +0 -1
  103. package/dist/functions/color-converter/isValidHslColor.d.ts +0 -2
  104. package/dist/functions/color-converter/isValidHslColor.js +0 -14
  105. package/dist/functions/color-converter/isValidHslColor.js.map +0 -1
  106. package/dist/functions/color-converter/isValidRgbColor.d.ts +0 -2
  107. package/dist/functions/color-converter/isValidRgbColor.js +0 -14
  108. package/dist/functions/color-converter/isValidRgbColor.js.map +0 -1
  109. package/dist/functions/color-converter/normalizeColor.d.ts +0 -1
  110. package/dist/functions/color-converter/normalizeColor.js +0 -49
  111. package/dist/functions/color-converter/normalizeColor.js.map +0 -1
  112. package/dist/functions/color-converter/normalizeColorInput.d.ts +0 -6
  113. package/dist/functions/color-converter/normalizeColorInput.js +0 -94
  114. package/dist/functions/color-converter/normalizeColorInput.js.map +0 -1
  115. package/dist/functions/color-converter/parseColorString.d.ts +0 -12
  116. package/dist/functions/color-converter/parseColorString.js +0 -89
  117. package/dist/functions/color-converter/parseColorString.js.map +0 -1
  118. package/dist/functions/color-converter/parseCssVariables.d.ts +0 -2
  119. package/dist/functions/color-converter/parseCssVariables.js +0 -19
  120. package/dist/functions/color-converter/parseCssVariables.js.map +0 -1
  121. package/dist/functions/color-converter/parseHexColor.d.ts +0 -6
  122. package/dist/functions/color-converter/parseHexColor.js +0 -42
  123. package/dist/functions/color-converter/parseHexColor.js.map +0 -1
  124. package/dist/functions/color-converter/rgbToHex.d.ts +0 -2
  125. package/dist/functions/color-converter/rgbToHex.js +0 -65
  126. package/dist/functions/color-converter/rgbToHex.js.map +0 -1
  127. package/dist/functions/color-converter/rgbToHslInternal.d.ts +0 -2
  128. package/dist/functions/color-converter/rgbToHslInternal.js +0 -31
  129. package/dist/functions/color-converter/rgbToHslInternal.js.map +0 -1
  130. package/dist/functions/color-converter/standardizeColor.d.ts +0 -1
  131. package/dist/functions/color-converter/standardizeColor.js +0 -147
  132. package/dist/functions/color-converter/standardizeColor.js.map +0 -1
  133. package/dist/functions/desensitize/desensitizeName.d.ts +0 -1
  134. package/dist/functions/desensitize/desensitizeName.js +0 -8
  135. package/dist/functions/desensitize/desensitizeName.js.map +0 -1
  136. package/dist/functions/desensitize/desensitizePhone.d.ts +0 -1
  137. package/dist/functions/desensitize/desensitizePhone.js +0 -8
  138. package/dist/functions/desensitize/desensitizePhone.js.map +0 -1
  139. package/dist/functions/dom/getViewportSize.d.ts +0 -5
  140. package/dist/functions/dom/getViewportSize.js +0 -7
  141. package/dist/functions/dom/getViewportSize.js.map +0 -1
  142. package/dist/functions/software/buildPathExecutables.d.ts +0 -1
  143. package/dist/functions/software/buildPathExecutables.js +0 -14
  144. package/dist/functions/software/buildPathExecutables.js.map +0 -1
  145. package/dist/functions/software/buildSoftwarePaths.d.ts +0 -2
  146. package/dist/functions/software/buildSoftwarePaths.js +0 -22
  147. package/dist/functions/software/buildSoftwarePaths.js.map +0 -1
  148. package/dist/functions/software/createConfigGenerator.d.ts +0 -8
  149. package/dist/functions/software/createConfigGenerator.js +0 -13
  150. package/dist/functions/software/createConfigGenerator.js.map +0 -1
  151. package/dist/functions/software/detectPlatform.d.ts +0 -2
  152. package/dist/functions/software/detectPlatform.js +0 -9
  153. package/dist/functions/software/detectPlatform.js.map +0 -1
  154. package/dist/functions/software/find.d.ts +0 -2
  155. package/dist/functions/software/find.js +0 -12
  156. package/dist/functions/software/find.js.map +0 -1
  157. package/dist/functions/software/findSoftwareWithGenerator.d.ts +0 -3
  158. package/dist/functions/software/findSoftwareWithGenerator.js +0 -8
  159. package/dist/functions/software/findSoftwareWithGenerator.js.map +0 -1
  160. package/dist/functions/software/getConfigGenerator.d.ts +0 -2
  161. package/dist/functions/software/getConfigGenerator.js +0 -10
  162. package/dist/functions/software/getConfigGenerator.js.map +0 -1
  163. package/dist/functions/software/getEnvironmentSoftwarePath.d.ts +0 -1
  164. package/dist/functions/software/getEnvironmentSoftwarePath.js +0 -8
  165. package/dist/functions/software/getEnvironmentSoftwarePath.js.map +0 -1
  166. package/dist/functions/software/getSupportedSoftware.d.ts +0 -1
  167. package/dist/functions/software/getSupportedSoftware.js +0 -5
  168. package/dist/functions/software/getSupportedSoftware.js.map +0 -1
  169. package/dist/functions/software/parseEnvironmentPaths.d.ts +0 -1
  170. package/dist/functions/software/parseEnvironmentPaths.js +0 -11
  171. package/dist/functions/software/parseEnvironmentPaths.js.map +0 -1
  172. package/dist/functions/software/softwareConfigs.d.ts +0 -2
  173. package/dist/functions/software/softwareConfigs.js +0 -148
  174. package/dist/functions/software/softwareConfigs.js.map +0 -1
  175. package/dist/functions/software/softwareNameMap.d.ts +0 -1
  176. package/dist/functions/software/softwareNameMap.js +0 -9
  177. package/dist/functions/software/softwareNameMap.js.map +0 -1
  178. package/dist/functions/software/types.d.ts +0 -11
  179. package/dist/functions/software/types.js +0 -2
  180. package/dist/functions/software/types.js.map +0 -1
  181. package/dist/functions/string/camelCase.d.ts +0 -1
  182. package/dist/functions/string/camelCase.js +0 -8
  183. package/dist/functions/string/camelCase.js.map +0 -1
  184. package/dist/functions/string/escape.d.ts +0 -1
  185. package/dist/functions/string/escape.js +0 -13
  186. package/dist/functions/string/escape.js.map +0 -1
  187. package/dist/functions/string/kebabCase.d.ts +0 -1
  188. package/dist/functions/string/kebabCase.js +0 -10
  189. package/dist/functions/string/kebabCase.js.map +0 -1
  190. package/dist/functions/string/mask.d.ts +0 -1
  191. package/dist/functions/string/mask.js +0 -40
  192. package/dist/functions/string/mask.js.map +0 -1
  193. package/dist/functions/string/padEnd.d.ts +0 -1
  194. package/dist/functions/string/padEnd.js +0 -8
  195. package/dist/functions/string/padEnd.js.map +0 -1
  196. package/dist/functions/string/padStart.d.ts +0 -1
  197. package/dist/functions/string/padStart.js +0 -8
  198. package/dist/functions/string/padStart.js.map +0 -1
  199. package/dist/functions/string/pascalCase.d.ts +0 -1
  200. package/dist/functions/string/pascalCase.js +0 -8
  201. package/dist/functions/string/pascalCase.js.map +0 -1
  202. package/dist/functions/string/snakeCase.d.ts +0 -1
  203. package/dist/functions/string/snakeCase.js +0 -10
  204. package/dist/functions/string/snakeCase.js.map +0 -1
  205. package/dist/functions/string/unescape.d.ts +0 -1
  206. package/dist/functions/string/unescape.js +0 -13
  207. package/dist/functions/string/unescape.js.map +0 -1
  208. package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.d.ts +0 -13
  209. package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js +0 -175
  210. package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js.map +0 -1
  211. package/dist/functions/uniapp/app-plus/androidProjectStrategy.d.ts +0 -19
  212. package/dist/functions/uniapp/app-plus/androidProjectStrategy.js +0 -55
  213. package/dist/functions/uniapp/app-plus/androidProjectStrategy.js.map +0 -1
  214. package/dist/functions/uniapp/app-plus/buildAndroidProject.d.ts +0 -3
  215. package/dist/functions/uniapp/app-plus/buildAndroidProject.js +0 -60
  216. package/dist/functions/uniapp/app-plus/buildAndroidProject.js.map +0 -1
  217. package/dist/functions/uniapp/app-plus/configureAndroidManifest.d.ts +0 -5
  218. package/dist/functions/uniapp/app-plus/configureAndroidManifest.js +0 -51
  219. package/dist/functions/uniapp/app-plus/configureAndroidManifest.js.map +0 -1
  220. package/dist/functions/uniapp/app-plus/configureAndroidProject.d.ts +0 -3
  221. package/dist/functions/uniapp/app-plus/configureAndroidProject.js +0 -63
  222. package/dist/functions/uniapp/app-plus/configureAndroidProject.js.map +0 -1
  223. package/dist/functions/uniapp/app-plus/configureBuildGradle.d.ts +0 -9
  224. package/dist/functions/uniapp/app-plus/configureBuildGradle.js +0 -57
  225. package/dist/functions/uniapp/app-plus/configureBuildGradle.js.map +0 -1
  226. package/dist/functions/uniapp/app-plus/configureDcloudControl.d.ts +0 -5
  227. package/dist/functions/uniapp/app-plus/configureDcloudControl.js +0 -34
  228. package/dist/functions/uniapp/app-plus/configureDcloudControl.js.map +0 -1
  229. package/dist/functions/uniapp/app-plus/configureStrings.d.ts +0 -5
  230. package/dist/functions/uniapp/app-plus/configureStrings.js +0 -42
  231. package/dist/functions/uniapp/app-plus/configureStrings.js.map +0 -1
  232. package/dist/functions/uniapp/app-plus/copyAppResources.d.ts +0 -8
  233. package/dist/functions/uniapp/app-plus/copyAppResources.js +0 -25
  234. package/dist/functions/uniapp/app-plus/copyAppResources.js.map +0 -1
  235. package/dist/functions/uniapp/app-plus/copyDirectory.d.ts +0 -2
  236. package/dist/functions/uniapp/app-plus/copyDirectory.js +0 -18
  237. package/dist/functions/uniapp/app-plus/copyDirectory.js.map +0 -1
  238. package/dist/functions/uniapp/app-plus/generateUniAppResources.d.ts +0 -2
  239. package/dist/functions/uniapp/app-plus/generateUniAppResources.js +0 -35
  240. package/dist/functions/uniapp/app-plus/generateUniAppResources.js.map +0 -1
  241. package/dist/functions/uniapp/app-plus/parseManifest.d.ts +0 -14
  242. package/dist/functions/uniapp/app-plus/parseManifest.js +0 -44
  243. package/dist/functions/uniapp/app-plus/parseManifest.js.map +0 -1
  244. package/dist/functions/uniapp/app-plus/validateOptions.d.ts +0 -3
  245. package/dist/functions/uniapp/app-plus/validateOptions.js +0 -10
  246. package/dist/functions/uniapp/app-plus/validateOptions.js.map +0 -1
  247. package/dist/functions/vue/checkVueType.d.ts +0 -8
  248. package/dist/functions/vue/checkVueType.js +0 -29
  249. package/dist/functions/vue/checkVueType.js.map +0 -1
  250. package/dist/functions/vue/deduplicateColors.d.ts +0 -2
  251. package/dist/functions/vue/deduplicateColors.js +0 -13
  252. package/dist/functions/vue/deduplicateColors.js.map +0 -1
  253. package/dist/functions/vue/processVueFile.d.ts +0 -3
  254. package/dist/functions/vue/processVueFile.js +0 -26
  255. package/dist/functions/vue/processVueFile.js.map +0 -1
  256. package/dist/functions/vue/saveVueSection.d.ts +0 -2
  257. package/dist/functions/vue/saveVueSection.js +0 -11
  258. package/dist/functions/vue/saveVueSection.js.map +0 -1
  259. package/dist/hooks/useAi.d.ts +0 -27
  260. package/dist/hooks/useAi.js +0 -163
  261. package/dist/hooks/useAi.js.map +0 -1
  262. package/dist/hooks/useFetch.d.ts +0 -3
  263. package/dist/hooks/useFetch.js +0 -154
  264. package/dist/hooks/useFetch.js.map +0 -1
  265. package/dist/hooks/useRequest.d.ts +0 -3
  266. package/dist/hooks/useRequest.js +0 -139
  267. package/dist/hooks/useRequest.js.map +0 -1
  268. package/dist/hooks/useWASM.d.ts +0 -4
  269. package/dist/hooks/useWASM.js +0 -263
  270. package/dist/hooks/useWASM.js.map +0 -1
@@ -1,148 +0,0 @@
1
- export const SOFTWARE_CONFIGS = {
2
- git: {
3
- win32: {
4
- executable: 'git.exe',
5
- possiblePaths: [
6
- 'C:\\Program Files\\Git\\bin',
7
- 'C:\\Program Files (x86)\\Git\\bin'
8
- ],
9
- userPaths: ['AppData\\Local\\Programs\\Git\\bin'],
10
- registryKey: 'HKEY_LOCAL_MACHINE\\SOFTWARE\\GitForWindows'
11
- },
12
- darwin: {
13
- executable: 'git',
14
- possiblePaths: ['/usr/bin', '/usr/local/bin', '/opt/homebrew/bin'],
15
- userPaths: ['~/.local/bin']
16
- },
17
- linux: {
18
- executable: 'git',
19
- possiblePaths: ['/usr/bin', '/usr/local/bin'],
20
- userPaths: ['~/.local/bin']
21
- },
22
- envVar: 'GIT_PATH'
23
- },
24
- chrome: {
25
- win32: {
26
- executable: 'chrome.exe',
27
- possiblePaths: [
28
- 'C:\\Program Files\\Google\\Chrome\\Application',
29
- 'C:\\Program Files (x86)\\Google\\Chrome\\Application'
30
- ],
31
- userPaths: ['AppData\\Local\\Google\\Chrome\\Application'],
32
- registryKey: 'HKEY_CURRENT_USER\\Software\\Google\\Chrome'
33
- },
34
- darwin: {
35
- executable: 'Google Chrome',
36
- possiblePaths: ['/Applications/Google Chrome.app/Contents/MacOS'],
37
- userPaths: ['~/Applications/Google Chrome.app/Contents/MacOS']
38
- },
39
- linux: {
40
- executable: 'google-chrome',
41
- possiblePaths: ['/usr/bin', '/usr/local/bin', '/opt/google/chrome'],
42
- userPaths: ['~/.local/bin']
43
- },
44
- envVar: 'CHROME_PATH'
45
- },
46
- nodejs: {
47
- win32: {
48
- executable: 'node.exe',
49
- possiblePaths: [
50
- 'C:\\Program Files\\nodejs',
51
- 'C:\\Program Files (x86)\\nodejs'
52
- ],
53
- userPaths: ['AppData\\Roaming\\npm'],
54
- registryKey: 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Node.js'
55
- },
56
- darwin: {
57
- executable: 'node',
58
- possiblePaths: ['/usr/local/bin', '/opt/homebrew/bin', '/usr/bin'],
59
- userPaths: ['~/.local/bin']
60
- },
61
- linux: {
62
- executable: 'node',
63
- possiblePaths: ['/usr/bin', '/usr/local/bin'],
64
- userPaths: ['~/.local/bin']
65
- },
66
- envVar: 'NODE_PATH'
67
- },
68
- wechat: {
69
- win32: {
70
- executable: 'cli.bat',
71
- possiblePaths: [
72
- 'C:\\Program Files (x86)\\Tencent\\微信web开发者工具',
73
- 'C:\\Program Files\\Tencent\\微信web开发者工具'
74
- ],
75
- userPaths: [
76
- 'AppData\\Local\\微信web开发者工具',
77
- 'AppData\\Roaming\\微信web开发者工具'
78
- ],
79
- registryKey: 'HKEY_CURRENT_USER\\Software\\Tencent\\微信web开发者工具'
80
- },
81
- darwin: {
82
- executable: 'cli',
83
- possiblePaths: [
84
- '/Applications/wechatwebdevtools.app/Contents/MacOS',
85
- '/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/bin'
86
- ],
87
- userPaths: [
88
- '/Applications/wechatwebdevtools.app/Contents/MacOS',
89
- '/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/bin'
90
- ]
91
- },
92
- linux: {
93
- executable: 'cli',
94
- possiblePaths: ['/usr/local/bin', '/usr/bin'],
95
- userPaths: ['.local/bin']
96
- },
97
- envVar: 'WECHAT_DEV_TOOLS_PATH'
98
- },
99
- hbuilderx: {
100
- win32: {
101
- executable: 'HBuilderX.exe',
102
- possiblePaths: [
103
- 'C:\\Program Files\\HBuilderX',
104
- 'C:\\Program Files (x86)\\HBuilderX'
105
- ],
106
- userPaths: [
107
- 'AppData\\Local\\HBuilderX',
108
- 'AppData\\Roaming\\HBuilderX'
109
- ],
110
- registryKey: 'HKEY_CURRENT_USER\\Software\\DCloud\\HBuilderX'
111
- },
112
- darwin: {
113
- executable: 'HBuilderX',
114
- possiblePaths: ['/Applications/HBuilderX.app/Contents/MacOS'],
115
- userPaths: ['~/Applications/HBuilderX.app/Contents/MacOS']
116
- },
117
- linux: {
118
- executable: 'HBuilderX',
119
- possiblePaths: ['/opt/HBuilderX', '/usr/local/HBuilderX'],
120
- userPaths: ['~/.local/share/HBuilderX', '~/HBuilderX']
121
- },
122
- envVar: 'HBUILDERX_PATH'
123
- },
124
- altool: {
125
- win32: {
126
- executable: 'altool.exe',
127
- possiblePaths: [],
128
- userPaths: []
129
- },
130
- darwin: {
131
- executable: 'altool',
132
- possiblePaths: [
133
- '/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support',
134
- '/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin',
135
- '/Applications/Xcode.app/Contents/Developer/usr/bin',
136
- '/usr/local/bin'
137
- ],
138
- userPaths: ['~/Applications/Xcode.app/Contents/Developer/usr/bin']
139
- },
140
- linux: {
141
- executable: 'altool',
142
- possiblePaths: [],
143
- userPaths: []
144
- },
145
- envVar: 'ALTOOL_PATH'
146
- }
147
- };
148
- //# sourceMappingURL=softwareConfigs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"softwareConfigs.js","sourceRoot":"","sources":["../../../src/functions/software/softwareConfigs.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,gBAAgB,GAA6C;IACxE,GAAG,E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EAAE,gBAAgB;KACzB;IAED,MAAM,EAAE;QACN,KAAK,EAAE;YACL,UAAU,EAAE,YAAY;YACxB,aAAa,EAAE,EAAE;YACjB,SAAS,EAAE,EAAE;SACd;QACD,MAAM,EAAE;YACN,UAAU,EAAE,QAAQ;YACpB,aAAa,EAAE;gBACb,6IAA6I;gBAC7I,wFAAwF;gBACxF,oDAAoD;gBACpD,gBAAgB;aACjB;YACD,SAAS,EAAE,CAAC,qDAAqD,CAAC;SACnE;QACD,KAAK,EAAE;YACL,UAAU,EAAE,QAAQ;YACpB,aAAa,EAAE,EAAE;YACjB,SAAS,EAAE,EAAE;SACd;QACD,MAAM,EAAE,aAAa;KACtB;CACF,CAAA"}
@@ -1 +0,0 @@
1
- export declare const SOFTWARE_NAME_MAP: Record<string, string>;
@@ -1,9 +0,0 @@
1
- export const SOFTWARE_NAME_MAP = {
2
- wechat: 'wechat',
3
- chrome: 'chrome',
4
- git: 'git',
5
- hbuilderx: 'hbuilderx',
6
- nodejs: 'nodejs',
7
- node: 'nodejs',
8
- };
9
- //# sourceMappingURL=softwareNameMap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"softwareNameMap.js","sourceRoot":"","sources":["../../../src/functions/software/softwareNameMap.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,iBAAiB,GAA2B;IACvD,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,QAAQ;CACf,CAAA"}
@@ -1,11 +0,0 @@
1
- export interface SoftwareConfig {
2
- executable: string;
3
- possiblePaths: string[];
4
- userPaths?: string[];
5
- registryKey?: string;
6
- envVar: string;
7
- }
8
- export type Platform = 'win32' | 'darwin' | 'linux';
9
- export interface ProcessLike {
10
- platform: string;
11
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/functions/software/types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare function camelCase(str: string): string;
@@ -1,8 +0,0 @@
1
- export function camelCase(str) {
2
- if (!str)
3
- return str;
4
- return str
5
- .replace(/[-_\s.]+(.)?/g, (_, char) => char ? char.toUpperCase() : '')
6
- .replace(/^[A-Z]/, (char) => char.toLowerCase());
7
- }
8
- //# sourceMappingURL=camelCase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"camelCase.js","sourceRoot":"","sources":["../../../src/functions/string/camelCase.ts"],"names":[],"mappings":"AAoBA,MAAM,UAAU,SAAS,CAAC,GAAW;IACnC,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAA;IAEpB,OAAO,GAAG;SACP,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACrE,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAA;AACpD,CAAC"}
@@ -1 +0,0 @@
1
- export declare function escape(str: string): string;
@@ -1,13 +0,0 @@
1
- export function escape(str) {
2
- if (!str)
3
- return str;
4
- const htmlEscapes = {
5
- '&': '&amp;',
6
- '<': '&lt;',
7
- '>': '&gt;',
8
- '"': '&quot;',
9
- "'": '&#39;'
10
- };
11
- return str.replace(/[&<>"']/g, (match) => htmlEscapes[match]);
12
- }
13
- //# sourceMappingURL=escape.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"escape.js","sourceRoot":"","sources":["../../../src/functions/string/escape.ts"],"names":[],"mappings":"AAqBA,MAAM,UAAU,MAAM,CAAC,GAAW;IAChC,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAA;IAEpB,MAAM,WAAW,GAA2B;QAC1C,GAAG,EAAE,OAAO;QACZ,GAAG,EAAE,MAAM;QACX,GAAG,EAAE,MAAM;QACX,GAAG,EAAE,QAAQ;QACb,GAAG,EAAE,OAAO;KACb,CAAA;IAED,OAAO,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAA;AAC/D,CAAC"}
@@ -1 +0,0 @@
1
- export declare function kebabCase(str: string): string;
@@ -1,10 +0,0 @@
1
- export function kebabCase(str) {
2
- if (!str)
3
- return str;
4
- return str
5
- .replace(/([a-z])([A-Z])/g, '$1-$2')
6
- .replace(/[-_\s.]+/g, '-')
7
- .toLowerCase()
8
- .replace(/^-+|-+$/g, '');
9
- }
10
- //# sourceMappingURL=kebabCase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kebabCase.js","sourceRoot":"","sources":["../../../src/functions/string/kebabCase.ts"],"names":[],"mappings":"AAoBA,MAAM,UAAU,SAAS,CAAC,GAAW;IACnC,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAA;IAEpB,OAAO,GAAG;SACP,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC;SACnC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC;SACzB,WAAW,EAAE;SACb,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAA;AAC5B,CAAC"}
@@ -1 +0,0 @@
1
- export declare function mask(str: string, type?: 'phone' | 'email' | 'card' | 'idcard' | 'name' | 'auto', maskChar?: string): string;
@@ -1,40 +0,0 @@
1
- export function mask(str, type = 'auto', maskChar = '*') {
2
- if (!str || typeof str !== 'string')
3
- return str;
4
- switch (type) {
5
- case 'phone':
6
- return str.replace(/^(\d{3})\d{4}(\d{4})$/, `$1${maskChar.repeat(4)}$2`);
7
- case 'email':
8
- return str.replace(/^(\w)\w*(@.+)$/, `$1${maskChar.repeat(3)}$2`);
9
- case 'card':
10
- return str.replace(/^(\d{4})\d+(\d{4})$/, `$1${maskChar.repeat(4)}$2`);
11
- case 'idcard':
12
- return str.replace(/^(\d{6})\d+(\d{4})$/, `$1${maskChar.repeat(4)}$2`);
13
- case 'name':
14
- return str.replace(/^(\w)\w*$/, `$1${maskChar}`);
15
- case 'auto':
16
- default:
17
- if (str.length === 11 && /^1\d{10}$/.test(str)) {
18
- return mask(str, 'phone', maskChar);
19
- }
20
- else if (str.includes('@')) {
21
- return mask(str, 'email', maskChar);
22
- }
23
- else if (str.length >= 16 && /^\d+$/.test(str)) {
24
- return mask(str, 'card', maskChar);
25
- }
26
- else if (str.length === 18 && /^\d{17}[\dXx]$/.test(str)) {
27
- return mask(str, 'idcard', maskChar);
28
- }
29
- else if (str.length <= 4 && /^[\u4e00-\u9fa5a-zA-Z]+$/.test(str)) {
30
- return mask(str, 'name', maskChar);
31
- }
32
- else {
33
- const len = str.length;
34
- if (len <= 2)
35
- return str;
36
- return str.charAt(0) + maskChar.repeat(len - 2) + str.charAt(len - 1);
37
- }
38
- }
39
- }
40
- //# sourceMappingURL=mask.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mask.js","sourceRoot":"","sources":["../../../src/functions/string/mask.ts"],"names":[],"mappings":"AAqBA,MAAM,UAAU,IAAI,CAClB,GAAW,EACX,OAAgE,MAAM,EACtE,WAAmB,GAAG;IAEtB,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,GAAG,CAAA;IAE/C,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,OAAO;YAEV,OAAO,GAAG,CAAC,OAAO,CAAC,uBAAuB,EAAE,KAAK,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;QAE1E,KAAK,OAAO;YAEV,OAAO,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAK,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;QAEnE,KAAK,MAAM;YAET,OAAO,GAAG,CAAC,OAAO,CAA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GAAG,GAAG,CAAC,MAAM,CAAA;gBACtB,IAAI,GAAG,IAAI,CAAC;oBAAE,OAAO,GAAG,CAAA;gBACxB,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAA;YACvE,CAAC;IACL,CAAC;AACH,CAAC"}
@@ -1 +0,0 @@
1
- export declare function padEnd(str: string, targetLength: number, padString?: string): string;
@@ -1,8 +0,0 @@
1
- export function padEnd(str, targetLength, padString = ' ') {
2
- if (str.length >= targetLength)
3
- return str;
4
- const padLength = targetLength - str.length;
5
- const pad = padString.repeat(Math.ceil(padLength / padString.length)).slice(0, padLength);
6
- return str + pad;
7
- }
8
- //# sourceMappingURL=padEnd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"padEnd.js","sourceRoot":"","sources":["../../../src/functions/string/padEnd.ts"],"names":[],"mappings":"AAmBA,MAAM,UAAU,MAAM,CAAC,GAAW,EAAE,YAAoB,EAAE,YAAoB,GAAG;IAC/E,IAAI,GAAG,CAAC,MAAM,IAAI,YAAY;QAAE,OAAO,GAAG,CAAA;IAE1C,MAAM,SAAS,GAAG,YAAY,GAAG,GAAG,CAAC,MAAM,CAAA;IAC3C,MAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;IAEzF,OAAO,GAAG,GAAG,GAAG,CAAA;AAClB,CAAC"}
@@ -1 +0,0 @@
1
- export declare function padStart(str: string, targetLength: number, padString?: string): string;
@@ -1,8 +0,0 @@
1
- export function padStart(str, targetLength, padString = ' ') {
2
- if (str.length >= targetLength)
3
- return str;
4
- const padLength = targetLength - str.length;
5
- const pad = padString.repeat(Math.ceil(padLength / padString.length)).slice(0, padLength);
6
- return pad + str;
7
- }
8
- //# sourceMappingURL=padStart.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"padStart.js","sourceRoot":"","sources":["../../../src/functions/string/padStart.ts"],"names":[],"mappings":"AAmBA,MAAM,UAAU,QAAQ,CAAC,GAAW,EAAE,YAAoB,EAAE,YAAoB,GAAG;IACjF,IAAI,GAAG,CAAC,MAAM,IAAI,YAAY;QAAE,OAAO,GAAG,CAAA;IAE1C,MAAM,SAAS,GAAG,YAAY,GAAG,GAAG,CAAC,MAAM,CAAA;IAC3C,MAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;IAEzF,OAAO,GAAG,GAAG,GAAG,CAAA;AAClB,CAAC"}
@@ -1 +0,0 @@
1
- export declare function pascalCase(str: string): string;
@@ -1,8 +0,0 @@
1
- export function pascalCase(str) {
2
- if (!str)
3
- return str;
4
- const camelCaseStr = str
5
- .replace(/[-_\s.]+(.)?/g, (_, char) => char ? char.toUpperCase() : '');
6
- return camelCaseStr.charAt(0).toUpperCase() + camelCaseStr.slice(1);
7
- }
8
- //# sourceMappingURL=pascalCase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pascalCase.js","sourceRoot":"","sources":["../../../src/functions/string/pascalCase.ts"],"names":[],"mappings":"AAoBA,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAA;IAEpB,MAAM,YAAY,GAAG,GAAG;SACrB,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAExE,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AACrE,CAAC"}
@@ -1 +0,0 @@
1
- export declare function snakeCase(str: string): string;
@@ -1,10 +0,0 @@
1
- export function snakeCase(str) {
2
- if (!str)
3
- return str;
4
- return str
5
- .replace(/([a-z])([A-Z])/g, '$1_$2')
6
- .replace(/[-_\s.]+/g, '_')
7
- .toLowerCase()
8
- .replace(/^_+|_+$/g, '');
9
- }
10
- //# sourceMappingURL=snakeCase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snakeCase.js","sourceRoot":"","sources":["../../../src/functions/string/snakeCase.ts"],"names":[],"mappings":"AAoBA,MAAM,UAAU,SAAS,CAAC,GAAW;IACnC,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAA;IAEpB,OAAO,GAAG;SACP,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC;SACnC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC;SACzB,WAAW,EAAE;SACb,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAA;AAC5B,CAAC"}
@@ -1 +0,0 @@
1
- export declare function unescape(str: string): string;
@@ -1,13 +0,0 @@
1
- export function unescape(str) {
2
- if (!str)
3
- return str;
4
- const htmlUnescapes = {
5
- '&amp;': '&',
6
- '&lt;': '<',
7
- '&gt;': '>',
8
- '&quot;': '"',
9
- '&#39;': "'"
10
- };
11
- return str.replace(/&(?:amp|lt|gt|quot|#39);/g, (match) => htmlUnescapes[match]);
12
- }
13
- //# sourceMappingURL=unescape.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unescape.js","sourceRoot":"","sources":["../../../src/functions/string/unescape.ts"],"names":[],"mappings":"AAqBA,MAAM,UAAU,QAAQ,CAAC,GAAW;IAClC,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAA;IAEpB,MAAM,aAAa,GAA2B;QAC5C,OAAO,EAAE,GAAG;QACZ,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,GAAG;QACb,OAAO,EAAE,GAAG;KACb,CAAA;IAED,OAAO,GAAG,CAAC,OAAO,CAAC,2BAA2B,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAA;AAClF,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { NodeFileSystem } from '../../../../references/node.d';
2
- import type { SystemDependencies } from '../../../../types/android-build.d';
3
- import type { AndroidProjectPaths } from './androidProjectStrategy';
4
- export interface ConfigStepResult {
5
- success: boolean;
6
- message?: string;
7
- data?: any;
8
- }
9
- export declare function copyAppResources(appid: string, distPath: string, paths: AndroidProjectPaths, fs: NodeFileSystem): Promise<ConfigStepResult>;
10
- export declare function configureDcloudControl(appid: string, appkey: string, paths: AndroidProjectPaths, fs: NodeFileSystem, deps: SystemDependencies): Promise<ConfigStepResult>;
11
- export declare function configureStrings(appname: string, paths: AndroidProjectPaths, fs: NodeFileSystem, deps: SystemDependencies): Promise<ConfigStepResult>;
12
- export declare function configureAndroidManifest(channel: string, appkey: string, paths: AndroidProjectPaths, fs: NodeFileSystem, deps: SystemDependencies): Promise<ConfigStepResult>;
13
- export declare function configureBuildGradle(appid: string, versionName: string, versionCode: number, paths: AndroidProjectPaths, fs: NodeFileSystem): Promise<ConfigStepResult>;
@@ -1,175 +0,0 @@
1
- export async function copyAppResources(appid, distPath, paths, fs) {
2
- try {
3
- const sourcePath = `${distPath}/build/app`;
4
- const targetPath = paths.getResourceTargetPath(appid);
5
- if (!fs.existsSync(sourcePath)) {
6
- return {
7
- success: false,
8
- message: `应用资源目录不存在: ${sourcePath}`
9
- };
10
- }
11
- fs.mkdirSync(targetPath, { recursive: true });
12
- await fs.promises.cp(sourcePath, targetPath, { recursive: true });
13
- return {
14
- success: true,
15
- message: `应用资源已复制到: ${targetPath}`
16
- };
17
- }
18
- catch (error) {
19
- return {
20
- success: false,
21
- message: `复制应用资源失败: ${error}`
22
- };
23
- }
24
- }
25
- export async function configureDcloudControl(appid, appkey, paths, fs, deps) {
26
- try {
27
- const controlXmlPath = paths.controlXmlPath;
28
- if (!fs.existsSync(controlXmlPath)) {
29
- return {
30
- success: false,
31
- message: `dcloud_control.xml 文件不存在: ${controlXmlPath}`
32
- };
33
- }
34
- const controlXmlContent = fs.readFileSync(controlXmlPath, 'utf8');
35
- const controlXmlDoc = deps.xmlParser.parseFromString(controlXmlContent, 'text/xml');
36
- const appElements = controlXmlDoc.getElementsByTagName('app');
37
- if (appElements.length > 0) {
38
- const appElement = appElements[0];
39
- appElement.setAttribute('appid', appid);
40
- if (appkey) {
41
- appElement.setAttribute('appkey', appkey);
42
- }
43
- }
44
- const updatedControlXml = deps.xmlSerializer.serializeToString(controlXmlDoc);
45
- fs.writeFileSync(controlXmlPath, updatedControlXml);
46
- return {
47
- success: true,
48
- message: `dcloud_control.xml 配置完成: appid=${appid}`
49
- };
50
- }
51
- catch (error) {
52
- return {
53
- success: false,
54
- message: `配置 dcloud_control.xml 失败: ${error}`
55
- };
56
- }
57
- }
58
- export async function configureStrings(appname, paths, fs, deps) {
59
- try {
60
- const stringsXmlPath = paths.stringsXmlPath;
61
- if (!fs.existsSync(stringsXmlPath)) {
62
- return {
63
- success: false,
64
- message: `strings.xml 文件不存在: ${stringsXmlPath}`
65
- };
66
- }
67
- const stringsXmlContent = fs.readFileSync(stringsXmlPath, 'utf8');
68
- const stringsXmlDoc = deps.xmlParser.parseFromString(stringsXmlContent, 'text/xml');
69
- const stringElements = stringsXmlDoc.getElementsByTagName('string');
70
- let appNameFound = false;
71
- for (let i = 0; i < stringElements.length; i++) {
72
- const stringElement = stringElements[i];
73
- if (stringElement.getAttribute('name') === 'app_name') {
74
- stringElement.textContent = appname;
75
- appNameFound = true;
76
- break;
77
- }
78
- }
79
- if (!appNameFound) {
80
- return {
81
- success: false,
82
- message: 'strings.xml 中未找到 app_name 元素'
83
- };
84
- }
85
- const updatedStringsXml = deps.xmlSerializer.serializeToString(stringsXmlDoc);
86
- fs.writeFileSync(stringsXmlPath, updatedStringsXml);
87
- return {
88
- success: true,
89
- message: `strings.xml 配置完成: app_name=${appname}`
90
- };
91
- }
92
- catch (error) {
93
- return {
94
- success: false,
95
- message: `配置 strings.xml 失败: ${error}`
96
- };
97
- }
98
- }
99
- export async function configureAndroidManifest(channel, appkey, paths, fs, deps) {
100
- try {
101
- const manifestXmlPath = paths.manifestXmlPath;
102
- if (!fs.existsSync(manifestXmlPath)) {
103
- return {
104
- success: false,
105
- message: `AndroidManifest.xml 文件不存在: ${manifestXmlPath}`
106
- };
107
- }
108
- const manifestXmlContent = fs.readFileSync(manifestXmlPath, 'utf8');
109
- const manifestXmlDoc = deps.xmlParser.parseFromString(manifestXmlContent, 'text/xml');
110
- const applicationElements = manifestXmlDoc.getElementsByTagName('application');
111
- if (applicationElements.length > 0) {
112
- const applicationElement = applicationElements[0];
113
- let channelMetaDataFound = false;
114
- const metaDataElements = applicationElement.getElementsByTagName('meta-data');
115
- for (let i = 0; i < metaDataElements.length; i++) {
116
- const metaDataElement = metaDataElements[i];
117
- if (metaDataElement.getAttribute('android:name') === 'DCLOUD_STREAMAPP_CHANNEL') {
118
- metaDataElement.setAttribute('android:value', channel);
119
- channelMetaDataFound = true;
120
- break;
121
- }
122
- }
123
- if (appkey) {
124
- let appkeyMetaDataFound = false;
125
- for (let i = 0; i < metaDataElements.length; i++) {
126
- const metaDataElement = metaDataElements[i];
127
- if (metaDataElement.getAttribute('android:name') === 'dcloud_appkey') {
128
- metaDataElement.setAttribute('android:value', appkey);
129
- appkeyMetaDataFound = true;
130
- break;
131
- }
132
- }
133
- }
134
- }
135
- const updatedManifestXml = deps.xmlSerializer.serializeToString(manifestXmlDoc);
136
- fs.writeFileSync(manifestXmlPath, updatedManifestXml);
137
- return {
138
- success: true,
139
- message: `AndroidManifest.xml 配置完成: channel=${channel}, appkey=${appkey}`
140
- };
141
- }
142
- catch (error) {
143
- return {
144
- success: false,
145
- message: `配置 AndroidManifest.xml 失败: ${error}`
146
- };
147
- }
148
- }
149
- export async function configureBuildGradle(appid, versionName, versionCode, paths, fs) {
150
- try {
151
- const buildGradlePath = paths.buildGradlePath;
152
- if (!fs.existsSync(buildGradlePath)) {
153
- return {
154
- success: false,
155
- message: `build.gradle 文件不存在: ${buildGradlePath}`
156
- };
157
- }
158
- let buildGradleContent = fs.readFileSync(buildGradlePath, 'utf8');
159
- buildGradleContent = buildGradleContent.replace(/applicationId\s+["'][^"']*["']/, `applicationId "${appid}"`);
160
- buildGradleContent = buildGradleContent.replace(/versionName\s+["'][^"']*["']/, `versionName "${versionName}"`);
161
- buildGradleContent = buildGradleContent.replace(/versionCode\s+\d+/, `versionCode ${versionCode}`);
162
- fs.writeFileSync(buildGradlePath, buildGradleContent);
163
- return {
164
- success: true,
165
- message: `build.gradle 配置完成: applicationId=${appid}, versionName=${versionName}, versionCode=${versionCode}`
166
- };
167
- }
168
- catch (error) {
169
- return {
170
- success: false,
171
- message: `配置 build.gradle 失败: ${error}`
172
- };
173
- }
174
- }
175
- //# sourceMappingURL=androidProjectConfigSteps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"androidProjectConfigSteps.js","sourceRoot":"","sources":["../../../../src/functions/uniapp/app-plus/androidProjectConfigSteps.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAAa,EACb,QAAgB,EAChB,KAA0B,EAC1B,EAAkB;IAElB,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,GAAG,QAAQ,YAAY,CAAA;QAC1C,MAAM,UAAU,GAAG,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAA;QAErD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YAC/B,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,cAAc,UAAU,EAAE;aACpC,CAAA;QACH,CAAC;QAGD,EAAE,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE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/node.d';
2
- export interface AndroidProjectPaths {
3
- moduleDir: string;
4
- controlXmlPath: string;
5
- stringsXmlPath: string;
6
- manifestXmlPath: string;
7
- buildGradlePath: string;
8
- getResourceTargetPath: (appid: string) => string;
9
- }
10
- export declare enum AndroidProjectType {
11
- HBUILDER_STANDARD = "hbuilder-standard",
12
- ANDROID_STUDIO_INTEGRATION = "android-studio-integration"
13
- }
14
- export declare function isAndroidStudioIntegration(projectPath: string, fs: FileSystem): boolean;
15
- export declare function isHBuilderStandard(projectPath: string, fs: FileSystem): boolean;
16
- export declare function detectAndroidProjectType(projectPath: string, fs: FileSystem): AndroidProjectType;
17
- export declare function getAndroidStudioIntegrationPaths(projectPath: string, path: Path): AndroidProjectPaths;
18
- export declare function getHBuilderStandardPaths(projectPath: string, path: Path): AndroidProjectPaths;
19
- export declare function getAndroidProjectPaths(projectPath: string, fs: FileSystem, path: Path): AndroidProjectPaths;