From 687a3d50334fe8d943a9abb462b115e08f3df650 Mon Sep 17 00:00:00 2001 From: Sandro Machado Date: Wed, 23 Dec 2015 14:32:51 +0000 Subject: [PATCH] Release 0.0.5 --- CHANGELOG.md | 3 +++ README.md | 4 ++-- .../restadapter/UpholdRestAdapterTest.java | 18 +++++++++--------- .../config/GlobalConfigurations.java | 2 +- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ee09a9..2c5e912 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## Changelog +### 0.0.5 / 2015-12-23 +- [#66](https://github.com/uphold/uphold-sdk-android/pull/66) Add transaction fees model (@SandroMachado) + ### 0.0.4 / 2015-11-25 - [#64](https://github.com/uphold/uphold-sdk-android/pull/64) Add the normalized model to the transaction (@SandroMachado) - [#63](https://github.com/uphold/uphold-sdk-android/pull/63) Improve rest adapter log level detection (@SandroMachado) diff --git a/README.md b/README.md index 285421e..7894340 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,8 @@ repositories { } dependencies { - // Add the classifier `sandboxRelease`, i.e. `'com.github.uphold:uphold-sdk-android:0.0.4:sandboxRelease@aar'`, to use the sandbox environment. - compile ('com.github.uphold:uphold-sdk-android:0.0.4@aar') { + // Add the classifier `sandboxRelease`, i.e. `'com.github.uphold:uphold-sdk-android:0.0.5:sandboxRelease@aar'`, to use the sandbox environment. + compile ('com.github.uphold:uphold-sdk-android:0.0.5@aar') { transitive = true } } diff --git a/src/app/src/androidTest/java/com/uphold/uphold_android_sdk/test/integration/client/restadapter/UpholdRestAdapterTest.java b/src/app/src/androidTest/java/com/uphold/uphold_android_sdk/test/integration/client/restadapter/UpholdRestAdapterTest.java index 832a7aa..94ce8f2 100644 --- a/src/app/src/androidTest/java/com/uphold/uphold_android_sdk/test/integration/client/restadapter/UpholdRestAdapterTest.java +++ b/src/app/src/androidTest/java/com/uphold/uphold_android_sdk/test/integration/client/restadapter/UpholdRestAdapterTest.java @@ -1,10 +1,10 @@ package com.uphold.uphold_android_sdk.test.integration.client.restadapter; +import android.support.test.runner.AndroidJUnit4; +import android.test.suitebuilder.annotation.SmallTest; + import com.darylteo.rx.promises.java.Promise; import com.darylteo.rx.promises.java.functions.RepromiseFunction; - -import junit.framework.Assert; - import com.uphold.uphold_android_sdk.BuildConfig; import com.uphold.uphold_android_sdk.client.errorhandling.UpholdRetrofitErrorHandling; import com.uphold.uphold_android_sdk.client.restadapter.UpholdRestAdapter; @@ -12,12 +12,12 @@ import com.uphold.uphold_android_sdk.model.User; import com.uphold.uphold_android_sdk.test.util.Fixtures; import com.uphold.uphold_android_sdk.test.util.MockRestAdapter; + +import junit.framework.Assert; + import org.junit.Test; import org.junit.runner.RunWith; -import android.support.test.runner.AndroidJUnit4; -import android.test.suitebuilder.annotation.SmallTest; - import retrofit.RestAdapter; import retrofit.client.Header; import retrofit.client.Request; @@ -62,7 +62,7 @@ public Promise call(UpholdRestAdapter adapter) { Assert.assertEquals(request.getHeaders().size(), 2); Assert.assertTrue(request.getHeaders().contains(new Header("Authorization", "Bearer fuz"))); - Assert.assertTrue(request.getHeaders().contains(new Header("User-Agent", "uphold-android-sdk/0.0.3 (https://github.com/uphold/uphold-sdk-android)"))); + Assert.assertTrue(request.getHeaders().contains(new Header("User-Agent", "uphold-android-sdk/0.0.5 (https://github.com/uphold/uphold-sdk-android)"))); } @Test @@ -83,7 +83,7 @@ public Promise call(UpholdRestAdapter adapter) { Request request = adapter.getRequest(); Assert.assertEquals(request.getHeaders().size(), 1); - Assert.assertTrue(request.getHeaders().contains(new Header("User-Agent", "uphold-android-sdk/0.0.3 (https://github.com/uphold/uphold-sdk-android)"))); + Assert.assertTrue(request.getHeaders().contains(new Header("User-Agent", "uphold-android-sdk/0.0.5 (https://github.com/uphold/uphold-sdk-android)"))); } @Test @@ -104,7 +104,7 @@ public Promise call(UpholdRestAdapter adapter) { Request request = adapter.getRequest(); Assert.assertEquals(request.getHeaders().size(), 1); - Assert.assertTrue(request.getHeaders().contains(new Header("User-Agent", "uphold-android-sdk/0.0.3 (https://github.com/uphold/uphold-sdk-android)"))); + Assert.assertTrue(request.getHeaders().contains(new Header("User-Agent", "uphold-android-sdk/0.0.5 (https://github.com/uphold/uphold-sdk-android)"))); } } diff --git a/src/app/src/main/java/com/uphold/uphold_android_sdk/config/GlobalConfigurations.java b/src/app/src/main/java/com/uphold/uphold_android_sdk/config/GlobalConfigurations.java index eac867c..b9e335d 100644 --- a/src/app/src/main/java/com/uphold/uphold_android_sdk/config/GlobalConfigurations.java +++ b/src/app/src/main/java/com/uphold/uphold_android_sdk/config/GlobalConfigurations.java @@ -6,7 +6,7 @@ public class GlobalConfigurations { - public static final String UPHOLD_SDK_VERSION = "0.0.3"; + public static final String UPHOLD_SDK_VERSION = "0.0.5"; public static final String SDK_GITHUB_URL = "https://github.com/uphold/uphold-sdk-android"; }