lib-file for Android, plugman "crash"

2013-08-25 Thread Axel Nennker
Hi, lib-file does not work on Android. plugman crashes. The fix is simple and could be added to other platform handlers as well. I made this pull request for Android. https://github.com/apache/cordova-plugman/pull/19 have fun Axel https://issues.apache.org/jira/browse/CB-4430#comment-13749605

Re: lib-file for Android, plugman "crash"

2013-08-27 Thread Axel Nennker
You'r welcome. How does this go forward? There are more things I would fix after this is merged.

Re: lib-file for Android, plugman "crash"

2013-08-27 Thread Axel Nennker
A minute ago.

Re: lib-file for Android, plugman "crash"

2013-08-27 Thread Axel Nennker
I think that that thread is related but more fundamental. The doc doesn't say that lib-file is bb10 only. It gives bb10 as an example. So lib-file should not crash plugman on Android with an unhelpful error message. In fact I needed lib-file on Android. The thread about these child elements of plu

Re: Anyone seeing problems with cordova cli commands running in parallel?

2013-08-27 Thread Axel Nennker
Maybe use this instead? https://github.com/bruce/node-temp -Axel Am 27.08.2013 16:06 schrieb "Filip Maj" : > Its probably due to this brittle line of code in plugman by yours truly: > > > https://github.com/apache/cordova-plugman/blob/master/src/util/plugins.js#L37 > > Probably should tack on a r

Re: lib-file for Android, plugman "crash"

2013-09-01 Thread Axel Nennker
Hi Filip Did you get the icla? Best Axel Am 27.08.2013 17:14 schrieb "Filip Maj" : > Have you signed and sent in an Apache ICLA? > On 2013-08-27 8:10 AM, "Axel Nennker" wrote: > > > You'r welcome. How does this go forward? There are more things I would > fix > > after this is merged. > > >

Re: lib-file for Android, plugman "crash"

2013-09-03 Thread Axel Nennker
ted here already: > http://people.apache.org/committer-index.html#unlistedclas > > > > On Mon, Sep 2, 2013 at 1:36 PM, Axel Nennker > wrote: > > > Hi Filip > > Did you get the icla? > > Best > > Axel > > Am 27.08.2013 17:14 schrieb "Filip

Re: lib-file for Android, plugman "crash"

2013-09-04 Thread Axel Nennker
Cool. Thanks.

no such file: ~/.cordova\lib\android\cordova\3.1.0\framework\assets\www\cordova.js

2013-10-11 Thread Axel Nennker
Hi, I moved to a new developement machine and installed the latest phonegap using npm -g install phonegap. Then I checked out a phonegap project (3.0) from our git repo. Now I want to build the Android part but get the message below. Is this happening because I never did a "phonegap platform add

An error occured during creation of android sub-project. The system cannot find the path specified.

2013-10-12 Thread Axel Nennker
Hi, while trying to circumvent an issue with a missing cordova.js in 3.1 I ran into this new issue. I created a new project using: C:\Users\ignisvulpis\git\delme>phonegap create app test.app App [phonegap] created project at C:\Users\ignisvulpis\git\delme\app C:\Users\ignisvulpis\git\delme>cd ap

resolved my last email's issue

2013-10-12 Thread Axel Nennker
I did this ignisvulpis@NAMENLOS ~/git/delme/hello $ rm -rf ~/.cordova/lib/android/cordova/3.1.0/ and now it works... $ phonegap local build android [phonegap] adding the Android platform... [phonegap] missing library cordova/android/3.1.0 [phonegap] downloading https://git-wip-us.apache.org/repos

Re: www/config.xml plugin dependencies

2013-10-21 Thread Axel Nennker
Yes. Currently we are adding plugin be hand. The problem is that we have a distributes developer team. So when the UI developers change something in www to require a plugin and merge that with master; then when the other developers pull master again the plugin is missing and the Application hangs.

Re: www/config.xml plugin dependencies

2013-10-21 Thread Axel Nennker
to support removed over > time, or manually installed plugins that arent in list... > > Maybe every plugin installed/removed *must* be reflected in the app's > config.xml? > > -Michal > > > On Mon, Oct 21, 2013 at 1:42 PM, Axel Nennker > wrote: > > > Yes. C

Re: config.xml discussion, we need to talk

