Skip to content
This repository was archived by the owner on Jan 14, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Release notes for RoboSpice
Version 1.5.0 (planned)
-------------

* Add a new Robospice-Retrofit2 extension which supports a new Retrofit2 library
* TODO : finish migrating samples to gradle and release.
* TODO : inject requests in listeners
* TODO : inject service in requests
Expand Down
2 changes: 1 addition & 1 deletion extensions/robospice-google-http-client-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.4.14-unofficial</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-google-http-client-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.4.14-unofficial</version>
</parent>

<artifactId>robospice-google-http-client-test</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-google-http-client-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.4.14-unofficial</version>
</parent>

<artifactId>robospice-google-http-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/robospice-okhttp-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.4.14-unofficial</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-okhttp-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.4.14-unofficial</version>
</parent>

<artifactId>robospice-okhttp-test</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-okhttp-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.4.14-unofficial</version>
</parent>

<artifactId>robospice-okhttp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/robospice-ormlite-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-parent</artifactId>
<relativePath>../../</relativePath>
<version>1.5.0-SNAPSHOT</version>
<version>1.4.14-unofficial</version>
</parent>

<artifactId>robospice-ormlite-parent</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-ormlite-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.4.14-unofficial</version>
</parent>

<artifactId>robospice-ormlite-test</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-ormlite-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.4.14-unofficial</version>
</parent>

<artifactId>robospice-ormlite</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/robospice-retrofit-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.4.14-unofficial</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-retrofit-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.4.14-unofficial</version>
</parent>

<artifactId>robospice-retrofit-test</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-retrofit-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.4.14-unofficial</version>
</parent>

<artifactId>robospice-retrofit</artifactId>
Expand Down
69 changes: 69 additions & 0 deletions extensions/robospice-retrofit2-parent/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<!-- Sonatype config to publish on Maven Central -->
<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-parent</artifactId>
<version>1.4.14-unofficial</version>
<relativePath>../../</relativePath>
</parent>

<artifactId>robospice-retrofit2-parent</artifactId>
<packaging>pom</packaging>
<name>Robospice - Extension Retrofit2 Module Parent</name>
<description>RoboSpice Retrofit2 module parent</description>

<modules>
<!-- library -->
<module>robospice-retrofit2</module>
<!-- test app -->
<module>robospice-retrofit2-test</module>
</modules>

<properties>
<retrofit.version>[2.0.0,)</retrofit.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice</artifactId>
<!-- Versions 1.4.14 and higher -->
<version>[1.4.14,)</version>
</dependency>

<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>retrofit</artifactId>
<version>${retrofit.version}</version>
</dependency>

<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>converter-jackson</artifactId>
<version>${retrofit.version}</version>
</dependency>

<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>converter-gson</artifactId>
<version>${retrofit.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.octo.android.robospice.retrofit2.test"
android:versionCode="1"
android:versionName="0.0.1-SNAPSHOT" >

<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="17" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

<application
android:allowBackup="false"
android:icon="@android:drawable/ic_lock_lock" >
<uses-library android:name="android.test.runner" />

<service
android:name=".TestRetrofitGsonSpiceService"
android:exported="false" />
<service
android:name=".TestRetrofitJacksonSpiceService"
android:exported="false" />
</application>

<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.octo.android.robospice.retrofit2.test" />

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Project target.
target=android-10
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
</lint>
118 changes: 118 additions & 0 deletions extensions/robospice-retrofit2-parent/robospice-retrofit2-test/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-retrofit2-parent</artifactId>
<version>1.4.14-unofficial</version>
</parent>

<artifactId>robospice-retrofit2-test</artifactId>
<packaging>apk</packaging>
<name>Robospice - Extension Retrofit2 Module tests</name>

<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android-test</artifactId>
<scope>provided</scope>
</dependency>

<!-- Common Google Http Java Client Module Dependency Dependencies -->
<dependency>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-retrofit2</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>xpp3</groupId>
<artifactId>xpp3</artifactId>
</exclusion>
<exclusion>
<groupId>stax</groupId>
<artifactId>stax-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>converter-jackson</artifactId>
</dependency>
<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>converter-gson</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.4.2</version>
</dependency>
<!-- http://stackoverflow.com/questions/5591811/ignoring-innerclasses-attribute-warning-is-killing-eclipse -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<scope>provided</scope>
</dependency>
<!-- Dependencies for testing -->
<dependency>
<groupId>com.google.mockwebserver</groupId>
<artifactId>mockwebserver</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
com.jayway.maven.plugins.android.generation2
</groupId>
<artifactId>
android-maven-plugin
</artifactId>
<versionRange>
[3.8.1,)
</versionRange>
<goals>
<goal>consume-aar</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-7
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading