@capacitor-plus/cli 8.3.3 → 8.3.4
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/assets/android-template.tar.gz +0 -0
- package/assets/capacitor-cordova-android-plugins.tar.gz +0 -0
- package/assets/capacitor-cordova-ios-plugins.tar.gz +0 -0
- package/assets/ios-pods-template.tar.gz +0 -0
- package/assets/ios-spm-template.tar.gz +0 -0
- package/dist/ios/update.js +29 -2
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/ios/update.js
CHANGED
|
@@ -112,6 +112,32 @@ function buildResourcesText(resources) {
|
|
|
112
112
|
]`
|
|
113
113
|
: '';
|
|
114
114
|
}
|
|
115
|
+
async function buildDependencyTexts(p, config) {
|
|
116
|
+
let allDependencies = (0, plugin_1.getPlatformElement)(p, platform, 'dependency');
|
|
117
|
+
if (p.xml['dependency']) {
|
|
118
|
+
allDependencies = allDependencies.concat(p.xml['dependency']);
|
|
119
|
+
}
|
|
120
|
+
let packageText = '';
|
|
121
|
+
let productText = '';
|
|
122
|
+
await Promise.all(allDependencies.map(async (dep) => {
|
|
123
|
+
let plugin = dep.$.id;
|
|
124
|
+
if (plugin.includes('@') && plugin.indexOf('@') !== 0) {
|
|
125
|
+
[plugin] = plugin.split('@');
|
|
126
|
+
}
|
|
127
|
+
const depPlugin = await (0, plugin_1.resolvePlugin)(config, plugin);
|
|
128
|
+
if (depPlugin) {
|
|
129
|
+
const headerFiles = (0, plugin_1.getPlatformElement)(depPlugin, platform, 'header-file');
|
|
130
|
+
const resources = (0, plugin_1.getPlatformElement)(depPlugin, platform, 'resource-file');
|
|
131
|
+
const sourceFiles = (0, plugin_1.getPlatformElement)(depPlugin, platform, 'source-file');
|
|
132
|
+
if (sourceFiles.length === 0 && headerFiles.length === 0 && resources.length === 0) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
packageText += `,\n .package(name: "${depPlugin.name}", path: "../${depPlugin.name}")`;
|
|
136
|
+
productText += `,\n .product(name: "${depPlugin.name}", package: "${depPlugin.name}")`;
|
|
137
|
+
}
|
|
138
|
+
}));
|
|
139
|
+
return { packageText, productText };
|
|
140
|
+
}
|
|
115
141
|
function buildCSettingsText(p, sourceFiles) {
|
|
116
142
|
var _a;
|
|
117
143
|
const pluginId = p.id;
|
|
@@ -186,6 +212,7 @@ async function writeGeneratedPackageSwift(p, config, iosPlatformVersion) {
|
|
|
186
212
|
${requiredSystemFrameworks.map((f) => ` .linkedFramework("${f.$.src.replace('.framework', '')}")`).join(',\n')}
|
|
187
213
|
]`
|
|
188
214
|
: '';
|
|
215
|
+
const { packageText, productText } = await buildDependencyTexts(p, config);
|
|
189
216
|
const content = `// swift-tools-version: 5.9
|
|
190
217
|
|
|
191
218
|
import PackageDescription
|
|
@@ -200,13 +227,13 @@ let package = Package(
|
|
|
200
227
|
)
|
|
201
228
|
],
|
|
202
229
|
dependencies: [
|
|
203
|
-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "${iosPlatformVersion}")
|
|
230
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "${iosPlatformVersion}")${packageText}
|
|
204
231
|
],
|
|
205
232
|
targets: [
|
|
206
233
|
.target(
|
|
207
234
|
name: "${p.name}",
|
|
208
235
|
dependencies: [
|
|
209
|
-
.product(name: "Cordova", package: "capacitor-swift-pm")${binaryDepsText}
|
|
236
|
+
.product(name: "Cordova", package: "capacitor-swift-pm")${binaryDepsText}${productText}
|
|
210
237
|
],
|
|
211
238
|
path: "."${resourcesText}${headersText}${cSettingsText}${linkerSettingsText}
|
|
212
239
|
)${binaryTargetsText}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor-plus/cli",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.4",
|
|
4
4
|
"description": "Capacitor+: Enhanced Capacitor with automated upstream sync - Cross-platform apps with JavaScript and the web",
|
|
5
5
|
"homepage": "https://capgo.app/docs/plugins/capacitor-plus/",
|
|
6
6
|
"author": "Capgo Team <support@capgo.app> (https://capgo.app)",
|