cordova-cli

What is the purpose of fetch.json file inside cordova plugins folder?

拥有回忆 提交于 2019-11-30 11:22:33
File fetch.json created inside plugins folder after cordova plugin add executed first time. This file also modified each time I add/remove plugins. What purpose of this file exactly? What tools use this file, when and why? Is there a way to restore plugins using fetch.json (try not to place plugins into repositiory)? Where can I find some docs about content of this file? Content of fetch.json: { "com.phonegap.plugins.PushPlugin": { "source": { "type": "git", "url": "https://github.com/phonegap-build/PushPlugin.git", "subdir": "." }, "is_top_level": true, "variables": {} }, "cordova-plugin-file

Phonegap run from CLI with --release and self-signed app requires me to patch cordova.js

走远了吗. 提交于 2019-11-30 11:07:43
问题 I suppose I'm doing something wrong but I had to patch https://github.com/phonegap/phonegap/blob/master/lib/android/bin/templates/cordova/lib/cordova.js#L313 this way (add "unaligned" token matching): if (fso.GetExtensionName(path) == 'apk' && !path.match(/unaligned/) && !path.match(/unsigned/)) { path_to_apk = out_files.item(); break; } otherwise the "unsigned" apk is first found and installed, and it will fail not being signed. I'm using the CLI to build and run my apk. In debug mode it's

Phonegap run from CLI with --release and self-signed app requires me to patch cordova.js

╄→尐↘猪︶ㄣ 提交于 2019-11-29 23:17:23
I suppose I'm doing something wrong but I had to patch https://github.com/phonegap/phonegap/blob/master/lib/android/bin/templates/cordova/lib/cordova.js#L313 this way (add "unaligned" token matching): if (fso.GetExtensionName(path) == 'apk' && !path.match(/unaligned/) && !path.match(/unsigned/)) { path_to_apk = out_files.item(); break; } otherwise the "unsigned" apk is first found and installed, and it will fail not being signed. I'm using the CLI to build and run my apk. In debug mode it's ok, obviously, because the signing takes a different path. Giovanni aharris88 I'm not sure what you did

Cordova CLI: an error occurred during creation of ios sub-project

旧街凉风 提交于 2019-11-28 04:01:37
问题 I've tested the Cordova 3.0.0 CLI Tool. The command $ sudo cordova platform add android was done OK. But i've got error during the command $ sudo cordova platform add ios Error [Error: An error occured during creation of ios sub-project. /bin/sh: /Users/user/.cordova/lib/ios/cordova/3.0.0/bin/create: No such file or directory ] When I decided to install a previous version $ sudo npm install -g cordova@2.9.0 Yes, - $ cordova platform add ios command done his job. I got ios sub-project I've

Build android release apk on Phonegap 3.x CLI

不问归期 提交于 2019-11-27 03:57:57
问题 How can I build an android app locally using the Phonegap 3.x CLI, ready to release? I check the bin folder generated inside the platforms/android directory of the project, and only has .debug APKs. By the way, I use this command: phonegap local build android 回答1: This is for Phonegap 3.0.x to 3.3.x. For PhoneGap 3.4.0 and higher see below. Found part of the answer here, at Phonegap documentation. The full process is the following: Open a command line window, and go to /path/to/your/project/

Build android release apk on Phonegap 3.x CLI

喜你入骨 提交于 2019-11-27 02:23:09
How can I build an android app locally using the Phonegap 3.x CLI, ready to release? I check the bin folder generated inside the platforms/android directory of the project, and only has .debug APKs. By the way, I use this command: phonegap local build android Guillermo Gutiérrez This is for Phonegap 3.0.x to 3.3.x. For PhoneGap 3.4.0 and higher see below . Found part of the answer here , at Phonegap documentation. The full process is the following: Open a command line window, and go to /path/to/your/project/ platforms/android/cordova . Run build --release . This creates an unsigned release APK

Is there a difference between PhoneGap and Cordova commands?

别说谁变了你拦得住时间么 提交于 2019-11-26 21:14:59
I just installed Phonegap for the first time and just browsed through the docs. What confuses me is the fact that some docs are using the command "phonegap" and some "cordova". Android platform guide: $ cordova create hello com.example.hello "HelloWorld" Command Line Interface guide tells: $ phonegap create hello com.example.hello HelloWorld Is there a difference between those two commands (resulting in different files and folder structures) or are they just aliases for the same thing? http://phonegap.com/blog/2012/03/19/phonegap-cordova-and-whate28099s-in-a-name/ I think this url explains

Cordova : Requirements check failed for JDK 1.8 or greater

穿精又带淫゛_ 提交于 2019-11-26 19:48:28
I am using Cordova 6.4.0 in Windows 7 OS, but I get this error once I tried to build the android version : The Java Home variable is setted correctly to the JDK path, but I don't know why I am getting this issue. Any suggestions please ? I think I found the solution of the problem. I will post the answer just in case there is someone facing the same issue. Uninstall all previous JDK including 1.8 Install JDK 1.8 What worked for was uninstalling jdk 9 and reinstalling jkd 8.x On Mac in order to uninstall go to the terminal and follow this steps: cd /Library/Java/JavaVirtualMachines sudo rm -rf

Cordova : Requirements check failed for JDK 1.8 or greater

馋奶兔 提交于 2019-11-26 09:22:05
问题 I am using Cordova 6.4.0 in Windows 7 OS, but I get this error once I tried to build the android version : The Java Home variable is setted correctly to the JDK path, but I don\'t know why I am getting this issue. Any suggestions please ? 回答1: I think I found the solution of the problem. I will post the answer just in case there is someone facing the same issue. Uninstall all previous JDK including 1.8 Install JDK 1.8 回答2: You don't have to uninstall any higher version of sdk. just install

Is there a difference between PhoneGap and Cordova commands?

纵然是瞬间 提交于 2019-11-26 07:52:45
问题 I just installed Phonegap for the first time and just browsed through the docs. What confuses me is the fact that some docs are using the command \"phonegap\" and some \"cordova\". Android platform guide: $ cordova create hello com.example.hello \"HelloWorld\" Command Line Interface guide tells: $ phonegap create hello com.example.hello HelloWorld Is there a difference between those two commands (resulting in different files and folder structures) or are they just aliases for the same thing?