GithubHelp home page GithubHelp logo

Nice to haves about ember-cli-cordova HOT 14 CLOSED

jakecraige avatar jakecraige commented on July 3, 2024
Nice to haves

from ember-cli-cordova.

Comments (14)

Globegitter avatar Globegitter commented on July 3, 2024

@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.

from ember-cli-cordova.

jakecraige avatar jakecraige commented on July 3, 2024

@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

from ember-cli-cordova.

Globegitter avatar Globegitter commented on July 3, 2024

@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.

from ember-cli-cordova.

jakecraige avatar jakecraige commented on July 3, 2024

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" [email protected] 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
#32 (comment)
.

from ember-cli-cordova.

billybonks avatar billybonks commented on July 3, 2024

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

from ember-cli-cordova.

jakecraige avatar jakecraige commented on July 3, 2024

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

from ember-cli-cordova.

billybonks avatar billybonks commented on July 3, 2024

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" [email protected] 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
#32 (comment)
.

from ember-cli-cordova.

jakecraige avatar jakecraige commented on July 3, 2024

@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

from ember-cli-cordova.

billybonks avatar billybonks commented on July 3, 2024

That sounds good. Because you can see the platform for each file.
On Sep 1, 2014 10:42 PM, "Jake Craige" [email protected] 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
#32 (comment)
.

from ember-cli-cordova.

billybonks avatar billybonks commented on July 3, 2024

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

from ember-cli-cordova.

jakecraige avatar jakecraige commented on July 3, 2024

@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.

from ember-cli-cordova.

billybonks avatar billybonks commented on July 3, 2024

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

from ember-cli-cordova.

jakecraige avatar jakecraige commented on July 3, 2024

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

> console.log('This platform is ' + process.platform);
This platform is darwin

from ember-cli-cordova.

jakecraige avatar jakecraige commented on July 3, 2024

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.

from ember-cli-cordova.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.