poetic / ember-cli-cordova

A tool for creating hybrid apps using a combination of ember-cli and cordova
MIT License
441 stars 77 forks source link

Nice to haves #32

Closed jakecraige closed 10 years ago

jakecraige commented 10 years ago

Rather than keeping lots of open issues, I'll have this one to manage things that would be nice but aren't currently possible or need to be thought through

Globegitter commented 10 years ago

@jakecraige I have just started playing around with your addon (and cordova for the first time as well) but in regards to the open android project command issue, since Android Studio it is based on Intellij I found that open -a /Applications/Android\ Studio.app would be a command to open Android studio and open -a /Applications/Android\ Studio.app file.txt to open a file. Not sure if that is exactly what you are looking for but the only thing that I could find that comes close to it.

jakecraige commented 10 years ago

@Globegitter Thanks for the input. Do you know what type of file android studio would want to open? Maybe the whole folder?

Pretty much if you find the open command that will open the proper file I'd love to accept a PR or add it myself. I'm guessing Android Studio would be a good default since it's "blessed" for Android Dev

Globegitter commented 10 years ago

@jakecraige Right now I am just working on this as a side project, so progress is slow, but as soon as I make some substantial progress (which might be a few more weeks) I'l look into making a PR.

jakecraige commented 10 years ago

Sounds awesome, thanks. I've also been working with android a lot recently so I've had some other ideas to ease development on them On Aug 8, 2014 5:12 AM, "Markus Padourek" notifications@github.com wrote:

@jakecraige https://github.com/jakecraige Right now I am just working on this as a side project, so progress is slow, but as soon as I make some substantial progress (which might be a few more weeks) I'l look into making a PR.

— Reply to this email directly or view it on GitHub https://github.com/poetic/ember-cli-cordova/issues/32#issuecomment-51584523 .

billybonks commented 10 years ago

So I am building a mobile app that sharing code base with my website, mainly controllers, but I need different templates per platform some are shared some are different so I was thinking, if you had a folder structure like this.

templates -templates -controllers -etc -androidtemplates -iostemplates

or -mobile template

then when it builds if it finds a template in the secondary folders to use that template instead of the one from the core templates folder, happy to hear other suggestions on how to manage this

jakecraige commented 10 years ago

@billybonks In your case, it sounds like separate projects with an addon for shared code would solve that?

billybonks commented 10 years ago

I was thinking that as well but thought I would ask if it would have any space here first On Sep 1, 2014 8:43 AM, "Jake Craige" notifications@github.com wrote:

@billybonks https://github.com/billybonks In your case, it sounds like separate projects with an addon for shared code would solve that?

— Reply to this email directly or view it on GitHub https://github.com/poetic/ember-cli-cordova/issues/32#issuecomment-54006664 .

jakecraige commented 10 years ago

@billybonks One thing I've seen before which I like is some sort of file extension. So things like my-template.android.hbs and my-controller.ios.js I think that could definitely have a place here. Multi-platform support occasionally needs specific things added/disabled for certain platforms and something like that would be a nice way to do it

billybonks commented 10 years ago

That sounds good. Because you can see the platform for each file. On Sep 1, 2014 10:42 PM, "Jake Craige" notifications@github.com wrote:

@billybonks https://github.com/billybonks One thing I've seen before which I like is some sort of file extension. So things like my-template.android.hbs and my-controller.ios.js I think that could definitely have a place here. Multi-platform support occasionally needs specific things added/disabled for certain platforms and something like that would be a nice way to do it

— Reply to this email directly or view it on GitHub https://github.com/poetic/ember-cli-cordova/issues/32#issuecomment-54066978 .

billybonks commented 10 years ago

Ok so if i open android studio using the .project file it works great, my project doesnt contain a studio.app file, so its probably best to point it to the .project, secondly the open command, my command env doesn't contain this command. I see there is a npm package called open, but its not being used in the project. If I attempt to open the the ios app, it does seem as if its using the open command. could you maybe give me a pointer as to how this is working. im trying to understand if it uses the user preferences for a particular file type

jakecraige commented 10 years ago

@billybonks I hadn't heard of that npm project. We should definitely add it and use it instead. I work on a Mac so open works for me. That project looks to be cross platform so it would be a great addition to this.

billybonks commented 10 years ago

what does console.log('This platform is ' + process.platform); return on ios?, i may make a change to the open npm project, because i think its better that we run the command through your run command util. just need to make sure its currently compatible with mac

jakecraige commented 10 years ago

@billybonks I'm guessing you mean in node? I get

> console.log('This platform is ' + process.platform);
This platform is darwin
jakecraige commented 10 years ago

Closing this issue as i'll just use labels for "nice to haves" instead. It will keep the conversation more directed in each issue rather than in one thread of all sorts of thing.

Anyone who wants to implement any of the "nice to haves" feel free to go for it.