[jira] [Commented] (CB-3571) Add support for elements in config.xml
[ https://issues.apache.org/jira/browse/CB-3571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14060020#comment-14060020 ] ASF GitHub Bot commented on CB-3571: GitHub user AxelNennker opened a pull request: https://github.com/apache/cordova-docs/pull/219 Corrected the documentation for splash screens The documentation was for the Phonegap Build system and did not apply to Cordova. Updated the documentation to reflect the improvements introduced by CB-3571 You can merge this pull request into a Git repository by running: $ git pull https://github.com/AxelNennker/cordova-docs master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-docs/pull/219.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #219 commit 6f5a461c7d675178f1d411d617229dc175ab28a7 Author: AxelNennker Date: 2013-11-16T09:35:19Z Update plugin.md commit ce6ebd68eb5b5a8bf8530edc24b2a1da8722c12f Author: ignisvulpis Date: 2014-06-05T12:34:27Z Merge remote-tracking branch 'upstream/master' commit ccb7c1b72fcd64a3d90ae7c6525edfda46a6bc7f Author: ignisvulpis Date: 2014-06-05T12:44:01Z CB-2606: base directory of Date: 2014-06-09T22:42:51Z Add Vagrant support. commit 911e00527b7e1323f68dd2f4961ec9cdd3896b75 Author: Michael Brooks Date: 2014-06-09T22:43:10Z Fix rendering of Polish documentation. commit 9f2b117fd06da38e2660f0f77f34b16a00958d5d Author: Michael Brooks Date: 2014-06-09T23:06:56Z [lib] Improve version menu rendering performance. commit c316b346bfeefc7ff82449b58bdc35a9d6c234bd Author: Michael Brooks Date: 2014-06-09T23:35:35Z [lib] Remove debug put messages from version_menu.rb. commit 5653f0f17d376d54501b2e8fa14786e20cb87852 Author: Marcel Kinard Date: 2014-06-10T12:35:26Z Add a bit more explanation about vagrant. commit 24c814aa61ebd706f6233bd7629c9cdb1333915e Author: Michael Brooks Date: 2014-06-11T18:17:12Z Fix version menu selection of current langauge. commit dfd5cc1f0963bf018ed152623816fde79ab48464 Author: Jesse MacFadyen Date: 2014-06-11T20:47:49Z updated wp8 plugin authoring to not use wp7 terms or classpath commit 353c7b51327f81271e1a3d9776db1b8ec71911cc Author: Jesse MacFadyen Date: 2014-06-11T20:48:57Z link to new windows 8 plugin auth guide commit 4c2cb8c57421bd0e53d503373c2716f29259ed53 Author: Jesse MacFadyen Date: 2014-06-11T20:49:43Z Created Windows 8 plugin auth guide. commit dfca8511a51b27342ba1c1c7ea1204513208beb7 Author: Marcel Kinard Date: 2014-06-11T21:14:15Z CB-6926 Clarify some misconceptions - Cordova does not provide any UI widgets or MV* frameworks - plugins should have a unified JS interface - no plugins are present in a newly-created project - HTML5 app assets usually are local to the device instead of served remotely commit 0d426670931d88fa7a80197267f0ab8f3a0906be Author: Marcel Kinard Date: 2014-06-11T21:31:01Z CB-6926 Clarify locally stored HTML5 assets commit 5b944031e57942fef7fee9d89014c889d4d9fb15 Author: Marcel Kinard Date: 2014-06-12T01:36:25Z Clarify a heading commit df3864aace36f343b418bfdb5b579a69c8349f88 Author: mbillau Date: 2014-06-16T18:07:39Z CB-5294 fixed by Android 4.4.3 commit ea6e6a612371efe18b1628658cf82af464c8b4fd Author: Jesse MacFadyen Date: 2014-06-16T18:54:48Z update edge without windows phone 7 commit 2eb16134342cd564b65391cd6e8a272feff7c138 Author: Jesse MacFadyen Date: 2014-06-16T19:13:18Z update [en] 3.5.0 without windows phone 7 commit b43bf09b105aa6e4fa2a8e7781bcba2f0a451cf9 Author: Archana Naik Date: 2014-06-03T20:25:01Z [CB-6740][amazon-fireos]Clean up error reporting when AmazonWebView SDK not found Updated amazon-fireos platform guide with new location for AWV SDK. commit 243b974eef67710442fde9837e5cc94c0f9b20fc Author: Jesse MacFadyen Date: 2014-06-16T20:36:31Z Fix format issue with license headers commit b1c615ce208abe2ec83a57655c3919f2846a0122 Author: Michal Mocny Date: 2014-06-23T14:33:21Z CB-6772 Document AndroidLaunchMode preference commit ff02f38c7f3eed8e2126393270f08b9e69d95104 Author: Lisa Seacat DeLuca Date: 2014-05-30T14:54:01Z Added wiki details for crowdin best practices close #208 commit d221be5bea44f5d43ff527c5de2966b196b43794 Author: Michael Brooks Date: 2014-06-26T23:45:08Z [CB-5226] Fix BlackBerry 10 Configuration link. commit e6f1e94da74059e4b7fb93ff4d567e91ad701514 Author: Andrew Grieve Date: 2014-06-27T15:09:47Z Use markdown-style links instead of tags in README.md commit 4a90b7ddb678b02cb591efb44218493d38ee9192 Author: Martin Bektchiev Date: 2014-06-04T15:22:03Z CB-6344 CB-6698 `after` for ``, `` for Android close #210
[jira] [Commented] (CB-7118) iOS: add target-device and MinimumOSVersion support to config.xml
[ https://issues.apache.org/jira/browse/CB-7118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14059949#comment-14059949 ] ASF GitHub Bot commented on CB-7118: Github user sriranggd commented on a diff in the pull request: https://github.com/apache/cordova-lib/pull/57#discussion_r14855708 --- Diff: cordova-lib/src/cordova/metadata/ios_parser.js --- @@ -217,6 +220,38 @@ module.exports.prototype = { self.update_overrides(); util.deleteSvnFolders(self.www_dir()); }); +}, + +update_build_settings:function(config) { +var targetDevice = parseTargetDevicePreference(config.getPreference('target-device', 'ios')); +var deploymentTarget = config.getPreference('deployment-target', 'ios'); + +// no build settings provided, we don't need to parse and update .pbxproj file +if (!targetDevice && !deploymentTarget) { +return Q(); +} + +var me = this; +var d = Q.defer(); +var proj = new xcode.project(this.pbxproj); +proj.parse(function(err,hash) { +if (err) { +d.reject(new Error('An error occured during parsing of project.pbxproj. Start weeping. Output: ' + err)); +return; +} +var buildConfiguration = proj.pbxXCBuildConfigurationSection(); +if (targetDevice) { +// TODO: replace propReplace with proj.updateBuildProperty after below is release +// https://github.com/alunny/node-xcode/pull/33 --- End diff -- Looks like your changes to xcode module were accepted and also released as version `0.6.7`. I think it would be best to put in the new `updateBuildProperty` and get this merged, along with an update to the `xcode` version in the dependency list. > iOS: add target-device and MinimumOSVersion support to config.xml > - > > Key: CB-7118 > URL: https://issues.apache.org/jira/browse/CB-7118 > Project: Apache Cordova > Issue Type: New Feature > Components: CordovaLib, iOS >Reporter: Sergey Grebnov >Assignee: Sergey Grebnov >Priority: Minor > > Discussed via mailing list as "iOS: add target-device and MinimumOSVersion > support to config.xml" > Phonegap build already supports[2] preferences below and we could make this a > part of Cordova. I can implement this if we agree. Thoughts? > #1 target-device > For targeting a specific device; possible values are handset, tablet, or > universal (default). > Example: > > #2 deployment-target > This sets the IPHONEOS_DEPLOYMENT_TARGET in the build, which tranlsates to > the MinimumOSVersion in the ipa Propertly List. > Example: > > [2]http://docs.build.phonegap.com/en_US/configuring_preferences.md.html#_ios_only > -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (CB-7127) amazon-fireos: some js files are not merged the same way as on android platform
[ https://issues.apache.org/jira/browse/CB-7127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vladimir Avdonin updated CB-7127: - Attachment: git.diff Changes that fix the problem. > amazon-fireos: some js files are not merged the same way as on android > platform > --- > > Key: CB-7127 > URL: https://issues.apache.org/jira/browse/CB-7127 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 3.5.0 >Reporter: Vladimir Avdonin > Attachments: git.diff > > > When building for platform amazon-fireos placeholder file fileSystem.js is > not overridden by android specific version, which makes call to > resolveLocalFileSystemURL return entry with null filesystem. > The platform element of plugin.xml for amazon-fireos is different from > android, but probably should be the same. When I replaced section of this > element after comment with content from > android platform the function returns entry with correct filesystem on > amazon-fireos. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Created] (CB-7127) amazon-fireos: some js files are not merged the same way as on android platform
Vladimir Avdonin created CB-7127: Summary: amazon-fireos: some js files are not merged the same way as on android platform Key: CB-7127 URL: https://issues.apache.org/jira/browse/CB-7127 Project: Apache Cordova Issue Type: Bug Components: Plugin File Affects Versions: 3.5.0 Reporter: Vladimir Avdonin When building for platform amazon-fireos placeholder file fileSystem.js is not overridden by android specific version, which makes call to resolveLocalFileSystemURL return entry with null filesystem. The platform element of plugin.xml for amazon-fireos is different from android, but probably should be the same. When I replaced section of this element after comment with content from android platform the function returns entry with correct filesystem on amazon-fireos. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-7098) AppHarness project creation script fails on missing file
[ https://issues.apache.org/jira/browse/CB-7098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14059889#comment-14059889 ] ASF GitHub Bot commented on CB-7098: Github user disusered closed the pull request at: https://github.com/apache/cordova-app-harness/pull/2 > AppHarness project creation script fails on missing file > > > Key: CB-7098 > URL: https://issues.apache.org/jira/browse/CB-7098 > Project: Apache Cordova > Issue Type: Bug > Components: AppHarness > Environment: OSX 10.9.3 >Reporter: Carlos Antonio >Priority: Blocker > Labels: newbie > > {code:title=Output} > $ ./createproject.sh foobar > cordova-app-harness/git/master > Creating a new cordova project with name "CordovaAppHarness" and id > "org.apache.appharness" at location > "/Users/carlos/Development/Contributions/cordova-app-harness/foobar" > Using custom www assets from > /Users/carlos/Development/Contributions/cordova-app-harness/www > + cordova platform add android > Creating android project... > Creating Cordova project for the Android platform: > Path: platforms/android > Package: org.apache.appharness > Name: CordovaAppHarness > Android target: android-19 > Copying template files... > Running: android update project --subprojects --path "platforms/android" > --target android-19 --library "CordovaLib" > Resolved location of library project to: > /Users/carlos/Development/Contributions/cordova-app-harness/foobar/platforms/android/CordovaLib > Updated and renamed default.properties to project.properties > Updated local.properties > No project name specified, using Activity name 'CordovaAppHarness'. > If you wish to change it, edit the first line of build.xml. > Added file platforms/android/build.xml > Added file platforms/android/proguard-project.txt > Updated project.properties > Updated local.properties > No project name specified, using project folder name 'CordovaLib'. > If you wish to change it, edit the first line of build.xml. > Added file platforms/android/CordovaLib/build.xml > Added file platforms/android/CordovaLib/proguard-project.txt > Project successfully created. > + set +x > fs.js:427 > return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); > ^ > Error: ENOENT, no such file or directory > 'platforms/android/src/org/chromium/appdevtool/ChromeAppDeveloperTool.java' > at Object.fs.openSync (fs.js:427:18) > at Object.fs.readFileSync (fs.js:284:15) > at [stdin]:4:25 > at Object. ([stdin]-wrapper:6:22) > at Module._compile (module.js:456:26) > at evalScript (node.js:532:25) > at Socket. (node.js:154:11) > at Socket.EventEmitter.emit (events.js:117:20) > at _stream_readable.js:920:16 > at process._tickCallback (node.js:415:13) > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Created] (CB-7126) Cannot install Cordova
Aalex Gabi created CB-7126: -- Summary: Cannot install Cordova Key: CB-7126 URL: https://issues.apache.org/jira/browse/CB-7126 Project: Apache Cordova Issue Type: Bug Components: CLI Environment: Ubuntu 13.10 Reporter: Aalex Gabi Priority: Critical When I run sudo {{npm install -g cordova}} I get: {code} npm http GET https://registry.npmjs.org/cordova npm http 304 https://registry.npmjs.org/cordova npm http GET https://registry.npmjs.org/q npm http GET https://registry.npmjs.org/nopt npm http GET https://registry.npmjs.org/underscore/1.4.4 npm http GET https://registry.npmjs.org/cordova-lib/0.21.6 npm http 304 https://registry.npmjs.org/nopt npm http 304 https://registry.npmjs.org/q npm http 304 https://registry.npmjs.org/underscore/1.4.4 npm http 304 https://registry.npmjs.org/cordova-lib/0.21.6 npm http GET https://registry.npmjs.org/abbrev npm http GET https://registry.npmjs.org/dep-graph/1.1.0 npm http GET https://registry.npmjs.org/bplist-parser/0.0.5 npm http GET https://registry.npmjs.org/elementtree/0.1.5 npm http GET https://registry.npmjs.org/glob/3.2.11 npm http GET https://registry.npmjs.org/cordova-js/-/cordova-js-3.6.2.tgz npm http GET https://registry.npmjs.org/properties-parser/-/properties-parser-0.2.3.tgz npm http GET https://registry.npmjs.org/mime/1.2.11 npm http 304 https://registry.npmjs.org/abbrev npm http GET https://registry.npmjs.org/npm/1.3.4 npm http GET https://registry.npmjs.org/npmconf/0.1.16 npm http GET https://registry.npmjs.org/osenv/0.0.3 npm http GET https://registry.npmjs.org/plist-with-patches/0.5.1 npm http GET https://registry.npmjs.org/q/0.9.7 npm http GET https://registry.npmjs.org/rc/0.3.0 npm http GET https://registry.npmjs.org/request/2.22.0 npm http GET https://registry.npmjs.org/semver/2.0.11 npm http GET https://registry.npmjs.org/shelljs/0.1.4 npm http GET https://registry.npmjs.org/tar/0.1.19 npm http GET https://registry.npmjs.org/xcode/0.6.6 npm http 200 https://registry.npmjs.org/cordova-js/-/cordova-js-3.6.2.tgz npm http 200 https://registry.npmjs.org/properties-parser/-/properties-parser-0.2.3.tgz npm http 304 https://registry.npmjs.org/elementtree/0.1.5 npm http 304 https://registry.npmjs.org/bplist-parser/0.0.5 npm http 304 https://registry.npmjs.org/glob/3.2.11 npm http 304 https://registry.npmjs.org/mime/1.2.11 npm http 304 https://registry.npmjs.org/dep-graph/1.1.0 npm http 304 https://registry.npmjs.org/plist-with-patches/0.5.1 npm http 304 https://registry.npmjs.org/osenv/0.0.3 npm http 304 https://registry.npmjs.org/npmconf/0.1.16 npm http 304 https://registry.npmjs.org/npm/1.3.4 npm http 304 https://registry.npmjs.org/q/0.9.7 npm http 304 https://registry.npmjs.org/rc/0.3.0 npm http 304 https://registry.npmjs.org/semver/2.0.11 npm http 304 https://registry.npmjs.org/request/2.22.0 npm http 304 https://registry.npmjs.org/tar/0.1.19 npm http 304 https://registry.npmjs.org/shelljs/0.1.4 npm http 304 https://registry.npmjs.org/xcode/0.6.6 npm http GET https://registry.npmjs.org/xmlbuilder/0.4.3 npm http GET https://registry.npmjs.org/xmldom/0.1.19 npm http GET https://registry.npmjs.org/ini/1.1.0 npm http GET https://registry.npmjs.org/optimist/0.3.7 npm http GET https://registry.npmjs.org/deep-extend/0.2.10 npm http GET https://registry.npmjs.org/underscore/1.2.1 npm http GET https://registry.npmjs.org/config-chain/1.1.8 npm http GET https://registry.npmjs.org/inherits/2.0.1 npm http GET https://registry.npmjs.org/once/1.3.0 npm http GET https://registry.npmjs.org/mkdirp/0.3.5 npm http GET https://registry.npmjs.org/nopt/2.2.1 npm http GET https://registry.npmjs.org/sax/0.3.5 npm http GET https://registry.npmjs.org/pegjs/0.6.2 npm http GET https://registry.npmjs.org/node-uuid/1.3.3 npm http GET https://registry.npmjs.org/minimatch/0.3.0 npm http 304 https://registry.npmjs.org/xmldom/0.1.19 npm http GET https://registry.npmjs.org/fstream/-/fstream-0.1.27.tgz npm http GET https://registry.npmjs.org/block-stream/0.0.7 npm http 304 https://registry.npmjs.org/optimist/0.3.7 npm http 304 https://registry.npmjs.org/deep-extend/0.2.10 npm http 304 https://registry.npmjs.org/ini/1.1.0 npm http GET https://registry.npmjs.org/qs/0.6.6 npm http GET https://registry.npmjs.org/json-stringify-safe/4.0.0 npm http GET https://registry.npmjs.org/aws-sign/0.3.0 npm http GET https://registry.npmjs.org/forever-agent/0.5.2 npm http GET https://registry.npmjs.org/oauth-sign/0.3.0 npm http GET https://registry.npmjs.org/tunnel-agent/0.3.0 npm http GET https://registry.npmjs.org/cookie-jar/0.3.0 npm http GET https://registry.npmjs.org/http-signature/0.10.0 npm http GET https://registry.npmjs.org/hawk/0.13.1 npm http GET https://registry.npmjs.org/node-uuid/1.4.1 npm http GET https://registry.npmjs.org/form-data/0.0.8 npm http GET https://registry.npmjs.org/wordwrap/0.0.2 npm http 304 https://registry.npmjs.org/underscore/1.2.1
[jira] [Commented] (CB-7109) exec() call to plugin blocked the main thread
[ https://issues.apache.org/jira/browse/CB-7109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14059701#comment-14059701 ] Rajesh Kumar commented on CB-7109: -- got it. Will try this solution and see if the warning goes away. Thanks. > exec() call to plugin blocked the main thread > - > > Key: CB-7109 > URL: https://issues.apache.org/jira/browse/CB-7109 > Project: Apache Cordova > Issue Type: Bug > Components: Android, Plugin File >Affects Versions: 3.5.0 >Reporter: Rajesh Kumar >Priority: Minor > > In the file plugin of v3.5.0, I constantly see a warning in logcat in eclipse > when I try to write to a file. The warning is: > THREAD WARNING: exec() call to File.write blocked the main thread for 117ms. > Plugin should use CordovaInterface.getThreadPool(). > Similar issue is when I try to exit app. I guess this issue is present for > all the plugins. I checked the part of File plugin code: > final String fname=args.getString(0); > final String data=args.getString(1); > final int offset=args.getInt(2); > final Boolean isBinary=args.getBoolean(3); > threadhelper( new FileOp( ){ > public void run() throws FileNotFoundException, IOException, > NoModificationAllowedException { > long fileSize = write(fname, data, offset, isBinary); > callbackContext.sendPluginResult(new > PluginResult(PluginResult.Status.OK, fileSize)); > } > }, callbackContext); > And, threadhelper uses: > cordova.getThreadPool().execute(new Runnable() { > public void run() {} > }); > This means, the plugin is using a thread to do some async task, but logcat > throws the block warning. We need to fix this. -- This message was sent by Atlassian JIRA (v6.2#6252)