Skip to content

Commit

Permalink
Release 0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
SandroMachado committed Dec 23, 2015
1 parent cb2b7b4 commit 687a3d5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
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;
import com.uphold.uphold_android_sdk.model.Card;
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;
Expand Down Expand Up @@ -62,7 +62,7 @@ public Promise<Card> 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
Expand All @@ -83,7 +83,7 @@ public Promise<Card> 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
Expand All @@ -104,7 +104,7 @@ public Promise<Card> 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)")));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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";

}

0 comments on commit 687a3d5

Please sign in to comment.