2013-10-21 Thread Axel Nennker
+1 Although I was about to suggest "single platform development" and "multi platform development". Axel Am 21.10.2013 19:36 schrieb "Brian LeRoux" : > I think we need to be explicit, not talk about legacy or magic. I'd like to > propose: > > Native Platform Dev -- Build Cordova apps on the metal.

Re: www/config.xml plugin dependencies

2013-10-22 Thread Axel Nennker
thout ID)-> takes installed plugins and > > adds to deps > > > > something like that? > > > > > > On Mon, Oct 21, 2013 at 4:24 PM, Axel Nennker > wrote: > > > >> A MUST would be strong I think. Although the two ways don't mix well. &

endless recursion on phonegap local plugin add ../..

2013-10-23 Thread Axel Nennker
Hi, the above phonegap command fails (name to long) and I think it applies to cordova as well. plugin add seems to copy the whole directory into the app's plugins directory. Which is wrong. I am developing a phonegap plugin and inside the plugin's developement folder I have a subfolder named e

Re: endless recursion on phonegap local plugin add ../..

2013-10-23 Thread Axel Nennker
r files of the plugin. > > Braden > > > On Wed, Oct 23, 2013 at 9:24 AM, Don Coleman > wrote: > > > I've seen this problem with cordova. My instructions for the examples > have > > people copy the example folder out of the project before installing the &g

Re: platform add android skips bat files on os x

2013-11-03 Thread Axel Nennker
Related to this is the effect that if you have a team that uses different platforms for development and check in the platforms directory then your fellow team members might miss the scripts for their development platform. In our project I created the cordova project on Ubuntu and pushed platforms/a

Re: android target level

2013-11-07 Thread Axel Nennker
I think the highest level is not what developers need. When you create a product/app you want your app to run on as many devices as possible and not only the latest. Am 07.11.2013 11:36 schrieb "Brian LeRoux" : > Apologies I think there is another thread about this but I'd like to > understand mor

Re: plugin documentation: param onload

2013-11-16 Thread Axel Nennker
Issue: https://issues.apache.org/jira/browse/CB-5419 Pull Request: https://github.com/apache/cordova-docs/pull/154 2013/11/16 James Jong > Yes. Please file a JIRA issue. Sounds like it will be a great help to > others who hit this. > -James Jong > > On Nov 15, 2013, at 3:16 PM, Shazron wro

Re: Propagate OS events to plugins

2013-11-17 Thread Axel Nennker
It is probably not worth the complexity. Axel Am 17.11.2013 21:13 schrieb "Joe Bowser" : > Agreed. This seems like it'll be super brittle depending on how long the > plugin takes to load. I'd rather play it safe and not have intents missed. > > On a related note, I want to add more OS events to

Re: Propagate OS events to plugins

2013-11-17 Thread Axel Nennker
Anyway... could someone please look at the pull request to document onload on Android? https://issues.apache.org/jira/browse/CB-5419?jql=project%20%3D%20CB%20AND%20text%20~%20onload Axel Am 17.11.2013 21:13 schrieb "Joe Bowser" : > Agreed. This seems like it'll be super brittle depending on how l

Re: Propagate OS events to plugins

2013-11-18 Thread Axel Nennker
The param-osevent proposal prevents the class from loading too early. It should only be instantiated when needed. Axel Am 18.11.2013 09:14 schrieb "Shazron" : > Well if one wants to go through this rabbit-hole of Objective-C, your > plugin can load itself (on a class level) without Cordova's help

PluginEntry.java crash in getClassByName

2013-12-03 Thread Axel Nennker
Hi, I don't know why or since when but getClassByName is called with an argument of "" (not null). The method getClassByName checks for null but not for "" and so it crashes. This happens for the service http://api.phonegap.com/1.0/device I am using cordova-3.1.0-0.2.0 A screenshot of the debuggi

Re: PluginEntry.java crash in getClassByName

2013-12-03 Thread Axel Nennker
done: https://issues.apache.org/jira/browse/CB-5537 2013/12/3 Joe Bowser > Can you please create an issue so that this is tracked? > > On Tue, Dec 3, 2013 at 11:02 AM, wrote: > > Hi, > > > > I don't know why or since when but getClassByName is called with an > argument > > of "" (not null).

Re: PluginEntry.java crash in getClassByName

2013-12-03 Thread Axel Nennker
Pull request is here: https://github.com/apache/cordova-android/pull/87 I took the easier path to check for the empty string in PluginEntry.java instead of trying to find out what other effects a change in PluginManager.java from "" to null might have. Axel 2013/12/3 Axel Nennke

