@capacitor/cli
Advanced tools
Comparing version 0.0.112 to 0.0.113
@@ -16,3 +16,2 @@ "use strict"; | ||
}); | ||
console.log('Android found these plugins: ', plugins); | ||
const capacitorPlugins = plugins.filter(p => plugin_1.getPluginType(p, platform) === 0 /* Code */); | ||
@@ -19,0 +18,0 @@ const cordovaPlugins = plugins.filter(p => plugin_1.getPluginType(p, platform) === 2 /* Cordova */); |
@@ -24,2 +24,3 @@ "use strict"; | ||
resDir: 'app/src/main/res', | ||
resDirAbs: '', | ||
assets: { | ||
@@ -126,12 +127,12 @@ templateName: 'android-template', | ||
this.platforms.push(this.android.name); | ||
this.android.platformDir = path_1.join(this.app.rootDir, this.android.name); | ||
this.android.assets.templateDir = path_1.join(this.cli.assetsDir, this.android.assets.templateName); | ||
this.android.webDirAbs = path_1.join(this.android.platformDir, this.android.webDir); | ||
this.android.resDir = path_1.join(this.android.platformDir, this.android.resDir); | ||
this.android.platformDir = path_1.resolve(this.app.rootDir, this.android.name); | ||
this.android.assets.templateDir = path_1.resolve(this.cli.assetsDir, this.android.assets.templateName); | ||
this.android.webDirAbs = path_1.resolve(this.android.platformDir, this.android.webDir); | ||
this.android.resDirAbs = path_1.resolve(this.android.platformDir, this.android.resDir); | ||
} | ||
initIosConfig() { | ||
this.platforms.push(this.ios.name); | ||
this.ios.platformDir = path_1.join(this.app.rootDir, this.ios.name); | ||
this.ios.assets.templateDir = path_1.join(this.cli.assetsDir, this.ios.assets.templateName); | ||
this.ios.webDirAbs = path_1.join(this.ios.platformDir, this.ios.nativeProjectName, this.ios.webDir); | ||
this.ios.platformDir = path_1.resolve(this.app.rootDir, this.ios.name); | ||
this.ios.assets.templateDir = path_1.resolve(this.cli.assetsDir, this.ios.assets.templateName); | ||
this.ios.webDirAbs = path_1.resolve(this.ios.platformDir, this.ios.nativeProjectName, this.ios.webDir); | ||
} | ||
@@ -138,0 +139,0 @@ initWindowsConfig() { |
@@ -110,3 +110,3 @@ "use strict"; | ||
async function autoGenerateConfig(config, cordovaPlugins, platform) { | ||
let xmlDir = path_1.join(config.android.resDir, 'xml'); | ||
let xmlDir = path_1.join(config.android.resDirAbs, 'xml'); | ||
let target = 'res/xml/config.xml'; | ||
@@ -113,0 +113,0 @@ if (platform === 'ios') { |
@@ -49,4 +49,7 @@ "use strict"; | ||
catch (e) { | ||
common_3.log('Usage: npx @capacitor/cli create appDir appName appId'); | ||
common_3.log('Example: npx @capacitor/cli create my-app "My App" "com.example.myapp"'); | ||
// String errors are our check errors (most likely) | ||
if (typeof e === 'string') { | ||
common_3.log('Usage: npx @capacitor/cli create appDir appName appId'); | ||
common_3.log('Example: npx @capacitor/cli create my-app "My App" "com.example.myapp"'); | ||
} | ||
common_3.logFatal(e); | ||
@@ -53,0 +56,0 @@ } |
{ | ||
"name": "@capacitor/cli", | ||
"version": "0.0.112", | ||
"version": "0.0.113", | ||
"description": "Capacitor: Cross-platform apps with JavaScript and the web", | ||
@@ -5,0 +5,0 @@ "homepage": "https://capacitor.ionicframework.com/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
1529508
346
3049