Woah what! haha there is a 4th parameter for custom template!?! is there any info on how to use this? Any chance this can be a github URL that it would pull from? If not what should this folder look like? Should it be like this folder here ( https://github.com/apache/cordova-android/tree/master/bin/templates/project) or one if its parents? That could be a great solution right there...
I would like to use plugins all around but I need to totally change the Intent, and I do not think I can do that via a plugin? The tweaks are minimal for sure, it runs android apps, but I need to change up the theme, and to launch the app you use a voice trigger so I need to modify intents & theme in AndroidMainifest.xml. Lastly I need some extra Java files to properly pass through the touch events from the frames. I already have everything working, cordova app, touch event plugin, etc etc. I just need to clean this up into a package that is very easy for people to use. Ideally I want this to work via the CLI. On Mon, Dec 23, 2013 at 9:56 PM, Andrew Grieve <agri...@chromium.org> wrote: > Neat stuff! > > If possible, it would definitely be neat to make glass work more > out-of-the-box with Cordova. I'm totally unfamiliar with what tweaks are > necessary to make it work though. > > One thing that's possible already is to use a custom template. This is the > 4th parameter to the create command - a path to a directory to use as the > project template. > > Would be awesome if all of the tweaks could be done via a cordova plugin. > Plugins have the <config-file> tag, which allows you to edit XML (although > limited) on plugin install time. > > Andrew > > > On Mon, Dec 23, 2013 at 10:43 PM, Ross Gerbasi <rgerb...@gmail.com> wrote: > > > Hello All, > > > > I have been working on Google Glass support for Cordova and hit a wall. I > > am looking for some guidance/advice on how to proceed. There are a couple > > things that I need to deal with but I will start with just creating the > > proper project. I have a feeling this will not only be about google glass > > but a issue we will come across later. > > > > Essentially in order to make this happen I need to modify > > AndroidManifest.xml and add some resources to the project. Ideally This > > would be a custom template of some kind for an android project. Possibly > > running a command like "cordova platform add android glass". The other > > option is to just modify the existing android project after it has been > > added, this seems messy though and a problem if the user trashes the > > android project they have to remember to run whatever command modifies > the > > project for glass again. > > > > Once I am able to get a basic project together for Glass the next thing > is > > events. In order to get touch pad events into the webview it requires a > bit > > of tweaking, so I need some java code to handle this. I am not sure if > this > > should be a plugin or not. It seems like it should not be a plugin as it > > really is essential for the project to even really work. I could then see > > voice as a plugin? > > > > Currently I am planning on making a 3rd party node package that you would > > run against your project. Something like "cordova-glass > __VOICE_TRIGGER__", > > that would then check for an android project, create it if needed, then > > modify it for glass. It would add the voice trigger to start your app and > > such. If it already exists it will just make the tweaks needed. This will > > at least get the ball rolling and allow people to start building apps > > pretty easily, then maybe we can find a more efficient way to create the > > project for users? > > > > Anyways I would love for anyone to chime in, I will be cranking away on > > this but any ideas would be greatly appreciated. > > > > -ross > > >