Re: FileTransfer download null-target

2013-12-05 Thread Axel Nennker
Exposing a mkstemp like function would be another issue. Where would you put it? The W3C File API does not have this. http://www.w3.org/TR/FileAPI/ I think that implementing "target==null" for FileTransfer.download on Android is super simple. I guess that it is simple an other platforms too. I st

Re: Support self-signed certs in FileTransfer

2013-12-11 Thread Axel Nennker
Actually this is not only for enterprise apps. The way I implemented the first version is so that _only_ this cert is trusted but no other. If you have an app talking to your backend you might want to pin the SSL connection to certs shipped with the app. If you renew the cert you would add the new

Re: PluginManager.java regression cordova-3.2 ERROR: config.xml is missing. Add res/xml/config.xml to your project

2013-12-11 Thread Axel Nennker
No. I intented this to be on the list. Gmail UI irks. Could this be fixed in 3.3? I know it is late but... -Axel 2013/12/11 Joe Bowser > Did you mean to to send this to me personally? > > On Wed, Dec 11, 2013 at 7:24 AM, Axel Nennker > wrote: > > Well, this repeatable. Use

Re: Support self-signed certs in FileTransfer

2013-12-11 Thread Axel Nennker
I think it is a good security practice to tie an app to the app's backend. 2013/12/11 Josh Soref > Ian wrote: > > There was some talk on the list a couple months ago about this -- not for > > file-transfer specifically, > > but the general idea of supporting custom > certificates, or CAs in Cor

Re: PluginManager.java regression cordova-3.2 ERROR: config.xml is missing. Add res/xml/config.xml to your project

2013-12-11 Thread Axel Nennker
can use to reproduce the error. I > doubt > > that this was a regression since we never explicitly supported your use > > case to begin with. > > > > Of course, patches are always welcome. > > On 11 Dec 2013 07:58, "Axel Nennker" wrote: > >

Re: PluginManager.java regression cordova-3.2 ERROR: config.xml is missing. Add res/xml/config.xml to your project

