@capacitor/cli
Advanced tools
Comparing version 0.0.89 to 0.0.90
@@ -43,3 +43,3 @@ "use strict"; | ||
} | ||
await autoGeneratePods(plugins); | ||
await autoGeneratePods(config, plugins); | ||
await autoGenerateResourcesPods(cordovaPlugins); | ||
@@ -49,3 +49,3 @@ await installCocoaPodsPlugins(config, plugins, needsUpdate); | ||
exports.updateIOS = updateIOS; | ||
async function autoGeneratePods(plugins) { | ||
async function autoGeneratePods(config, plugins) { | ||
// Always re-generate the podspec to keep it up to date | ||
@@ -55,3 +55,3 @@ return Promise.all(plugins | ||
const name = p.ios.name = p.name; | ||
const content = generatePodspec(p); | ||
const content = generatePodspec(config, p); | ||
const path = path_1.join(p.rootPath, p.ios.path, name + '.podspec'); | ||
@@ -73,5 +73,5 @@ return fs_1.writeFileAsync(path, content); | ||
exports.autoGenerateResourcesPods = autoGenerateResourcesPods; | ||
function generatePodspec(plugin) { | ||
function generatePodspec(config, plugin) { | ||
const repo = (plugin.repository && plugin.repository.url) || 'https://github.com/ionic-team/does-not-exist.git'; | ||
let sourceFiles = 'Plugin/**/*.{swift,h,m}'; | ||
let sourceFiles = 'Plugin/Plugin/**/*.{swift,h,m}'; | ||
let frameworksString = ""; | ||
@@ -115,2 +115,3 @@ let dependency = 'Capacitor'; | ||
s.source_files = '${sourceFiles}' | ||
s.ios.deployment_target = '${config.ios.minVersion}' | ||
s.dependency '${dependency}' | ||
@@ -177,14 +178,14 @@ ${frameworksString} | ||
return ` | ||
# DO NOT MODIFY. | ||
# This Podfile was autogenerated by the Capacitor CLI. | ||
# It is used to resolve the native dependencies of Capacitor plugins. | ||
# DO NOT MODIFY. | ||
# This Podfile was autogenerated by the Capacitor CLI. | ||
# It is used to resolve the native dependencies of Capacitor plugins. | ||
platform :ios, '${config.ios.minVersion}' | ||
use_frameworks! | ||
platform :ios, '${config.ios.minVersion}' | ||
use_frameworks! | ||
target 'App' do | ||
${config.ios.capacitorRuntimePod} | ||
${pods.join('\n ')} | ||
${dependencies} | ||
end`; | ||
target 'App' do | ||
${config.ios.capacitorRuntimePod} | ||
${pods.join('\n ')} | ||
${dependencies} | ||
end`; | ||
} | ||
@@ -191,0 +192,0 @@ exports.generatePodFile = generatePodFile; |
{ | ||
"name": "@capacitor/cli", | ||
"version": "0.0.89", | ||
"version": "0.0.90", | ||
"description": "Capacitor: Cross-platform apps with JavaScript and the web", | ||
@@ -5,0 +5,0 @@ "homepage": "https://capacitor.ionicframework.com/", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1455840
2429