![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ember-cli-cordova
Advanced tools
A tool for creating hybrid apps using a combination of ember-cli and cordova
requires ember-cli >= 0.0.40
Provide a toolchain tightly integrated with ember-cli to make developing hybrid apps with cordova and ember as simple as possible.
Inside of a generated ember-cli project run:
npm install --save-dev ember-cli-cordova
Then you need to initialize the cordova part. Mobile app's require a com identifier/reverse style domain so we need to specify it here:
ember generate cordova-init com.reverse.domain
This will generate a base cordova iOS app and store it within the cordova/
directory. If you would like to add other platforms, you can run the
ember cordova
command:
ember cordova platform add android
You must have cordova installed globally for this command to work.
ember g cordova-init com.reverse.domain platform:android
Required generator
that sets up the cordova project with a few tweaks to the ember appember g cordova-starter-kit
Adds some packages and files that makes up the
base setup for projects I develop.ember cordova:open
open xcode projectember cordova:build --environment production --platform ios
build cordova projectember cordova:archive 0.0.2 --environment staging --commit --tag
archive ios project with xcodeember cordova:prepare
needs to be run after cloning a projectember cordova
Passes commands(plugin(s), platform(s), run, emulate) and arguments to the cordova commandember help
ember cli help with a section for addon provided commands as wellIn the root folder you can run standard ember-cli commands and develop in the browser. All cordova commands you need are wrapped by ember-cli-cordova, see the above section on commands for help.
Recommended Workflow Develop as much as you can in the browser because it provides the quickest feedback. Every now and then build the cordova version and make sure it's working properly.
If you are working with a native plugin and need the app in the simulator, enable the rebuild option in the configuration as described below.
If you do not have rebuildOnChange enabled(described in the configuration
section), after making a change to the ember app, you must run ember cordova:build
to update the build to contain those changes. You can then
relaunch the app by building inside of xcode/eclipse or running cordova emulate <platform>
All configuration is currently optional. Configuration will be done in your app's config/environment.js file. You need to set it up like this:
All options are related to the rebuild process.
ENV.cordova = {
// Rebuild the cordova project on file changes. Blocks the server until it's
// finished.
//
// default: false
rebuildOnChange: true,
// Don't block the server during the rebuild
//
// default: false
rebuildAsync: true,
// Run the cordova emulate command after the build is finished
//
// default: false
emulate: true
// Which platform to build and/or emulate
//
// default: 'ios'
platform: 'ios'
};
I recommend only enabling this when you need it. It takes awhile to rebuild and will slow everything down. The rebuild option is most useful when developing or working with a cordova plugin when you need the javascript updated along with the native component.
To build for different environments you run the ember cordova:build
command with
the options you want
This project is mostly a combination of other projects, I plan on writing some guides on the basic of how to use it and what it contains, until then here is some info about some dependencies it uses.
Current working directory is not a Cordova-based project.
when I run a cordova commandIf you are running a cli command, make sure the dist directory exists. You can
run ember build
to create it if it doesnt.
ember cordova:archive
command I get an Xcode build error saying the scheme doesnt existError example:
ld[10658:1007] WARNING: Timed out waiting for <IDEWorkspace,
0x7fc00d207d40>/"runContextManager.runContexts" (10.000125 seconds elapsed)
xcodebuild: error: The project 'MyApp' does not contain a scheme named 'MyApp'.
This is caused by now having opened the project in Xcode before. It
automatically generates some info it needs to archive the project. To fix this,
run ember cordova:open
and let it open in Xcode. After you have done this once you
can just run the archive
command again and it shouldn't give you any more
trouble.
git clone https://github.com/poetic/ember-cli-cordova.git
cd ember-cli-cordova
npm link
ember new CordovaTest
cd CordovaTest
npm install --save-dev ember-cli-cordova
npm link ember-cli-cordova
After this, any changes you make to the cloned repo will be instantly reflected in the test app you generated. It just symlinks the node_modules folder.
You can find an example app using this here: jakecraige/ember-cli-cordova-example-app
FAQs
A tool for creating hybrid apps using a combination of ember-cli and cordova
The npm package ember-cli-cordova receives a total of 3 weekly downloads. As such, ember-cli-cordova popularity was classified as not popular.
We found that ember-cli-cordova demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.