2013-12-11 Thread Axel Nennker
, this.ctx.getActivity().getClass().getPackage().getName()); if (id == 0) { 2013/12/11 Axel Nennker > Sorry no. It does not work on 3.3-rc1 > Axel > > ignisvulpis@ubuntu:/host/20131210/phonegap$ cordova -v > 3.3.0-rc.1 > ignisvulpis@ubuntu:/host/20131210/pho

Re: PluginManager.java regression cordova-3.2 ERROR: config.xml is missing. Add res/xml/config.xml to your project

2013-12-11 Thread Axel Nennker
cli? ... > > 3.3.0 is already tagged and ready to go, so this needs reproducible steps > to get attention. > > > @purplecabbage > risingj.com > > > On Wed, Dec 11, 2013 at 11:28 AM, Axel Nennker >wrote: > > > Sorry no. It does not work on 3.3-rc1 > &g

Re: PluginManager.java regression cordova-3.2 ERROR: config.xml is missing. Add res/xml/config.xml to your project

2013-12-11 Thread Axel Nennker
uot;, "xml", intent.getPackage()); if (id == 0) { -Axel 2013/12/11 Joe Bowser > Your bug doesn't exist unless it has a JIRA issue. > > On Wed, Dec 11, 2013 at 12:25 PM, Axel Nennker > wrote: > > Jesse, > > I did not create an JIRA issue yet because

Re: PluginManager.java regression cordova-3.2 ERROR: config.xml is missing. Add res/xml/config.xml to your project

2013-12-11 Thread Axel Nennker
gt; > On Wed, Dec 11, 2013 at 12:44 PM, Axel Nennker > wrote: > > Here is the issue on JIRA: > > https://issues.apache.org/jira/browse/CB-5633 > > > > This code works with 3.3-rc1: > > > >public void loadPlugins() { > > Activity acti

Started Implementing CB-2606 Add support for

2013-12-20 Thread Axel Nennker
Hi, I started to implement CB-2606 https://github.com/AxelNennker/cordova-cli The code is here: https://github.com/AxelNennker/cordova-cli This https://github.com/AxelNennker/cordova-cli/blob/master/src/config_parser.js changes the config_parser to support the icon element. On Android using thi

Re: Started Implementing CB-2606 Add support for

2013-12-20 Thread Axel Nennker
inline. Do you know why the tests fail? They look ok for me but those are the first jasmine tests I ever wrote. BTW: the note in cordova-cli's README.md on test seems a little short "npm test". I suggest to be a little more verbose here: - clone mobile-spec e.g.: git clone https://github.com/apach

Re: Started Implementing CB-2606 Add support for

2013-12-20 Thread Axel Nennker
The xmlns is in the config.xml of the 3.3 HelloWorld app. http://www.w3.org/ns/widgets"; xmlns:cdv="http://cordova.apache.org/ns/1.0";> -Axel Am 20.12.2013 18:08 schrieb "Josh Soref" : > Andrew wrote: > > Should CLI be in the business of resizing icons or converting image > formats? > > Probab

Re: Default template - size

2013-12-21 Thread Axel Nennker
I suggest to move the icons to /res/icons/ and copy them from there to the platform www. Although this has several drawbacks: - testing the UI in a browser by opening www/index.html might surprise some developers because they use the icons not only to represent the app but also in the UI. - Some m

Re: Started Implementing CB-2606 Add support for

2013-12-21 Thread Axel Nennker
Now with firefoxos support which lacked support for the mandatory icons field in the manifest before this patch. https://github.com/AxelNennker/cordova-cli/blob/master/src/metadata/firefoxos_parser.js#L63 -Axel 2013/12/20 Axel Nennker > The xmlns is in the config.xml of the 3.3 HelloWorld

Add icon to firefoxos

2013-12-22 Thread Axel Nennker
Hi, I created this issue today: https://issues.apache.org/jira/browse/CB-5692 Add icons to firefoxos and add "icons" field to manifest.webapp https://developer.mozilla.org/en-US/Apps/Developing/Manifest "icons": { "30": "icon-30.png", "60": "icon-60.png", "128": "icon-128.png" } cheers Axel

Re: Google Glass Support

2013-12-23 Thread Axel Nennker
I suggest to use a plugin. A plugin can add to the AndroidManifest.xml and add any Java package needed (your code to handle OS events (intents)). I do not understand what "...until we can work with intents via a plugin" means? Your plugin can add an Activity definition with an IntentFilter to the

Re: Google Glass Support

2013-12-23 Thread Axel Nennker
pt (if you want that) One problem remains: I am not sure how to handle res/xml/cordova_show.xml This list discussed the topic "resources" in the past but there was no implementation (I think). 2013/12/24 Axel Nennker > I suggest to use a plugin. A plugin can add to the AndroidMan

Re: Google Glass Support

2013-12-24 Thread Axel Nennker
Why do you need the attribute to be changed? If you use a separate activity you can set all the attributes you want on it; like the nohistory=true in my example I start the "main" cordova activity through getLaunchIntentForPackage As a class inheriting from CordovaPlugin you get all the OS messages

Re: Google Glass Support

2013-12-24 Thread Axel Nennker
? > > thanks! > > > On Tue, Dec 24, 2013 at 9:29 AM, Axel Nennker wrote: > >> Why do you need the attribute to be changed? >> If you use a separate activity you can set all the attributes you want on >> it; like the nohistory=true in my example >> I start the

Re: CB-5419 resolved but not published in 3.3.x documentation yet

2013-12-30 Thread Axel Nennker
Would it be possible to publish documentation immediately? This change improves the documentation for "Android Plugins". There is no code change that could lead to a regression. I think that this kind of changes could go live after review. Although I have to admit that I do not know what process s

Re: Moving www/config.xml -> config.xml (within CLI)

2013-12-30 Thread Axel Nennker
I support this proposal. When I started work on CB-2606 https://issues.apache.org/jira/browse/CB-2606I noticed that the element suggests that icons are put next to config.xml as well. When config.xml is in the project root it becomes more natural to put icons in /res/icons//icon.png -Axel ps: I

Re: Android Plugin Resource Control

2013-12-31 Thread Axel Nennker
I suggest to introduce e.g. : > Thats not a bad idea, would we then inform the user to edit the plugin.xml > after they add it? Remember we need user to be able to customize > PRODUCT_NAME somehow. > > And editing strings.xml isn't horrible it just breaks abstraction of a > plugin. So if you edit

Re: Android Plugin Resource Control

2013-12-31 Thread Axel Nennker
every build? > > The other issue I have with this is strings.xml is pretty standard for any > text in your android application, it seems a bit odd to move this > elsewhere. > > -ross > > > On Tue, Dec 31, 2013 at 2:31 PM, Brian LeRoux wrote: > > > That's cl

Re: Android Plugin Resource Control

2014-01-01 Thread Axel Nennker
ething like this. > > plugin.xml > > {$PRODUCT_NAME} > > > config.xml: > > > Then you can combine this with Axels suggestion and just change the target > of the config-file to glass.xml and add it as a resource at plugin add. > > > > On Wed, Jan 1, 2014 at 1

Re: Android Plugin Resource Control

2014-01-01 Thread Axel Nennker
re does not > seem to be a way, via code, to set this property. > > I am not sure if you can see this link without being a glass explorer but > here it goes anyway > https://developers.google.com/glass/develop/gdk/input/voice > > > > On Wed, Jan 1, 2014 at 11:18 AM, Axel Nenn

Re: Android Plugin Resource Control

2014-01-01 Thread Axel Nennker
om version > control. If that happens we would then have a plugin manifest that would > install plugins for other users. We would then have to store any variables > in this manifest so other users can get an "exact" copy, just seems like a > whole bunch of headaches. Ideally th

Re: Android Plugin Resource Control

2014-01-02 Thread Axel Nennker
latform remove android > cordova platform add android > > You see the variable applied in the new android project? > > If this does work like you say what would you then suggest if the user then > wants to change this value? They have to remove and re-add the plugin > again? i

Add resource-file element to plugin.xml

2014-01-02 Thread Axel Nennker
Hi, I created an issue in JIRA: https://issues.apache.org/jira/browse/CB-5720 Description Add support for to a plugin's plugin.xml The above example would copy the file glass.xml from the plugin's directory to the platforms/android/res/xml/glass.xml The ubuntu platform had this feature alread

Re: Add resource-file element to plugin.xml

2014-01-02 Thread Axel Nennker
k this sounds great! Certainly the section in there could use > some > > > elaboration, but I think I'd expect the tag to work as you've > implemented > > > it. > > > > > > If no one objects, I'll pull it in tomorrow. > >

https://issues.apache.org/jira/browse/CB-5605 is resolved

2014-01-02 Thread Axel Nennker
... but not marked as such. -Axel

Re: Add resource-file element to plugin.xml

2014-01-03 Thread Axel Nennker
-plugman/commit/97974f77859d78437d84086d2b927036359d971e -Axel 2014/1/2 Axel Nennker > ios does something more than just copy files. > ubuntu copies the src to a subdirectory named qml. > > source-file could be used on Android for my purposes. The major difference > is that my

storage

2014-01-03 Thread Axel Nennker
Hi, I was wondering about the cross-platform experience of Storage. http://cordova.apache.org/docs/en/3.3.0/cordova_storage_storage.md.html#Storage It seems that there is no cross platform solution in Cordova, right? There are indexeddb shims that implement indexeddb on "all" platforms. Shouldn'

Re: Default template - size

2014-01-03 Thread Axel Nennker
:13 PM, "Andrew Grieve" wrote: > As long as they can specify the path to their icons, I think they can put > them wherever they want. > > What input are you looking for? > > > On Sat, Dec 21, 2013 at 4:14 PM, Axel Nennker > wrote: > > > I suggest

Re: storage

2014-01-04 Thread Axel Nennker
3, 2014 10:37 AM > To: dev@cordova.apache.org > Subject: Re: storage > > an indexeddb plugin would be a rad thing for the community to create and > maintain ;) > > in seriousness: the file api is probably what you're really looking for if > you want to read/write json

