Code Monkey home page Code Monkey logo

spring-android's Introduction

Spring for Android

Spring for Android is an extension of the Spring Framework that aims to simplify the development of native Android applications.

Check Out and Build from Source

  1. Clone the repository from GitHub:

     $ git clone git://github.com/SpringSource/spring-android.git
    
  2. Navigate into the cloned repository directory:

     $ cd spring-android
    
  3. The project uses Gradle to build:

     $ ./gradlew build
    

Eclipse

To generate Eclipse metadata (.classpath and .project files), use the following Gradle task:

$ ./gradlew eclipse

Once complete, you may then import the projects into Eclipse as usual:

File -> Import -> Existing projects into workspace

Alternatively, SpringSource Tool Suite has built in support for Gradle, and you can simply import as Gradle projects.

IDEA

To generate IDEA metadata (.iml and .ipr files), use the following Gradle task:

$ ./gradlew idea

JavaDoc

Use the following Gradle task to build the JavaDoc

$ ./gradlew :docs:api

Note: The result will be available in 'docs/build/api'.

Tests

There are three Android Test Projects located in the repository that correspond to the three Spring for Android Modules (Core, Rest Template, and Auth). These projects are executed separately from the Gradle build process. To run the suite of tests, perform the following steps. A parent POM located in the root of the repository will execute each test project on all attached devices and emulators.

  1. Build Spring for Android JARs and install them to the local Maven repository:

     $ ./gradlew build install
    
  2. The tests are run using the Android Maven Plugin:

     $ mvn clean install
    

    Note: Each test project can also be executed individually, by running the previous command from within the respective test project's directory.

Maven

The Android Maven Plugin makes it possible to build Android applications utilizing the power of Maven dependency management.

Dependencies

Spring for Android consists of three modules: Core, Rest Template, and Auth. These are available via the following Maven dependencies:

<dependency>
    <groupId>org.springframework.android</groupId>
    <artifactId>spring-android-core</artifactId>
    <version>${org.springframework.android-version}</version>
</dependency>

<dependency>
    <groupId>org.springframework.android</groupId>
    <artifactId>spring-android-rest-template</artifactId>
    <version>${org.springframework.android-version}</version>
</dependency>

<dependency>
    <groupId>org.springframework.android</groupId>
    <artifactId>spring-android-auth</artifactId>
    <version>${org.springframework.android-version}</version>
</dependency>

Repositories

Three primary repositories are provided by SpringSource: release, milestone, and snapshot. More information can be found at the SpringSource Repository FAQ.

<repository>
	<id>spring-repo</id>
	<name>Spring Repository</name>
	<url>http://repo.springsource.org/release</url>
</repository>	
	
<repository>
	<id>spring-milestone</id>
	<name>Spring Milestone Repository</name>
	<url>http://repo.springsource.org/milestone</url>
</repository>

<repository>
	<id>spring-snapshot</id>
	<name>Spring Snapshot Repository</name>
	<url>http://repo.springsource.org/snapshot</url>
</repository>

spring-android's People

Contributors

koa avatar royclarkson avatar spring-builds avatar sweemer avatar

Stargazers

 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.