All pages in tagged with #Cordova

Writing Your First Unit Test with the Ionic Framework

A quick primer to get started with hybrid app unit testing.

Friday Jul 18, 2014 — 5 minute read — 865 words

Writing tests - both unit and functional tests, is key to the stability and maintainablity of any piece of software. HTML and JavaScript apps are no different. So we’ll cover a super basic overview of writing your first unit test for apps build with the Ionic Framework. While Ionic is a pretty cool framework, unit testing is mysteriously lacking as of the current release (1.0.0). Let’s hope that it starts shipping with skeleton tests out of the box.

Read More

NodeJS Package Conflicts on Ubuntu 14.04

Fixing issues with installing Cordova command-line tools on Ubuntu

Wednesday Jul 16, 2014 — 1 minute read — 157 words

If you’re developing with Cordova/PhoneGap/Ionic apps on the Ubuntu platform, chances are you’re using the cordova-cli package. For a while now, the nodejs and nodejs-legacy packages have collided around a singe man file. Unfortunately, the simple file collision can break the entire package manager and make it difficult to update anything. Add dkpg --force-overwrite Flag The solution is very simple. Just add the dkpg --force-overwrite flag to your apt-get commands. So this: sudo apt-get install cordova-cli becomes: sudo apt-get -o Dpkg::Options::="--force-overwrite" install cordova-cli Of course, you probably don’t want to type that all the time.

Read More

Testing Ionic, Cordova, and PhoneGap Apps with Ripple

Test apps with native plugins without leaving your desktop browser.

Monday Jul 14, 2014 — 4 minute read — 689 words

There don’t seem to be a lot of tutorials on how to set up and test Ionic, PhoneGap, or Cordova apps with native plugins in the comfort of your browser. So we’ll cover the steps necessary to get up and running here so, hopefully, you won’t lose many hours trying to figure it out as I did. We’ll assume that you’ve already met these prerequisites: Already have NPM and NodeJS installed.

Read More

Exclude Files from Ionic Framework Build

Reduce package file site by excluding un-needed files

Sunday Jan 1, 2012 — 2 minute read — 223 words

When building and running apps using the Ionic Framework, it’s often very helpful to exclude certain sets of files. For me, that issue was critical to fix because including a node_modules directory in the build resulted build errors. Of course, it’s also super useful to keep the app size the smallest possible, too. Exlcluding files allows you to control completely what gets in the resulting .apk file. Thankfully, the process is quite simple.

Read More