Re: storage

2014-01-04 Thread Axel Nennker
indexeddb plugin for all platforms. cheers -Axel 2014/1/4 Brian LeRoux > Again: this is a plugin and really not a Cordova concern. > On Jan 4, 2014 2:14 AM, "Axel Nennker" wrote: > > > How about Parashuram Narasimhan reviewing Dick's patches and both of you >

Re: storage

2014-01-04 Thread Axel Nennker
been working on, on > the aerogear project https://github.com/aerogear/aerogear-js#datamanager > > It is designed to fallback to whatever is available on your platform > > On Jan 3, 2014, at 8:30 AM, Axel Nennker wrote: > > > Hi, > > > > I was wondering about the

Re: storage

2014-01-04 Thread Axel Nennker
20:48 schrieb "Brian LeRoux" : > File API does not satisfy your use case? > On Jan 4, 2014 4:36 AM, "Axel Nennker" wrote: > > > I looked at the Aerogear Datamanger. Looks good but I am looking for a > > really simple solution where developers don&#

Re: storage

2014-01-04 Thread Axel Nennker
us to rally behind. > > What are you writing (persisting)? How large? Does the write have to be > transactional? Asynchronous? > > The API is important but indexeddb is no different than opening a file > really. > On Jan 4, 2014 12:46 PM, "Axel Nennker" wrote: >

