Skip to content

Commit e20ec3a

Browse files
author
Julien Cholin
authored
[Release] Version 3.3.2
2 parents 03fb4c2 + 3e5c2ed commit e20ec3a

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# xee-sdk-android
22

33
[![Build Status](https://api.travis-ci.org/xee-lab/xee-sdk-android.svg?branch=master)](https://travis-ci.org/xee-lab/xee-sdk-android)
4-
[![Release 3.3.1](https://img.shields.io/badge/Version-3.3.1-green.svg)](https://github.com/xee-lab/xee-sdk-android/releases/tag/3.3.1)
4+
[![Release 3.3.2](https://img.shields.io/badge/Version-3.3.2-green.svg)](https://github.com/xee-lab/xee-sdk-android/releases/tag/3.3.2)
55
[![License Apache](https://img.shields.io/badge/License-Apache%202-blue.svg)](./LICENSE)
66

77
## Purpose
@@ -33,8 +33,8 @@ Then just add it to the dependencies in the `build.gradle` **module** wherever
3333

3434
```groovy
3535
dependencies {
36-
compile 'com.github.xee-lab.xee-sdk-android:sdk-core:3.3.1'
37-
compile 'com.github.xee-lab.xee-sdk-android:sdk-api:3.3.1'
36+
compile 'com.github.xee-lab.xee-sdk-android:sdk-core:3.3.2'
37+
compile 'com.github.xee-lab.xee-sdk-android:sdk-api:3.3.2'
3838
}
3939
```
4040

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
org.gradle.daemon=true
22
org.gradle.parallel=true
33
ANDROID_LIB_VERSION=25.3.1
4-
SDK_VERSION=3.3.1
4+
SDK_VERSION=3.3.2
55
SDK_GROUP=com.xee

sdk-api/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ dependencies {
6565

6666
compile "com.android.support:support-annotations:${ANDROID_LIB_VERSION}"
6767
compile "com.android.support:support-v4:${ANDROID_LIB_VERSION}"
68+
compile "com.android.support:appcompat-v7:${ANDROID_LIB_VERSION}"
6869
}
6970

7071
evaluationDependsOn(':sdk-core')

sdk-api/src/main/java/com/xee/auth/SignInButton.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import android.support.annotation.DimenRes;
2727
import android.support.annotation.NonNull;
2828
import android.support.v4.content.ContextCompat;
29+
import android.support.v7.widget.AppCompatButton;
2930
import android.util.AttributeSet;
3031
import android.util.DisplayMetrics;
3132
import android.view.KeyEvent;
@@ -37,7 +38,7 @@
3738

3839
import java.lang.ref.WeakReference;
3940

40-
public final class SignInButton extends Button {
41+
public final class SignInButton extends AppCompatButton {
4142

4243
private int mSizeIcon;
4344
private int mSizeNormal;
@@ -155,7 +156,7 @@ private void setBtnTheme(int theme) {
155156
case 0:
156157
mDrawable = ContextCompat.getDrawable(getContext(), R.drawable.xee_auth_btn_logo_black);
157158
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
158-
setBackgroundTintList(getContext().getResources().getColorStateList(R.color.sign_in_button_bg_white, null));
159+
setBackgroundTintList(ContextCompat.getColorStateList(getContext(), R.color.sign_in_button_bg_white));
159160
} else {
160161
setBackground(ContextCompat.getDrawable(getContext(), R.drawable.xee_auth_btn_bg_white));
161162
}
@@ -164,7 +165,7 @@ private void setBtnTheme(int theme) {
164165
case 1:
165166
mDrawable = ContextCompat.getDrawable(getContext(), R.drawable.xee_auth_btn_logo_white);
166167
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
167-
setBackgroundTintList(getContext().getResources().getColorStateList(R.color.sign_in_button_bg_grey, null));
168+
setBackgroundTintList(ContextCompat.getColorStateList(getContext(), R.color.sign_in_button_bg_grey));
168169
} else {
169170
setBackground(ContextCompat.getDrawable(getContext(), R.drawable.xee_auth_btn_bg_grey));
170171
}
@@ -173,7 +174,7 @@ private void setBtnTheme(int theme) {
173174
case 2:
174175
mDrawable = ContextCompat.getDrawable(getContext(), R.drawable.xee_auth_btn_logo_white);
175176
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
176-
setBackgroundTintList(getContext().getResources().getColorStateList(R.color.sign_in_button_bg_green, null));
177+
setBackgroundTintList(ContextCompat.getColorStateList(getContext(), R.color.sign_in_button_bg_green));
177178
} else {
178179
setBackground(ContextCompat.getDrawable(getContext(), R.drawable.xee_auth_btn_bg_green));
179180
}

0 commit comments

Comments
 (0)