Giter VIP home page Giter VIP logo

android_app_example's Introduction

Android Sample App

Spike on setting up an Android project using:

IntelliJ IDEA Maven Android Roboguice Robolectric Mockito ...

Some low level Api code comes from the Pivotal Android IntellJ Starter project. Namely: Http and EasySSLSocketFactory.

The rest of the app was entirely test driven.

The Maven setup is almost ready to use. You will need fetch the Android jar file manually (using the Android SDK), then install it following the instructions on the Manven Android Plugin website:

https://code.google.com/p/maven-android-plugin/wiki/GettingStarted

Building Robolectric

###Make sure you have maps

$ mvn install:install-file \
    -Dfile=$ANDROID_HOME/add-ons/addon-google_apis-google-16/libs/maps.jar \
    -DgroupId=com.google.android.maps \
    -DartifactId=maps \
    -Dversion=16_r2 \
    -Dpackaging=jar

###Build package from fork

From the robolectric submodule directory

$ mvn clean package

or

$ rake robolectric:package

###Install package from fork

From the robolectric submodule directory

$ mvn install:install-file \
    -Dfile=target/robolectric-2.0-alpha-3-SNAPSHOT.jar \
    -DgroupId=org.robolectric \
    -DartifactId=robolectric \
    -Dversion=2.0-alpha-3-FORKED \
    -Dpackaging=jar

$ cp pom.xml \
~/.m2/repository/org/robolectric/robolectric/2.0-alpha-3-FORKED/robolectric-2.0-alpha-3-FORKED.pom

or

$ rake robolectric:install

android_app_example's People

Contributors

dam5s avatar

Watchers

 avatar  avatar

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.