Re: storage

2014-01-05 Thread Axel Nennker
est we would welcome and maintain in > core. > > > > > On Sat, Jan 4, 2014 at 3:34 PM, Axel Nennker > wrote: > > > Hi Brian, > > we are building an applications that imports some data and stores that > data > > in a database. > > Each imported da

Re: Review Request 16701: Add --searchpath option for local plugin search path

2014-01-07 Thread Axel Nennker
Have you thought of Windows paths? C:\myplugins; z:\sharedplugins Is the delimeter platform specific? Can I have multiple searchpath parameters? --searchpath c:\myplugins --searchpath z:\sharedplugins --Axel Am 07.01.2014 22:41 schrieb "Mark Koudritsky" : > > --

Re: Add resource-file element to plugin.xml

2014-01-08 Thread Axel Nennker
utting files within one of: > (drawable-*|layout|values|xml) > > WDYT? > > > On Wed, Jan 8, 2014 at 3:38 AM, Axel Nennker wrote: > >> Andrew, >> >> any progress on this? >> I think that it make sense to implement resource-file on Android. >> >&g

Re: Add resource-file element to plugin.xml

2014-01-08 Thread Axel Nennker
date. -Axel 2014/1/8 Axel Nennker > ad 1) I tried emit but it did not emit anything. Will try again. > ad 2) I will remove the path.join with res. > -d outputs what is copied to where. So devs can see what ends up where. > > -Axel > > > 2014/1/8 Andrew Grieve > >&

Re: Started Implementing CB-2606 Add support for

2014-01-08 Thread Axel Nennker
r/cordova-cli/blob/master/src/config_parser.js#L249 Can I write something like els = this.config.doc.findall('icon', 'http://cordova.apache.org/ns/1.0'); in elementree? 2013/12/22 Axel Nennker > Now with firefoxos support which lacked support for the mandatory icons

Re: Add resource-file element to plugin.xml

2014-01-08 Thread Axel Nennker
Are t.b.d. because I have to read a chapter or two to my kids right now. The test are probably mainly cut&paste of the source-file test... Axel 2014/1/8 Anis KADRI > tests? > > > On Wed, Jan 8, 2014 at 10:23 AM, Axel Nennker > wrote: > > > The pull request is

Re: Started Implementing CB-2606 Add support for

2014-01-08 Thread Axel Nennker
make paths relative to the project root? > > > No idea about namespaces. > > > On Wed, Jan 8, 2014 at 10:31 AM, Axel Nennker > wrote: > > > I think I'll wait for when "www/config.xml -> config.xml" has landed > before > > continuing wit

Re: Review Request 16739: Change --searchpath to use repeated flag instead of delimiter

2014-01-08 Thread Axel Nennker
If it searchpath is in cordova.json then it could/should be an array, right? { ... "searchpath": ["c:\myplugins", "z:\sharedplugins"], ... } 2014/1/8 Mark Koudritsky > I think the use of searchpath as command line param will be rare, in most > cases it will be stored in some config file (e.g.

Re: Review Request 16739: Change --searchpath to use repeated flag instead of delimiter

2014-01-08 Thread Axel Nennker
dist-clean". -Axel 2014/1/8 Mark Koudritsky > Good point, there is no need for delimiters in config.json anyway. > Do you think it's worth the extra code to introduce the platform specific > delimiter logic for the command line? > > > On Wed, Jan 8, 2014 at 3:08 PM, A

Re: Review Request 16739: Change --searchpath to use repeated flag instead of delimiter

2014-01-08 Thread Axel Nennker
the json stringify-er takes care of backslashes. Not a real problem but just me typing bad examples. -axel 2014/1/8 Josh Soref > Axel Nennker wrote: > > >If it searchpath is in cordova.json then it could/should be an array, > >right? > >{ > >... > &

Re: Add resource-file element to plugin.xml

2014-01-15 Thread Axel Nennker
; a bad way to track when features are being added. > > On Wed, Jan 8, 2014 at 11:47 AM, Axel Nennker > wrote: > > Are t.b.d. because I have to read a chapter or two to my kids right now. > > The test are probably mainly cut&paste of the source-file test... >

Created issue: FirefoxOS - add build script

2014-01-18 Thread Axel Nennker
https://issues.apache.org/jira/browse/CB-5816 Axel run: cordova build firefoxos output: Generating config.xml from defaults for platform "firefoxos" Preparing firefoxos project Compiling app on platform "firefoxos" via command "/project/platforms/firefoxos/cordova/build" events.js:72 throw er;

Re: storage

2014-01-18 Thread Axel Nennker
> To: dev@cordova.apache.org > Subject: Re: storage > > an indexeddb plugin would be a rad thing for the community to create and > maintain ;) > > in seriousness: the file api is probably what you're really looking for if > you want to read/write json on phones (you could

Re: Make cordova platform add ios work on Windows

2014-02-01 Thread Axel Nennker
Without wanting to say that it makes _much_ sense or is worth the effort I tried this two weeks ago because I needed the iOS app on a manager's iPhone but the project's iOS devs were not available. I wanted to add the iOS platform, zip the platforms/ios folder and send it to another iOS developer (

Re: Started Implementing CB-2606 Add support for

2014-02-08 Thread Axel Nennker
I removed the restriction that icons live in specific directories. https://github.com/apache/cordova-cli/pull/126 The src in the icon element in config.xml is taken as is. -Axel 2014-01-08 20:48 GMT+01:00 Axel Nennker : > True, will make it so. > > &

cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

2014-02-10 Thread Axel Nennker
Andrew, any comments to the current implementation? https://github.com/apache/cordova-cli/pull/126 Joe commented that the new class in config_parser.js named "icon" should be named "Icon" but I left it as is because the other classes are lowercase too. There was another comment that namespaces in

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

2014-02-11 Thread Axel Nennker
ff it from the > png header? This might be nice as a follow-up, but I'd lean towards > making it required for the first cut. > - cdv:density seems redundant with respect to size. Icons on android > are 46px at mdpi, so the size can be used to derive the density. > > > On

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

2014-02-12 Thread Axel Nennker
gt; On Tue, Feb 11, 2014 at 3:43 PM, Brian LeRoux wrote: > > > Given we are the only 'widget spec' impl in use today I'm ok with > diverging > > and not adding namespace confusion. Def want config to be explicit and > not > > have magical implicit mappings

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

2014-02-13 Thread Axel Nennker
h e.g gap:density > > for > > > now. And ditch namespaces later. > > > > > > Axel > > > Am 12.02.2014 22:38 schrieb "Andrew Grieve" : > > > > > > > On Tue, Feb 11, 2014 at 3:43 PM, Brian LeRoux wrote: > > > > > >

Re: XML Namespaces

2014-02-13 Thread Axel Nennker
I would like to see CB-2606 https://issues.apache.org/jira/browse/CB-2606to be resolved soon. Moving from config.xml to config.json or package.json is a breaking change and rewards a major version number change. I would like to see phonegap buyin for that too if possible. 2014-02-13 5:10 GMT+0

Re: XML Namespaces

2014-02-17 Thread Axel Nennker
/config.xml vs. /config.xml /config.json could be used to generate e.g. platforms/android/config.xml or similar on platforms that need/prefer XML Am 17.02.2014 20:33 schrieb "Jesse" : > > The config.xml file is currently read at launch on all platforms to decide > what the start-page is, any pre

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

2014-02-20 Thread Axel Nennker
a size is there that is typical for that platform (72,144 for ios) then us only those matching icons. Try to help developers. -Axel 2014-02-13 9:56 GMT+01:00 Axel Nennker : > The topic is reaching politics status... > > I think it is worth some effort to keep phonegap and cordova ali

RE: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

2014-02-21 Thread Axel Nennker
nk my plan works and would like to know what the group thinks about it. Axel Am 21.02.2014 15:23 schrieb "Jonathan Bond-Caron" : > On Fri Feb 21 09:14 AM, Jonathan Bond-Caron wrote: > > On Thu Feb 20 04:07 AM, Axel Nennker wrote: > > > How about this strategy: > >

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

2014-02-21 Thread Axel Nennker
Phonegap icon extensions or we wait for 4.0 to get rid of config.xml. Or we implement the "small step forward" (with it's restrictions) and wait for 4.0 to get rid of config.xml. -Axel 2014-02-21 15:48 GMT+01:00 Jonathan Bond-Caron : > On Fri Feb 21 09:43 AM, Axel Nennker wro

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

2014-02-21 Thread Axel Nennker
getting there safely is > zero magic and explicit configuration. > > Lame, I know. > > > On Thu, Feb 20, 2014 at 1:07 AM, Axel Nennker > wrote: > > > How about this strategy: > > > > project_dir/config.xml > > - no new elements in config.xml like cdv:icon > &g

CB-6088: platform add firefoxos fails if config.xml in project but not in www

2014-02-21 Thread Axel Nennker
Hi, "platform add firefoxos" fails if config.xml in project but not in www. config.xml moved to project_dir but firefoxos.js expects it in www and fails. Here is a pull request that looks for config.xml in project_dir first but falls back to www if not found. https://github.com/apache/cordova-p

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

2014-02-21 Thread Axel Nennker
ons%20and%20Splash%20Screens > > > . > > > > > On Fri, Feb 21, 2014 at 11:24 AM, Axel Nennker >wrote: > > > What is your favorite explicit configuration? > > Am 21.02.2014 16:49 schrieb "Brian LeRoux" : > > > > > As much as I'd like a single

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

2014-02-22 Thread Axel Nennker
://github.com/AxelNennker/cordova-cli/commit/890d6a64cdf459a389ba7104097f97603338b4e1 2014-02-21 22:43 GMT+01:00 Axel Nennker : > there is a pull request that implements this gap: prefix and phonegap > namespace stuff but this is Cordova and we have cdv: as prefix and another > namespace:

Re: [windows] Build fails if app path contains whitespaces

2014-02-23 Thread Axel Nennker
Isn't there a version of exec that takes the parameters as arguments and handles the escaping? Am 23.02.2014 21:00 schrieb "Sergey Grebnov (Akvelon)" < v-seg...@microsoft.com>: > Hi, could someone review and merge? > https://issues.apache.org/jira/browse/CB-6091 > fix for windows8 > https://githu

get config.xml data from js

2014-02-28 Thread Axel Nennker
Hi, I fear this is a stupid question but I could not find the answer in the cordova docs or on the net or reading the source (Luke). As an app developer and cordova user how do I get data from config.xml? We want to add an "about" page to an cordova app and could not find a simple javascript way

Re: get config.xml data from js

2014-02-28 Thread Axel Nennker
want to do, but there's no way currently > > short of writing a custom plugin, or a post-prepare hook. > > > > > > > > On Fri, Feb 28, 2014 at 3:34 PM, Axel Nennker > > wrote: > > > > > Hi, > > > > > > I fear this is a stup

Re: get config.xml data from js

2014-02-28 Thread Axel Nennker
; > https://github.com/apache/cordova-labs/tree/cdvtest/cordova-plugin-appsettings > > > > > > I think he planned on proposing it for core but there was never really > a > > > reason for it. I guess now's a good time to get that going. > >

Re: get config.xml data from js

2014-02-28 Thread Axel Nennker
at 3:39 PM, Andrew Grieve >wrote: > > > >> Certainly a reasonable thing to want to do, but there's no way currently > >> short of writing a custom plugin, or a post-prepare hook. > >> > >> > >> > >> On Fri, Feb 28, 2014 at 3:34 PM, Axel N

Re: get config.xml data from js

2014-02-28 Thread Axel Nennker
ps > >>> > > extend that one I linked) to include all config file values. > >>> > > > >>> > > Filed: https://issues.apache.org/jira/browse/CB-6139 > >>> > > > >>> > > -Michal > >>> > > > >

Re: get config.xml data from js

2014-02-28 Thread Axel Nennker
l > > > [1] > > https://github.com/apache/cordova-ubuntu/blob/cd6b3d11b58f38932797f1f4130ce40f772bdcd5/main.cpp#L66 > > Still completely manageable from JavaScript; IMHO > just switch on cordova.platformId ... > > @purplecabbage > risingj.com > > > On Fri

Re: get config.xml data from js

2014-02-28 Thread Axel Nennker
bbage >> risingj.com >> >> >> On Fri, Feb 28, 2014 at 3:14 PM, Brian LeRoux wrote: >> >>> So, before we go too much farther with this...what is the usecase? Could >> a >>> build step hook address the idea? (Eg write a file called config.jso

  1   2   >