Skip to content

Commit 73571fb

Browse files
committed
Merge branch 'master' into version-1.0.0-dev
Change-Id: I09194ea6d170f8d1fa0aa0d7d8e7d20367e55aba
2 parents d41f3bd + c0dc65d commit 73571fb

25 files changed

+104
-104
lines changed

.travis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ android:
55
components:
66
- platform-tools
77
- tools
8-
- build-tools-23.0.3
9-
- android-23
8+
- build-tools-24.0.3
9+
- android-24
10+
11+
# Extras
1012
- extra-google-google_play_services
1113
- extra-google-m2repository
1214
- extra-android-m2repository
1315
- addon-google_apis-google-24
14-
licenses:
15-
- 'android-sdk-preview-license-52d11cd2'
16-
- 'android-sdk-license-.+'
17-
- 'google-gdk-license-.+'
1816
script:
1917
- ./gradlew clean :library:testAll :library:prepareArtifacts

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ libraries.
2727

2828
```groovy
2929
dependencies {
30-
// Single target that includes all FirebaseUI libraries
31-
compile 'com.firebaseui:firebase-ui:0.6.0'
32-
3330
// FirebaseUI Database only
34-
compile 'com.firebaseui:firebase-ui-database:0.6.0'
31+
compile 'com.firebaseui:firebase-ui-database:0.6.1'
3532
3633
// FirebaseUI Auth only
37-
compile 'com.firebaseui:firebase-ui-auth:0.6.0'
34+
compile 'com.firebaseui:firebase-ui-auth:0.6.1'
3835
3936
// FirebaseUI Storage only
40-
compile 'com.firebaseui:firebase-ui-storage:0.6.0'
37+
compile 'com.firebaseui:firebase-ui-storage:0.6.1'
38+
39+
// Single target that includes all FirebaseUI libraries above
40+
compile 'com.firebaseui:firebase-ui:0.6.1'
4141
}
4242
```
4343

@@ -59,14 +59,15 @@ firebase-ui-storage
5959
```
6060

6161
Each version of FirebaseUI has dependency on a fixed version of these libraries, defined as the variable `firebase_version`
62-
in `common/constants.gradle`. If you are using any dependencies in your app of the form
62+
in `common/constants.gradle`. If you are using any dependencies in your app of the form
6363
`compile 'com.google.firebase:firebase-*:x.y.z'` or `compile 'com.google.android.gms:play-services-*:x.y.z'`
6464
you need to make sure that you use the same version that your chosen version of FirebaseUI requires.
6565

6666
For convenience, here are some examples:
6767

6868
| FirebaseUI Version | Firebase/Play Services Version |
6969
|--------------------|--------------------------------|
70+
| 0.6.1 | 9.6.1 |
7071
| 0.6.0 | 9.6.0 |
7172
| 0.5.3 | 9.4.0 |
7273
| 0.4.4 | 9.4.0 |

auth/README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ Gradle, add:
4343

4444
```groovy
4545
dependencies {
46-
// ...
47-
compile 'com.firebaseui:firebase-ui-auth:0.6.0'
46+
// ...
47+
compile 'com.firebaseui:firebase-ui-auth:0.6.1'
4848
}
4949
```
5050

5151
If instead your project uses Maven, add:
5252

5353
```xml
5454
<dependency>
55-
<groupId>com.firebaseui</groupId>
56-
<artifactId>firebase-ui-auth</artifactId>
57-
<version>0.6.0</version>
55+
<groupId>com.firebaseui</groupId>
56+
<artifactId>firebase-ui-auth</artifactId>
57+
<version>0.6.1</version>
5858
</dependency>
5959
```
6060

@@ -72,8 +72,8 @@ the [Facebook developer dashboard](https://developers.facebook.com):
7272

7373
```xml
7474
<resources>
75-
<!-- ... -->
76-
<string name="facebook_application_id" translatable="false">APPID</string>
75+
<!-- ... -->
76+
<string name="facebook_application_id" translatable="false">APPID</string>
7777
</resources>
7878
```
7979

@@ -98,9 +98,9 @@ whether a
9898
```java
9999
FirebaseAuth auth = FirebaseAuth.getInstance();
100100
if (auth.getCurrentUser() != null) {
101-
// already signed in
101+
// already signed in
102102
} else {
103-
// not signed in
103+
// not signed in
104104
}
105105
```
106106

@@ -260,17 +260,17 @@ completed once all necessary sign-out operations are completed:
260260

261261
```java
262262
public void onClick(View v) {
263-
if (v.getId() == R.id.sign_out) {
264-
AuthUI.getInstance()
265-
.signOut(this)
266-
.addOnCompleteListener(new OnCompleteListener<Void>() {
263+
if (v.getId() == R.id.sign_out) {
264+
AuthUI.getInstance()
265+
.signOut(this)
266+
.addOnCompleteListener(new OnCompleteListener<Void>() {
267267
public void onComplete(@NonNull Task<Void> task) {
268-
// user is now signed out
269-
startActivity(new Intent(MyActivity.this, SignInActivity.class));
270-
finish();
268+
// user is now signed out
269+
startActivity(new Intent(MyActivity.this, SignInActivity.class));
270+
finish();
271271
}
272-
});
273-
}
272+
});
273+
}
274274
}
275275
```
276276

@@ -358,8 +358,8 @@ redefine a string to change it, for example:
358358

359359
```java
360360
<resources>
361-
<!-- was "Signing up..." -->
362-
<string name="progress_dialog_signing_up">Creating your shiny new account...</string>
361+
<!-- was "Signing up..." -->
362+
<string name="progress_dialog_signing_up">Creating your shiny new account...</string>
363363
</resources>
364364
```
365365

auth/build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ android {
3232

3333
dependencies {
3434
testCompile 'junit:junit:4.12'
35-
testCompile 'org.mockito:mockito-core:1.10.19'
36-
testCompile "org.robolectric:robolectric:3.1.1"
37-
compile "com.android.support:appcompat-v7:${project.ext.support_library_version}"
35+
testCompile 'org.mockito:mockito-core:2.2.0'
36+
testCompile 'org.robolectric:robolectric:3.1.2'
37+
// See https://github.com/robolectric/robolectric/issues/1932#issuecomment-219796474
38+
testCompile 'org.khronos:opengl-api:gl1.1-android-2.1_r1'
39+
3840
compile 'com.facebook.android:facebook-android-sdk:4.14.1'
3941
compile("com.twitter.sdk.android:twitter:2.0.0@aar") {
4042
transitive = true;

auth/src/main/java/com/firebase/ui/auth/ui/account_link/WelcomeBackIDPPrompt.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ protected void onCreate(Bundle savedInstanceState) {
9090
if (mIdpProvider == null) {
9191
getIntent().putExtra(
9292
ExtraConstants.EXTRA_ERROR_MESSAGE,
93-
"Firebase login successful. Account linking failed due to provider not "
94-
+ "enabled by application");
93+
"Firebase login successful. Account linking failed due to provider not enabled by application");
9594
finish(RESULT_CANCELED, getIntent());
9695
return;
9796
}

auth/src/main/java/com/firebase/ui/auth/ui/account_link/WelcomeBackPasswordPrompt.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ protected void onCreate(Bundle savedInstanceState) {
8282
TextView bodyTextView = ((TextView) findViewById(R.id.welcome_back_password_body));
8383
bodyTextView.setText(spannableStringBuilder);
8484

85+
((TextInputLayout) findViewById(R.id.password_layout)).setPasswordVisibilityToggleEnabled(false);
86+
8587
// Click listeners
8688
findViewById(R.id.button_done).setOnClickListener(this);
8789
findViewById(R.id.toggle_visibility).setOnClickListener(

auth/src/main/java/com/firebase/ui/auth/ui/email/ImageFocusTransparencyChanger.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,5 @@ public void onFocusChange(View v, boolean hasFocus) {
3939
} else {
4040
mTogglePasswordImage.setAlpha(mSlightlyVisible);
4141
}
42-
4342
}
4443
}

auth/src/main/java/com/firebase/ui/auth/ui/email/RegisterEmailActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ public class RegisterEmailActivity extends AppCompatBase implements View.OnClick
6666
private EmailFieldValidator mEmailFieldValidator;
6767
private PasswordFieldValidator mPasswordFieldValidator;
6868
private RequiredFieldValidator mNameValidator;
69-
private ImageView mTogglePasswordImage;
7069

7170
@Override
7271
protected void onCreate(Bundle savedInstanceState) {
@@ -83,14 +82,15 @@ protected void onCreate(Bundle savedInstanceState) {
8382
getResources().getValue(R.dimen.slightly_visible_icon, slightlyVisibleIcon, true);
8483

8584
mPasswordEditText = (EditText) findViewById(R.id.password);
86-
mTogglePasswordImage = (ImageView) findViewById(R.id.toggle_visibility);
85+
((TextInputLayout) findViewById(R.id.password_layout)).setPasswordVisibilityToggleEnabled(false);
86+
ImageView togglePasswordImage = (ImageView) findViewById(R.id.toggle_visibility);
8787

8888
mPasswordEditText.setOnFocusChangeListener(new ImageFocusTransparencyChanger(
89-
mTogglePasswordImage,
89+
togglePasswordImage,
9090
visibleIcon.getFloat(),
9191
slightlyVisibleIcon.getFloat()));
9292

93-
mTogglePasswordImage.setOnClickListener(new PasswordToggler(mPasswordEditText));
93+
togglePasswordImage.setOnClickListener(new PasswordToggler(mPasswordEditText));
9494

9595
mNameEditText = (EditText) findViewById(R.id.name);
9696

auth/src/main/java/com/firebase/ui/auth/ui/email/SignInActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public class SignInActivity extends AppCompatBase implements View.OnClickListene
5050
private EditText mPasswordEditText;
5151
private EmailFieldValidator mEmailValidator;
5252
private RequiredFieldValidator mPasswordValidator;
53-
private ImageView mTogglePasswordImage;
5453

5554
@Override
5655
protected void onCreate(Bundle savedInstanceState) {
@@ -68,14 +67,15 @@ protected void onCreate(Bundle savedInstanceState) {
6867
getResources().getValue(R.dimen.slightly_visible_icon, slightlyVisibleIcon, true);
6968

7069
mPasswordEditText = (EditText) findViewById(R.id.password);
71-
mTogglePasswordImage = (ImageView) findViewById(R.id.toggle_visibility);
70+
((TextInputLayout) findViewById(R.id.password_layout)).setPasswordVisibilityToggleEnabled(false);
71+
ImageView togglePasswordImage = (ImageView) findViewById(R.id.toggle_visibility);
7272

7373
mPasswordEditText.setOnFocusChangeListener(new ImageFocusTransparencyChanger(
74-
mTogglePasswordImage,
74+
togglePasswordImage,
7575
visibleIcon.getFloat(),
7676
slightlyVisibleIcon.getFloat()));
7777

78-
mTogglePasswordImage.setOnClickListener(new PasswordToggler(mPasswordEditText));
78+
togglePasswordImage.setOnClickListener(new PasswordToggler(mPasswordEditText));
7979

8080
mEmailValidator = new EmailFieldValidator((TextInputLayout) findViewById(R.id
8181
.email_layout));

auth/src/main/res/layout/sign_in_layout.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
android:layout_height="wrap_content">
3535

3636
<EditText
37-
style="@style/FirebaseUI.EditText"
37+
style="@style/FirebaseUI.EditText.PasswordField"
3838
android:id="@+id/password"
3939
android:hint="@string/password_hint"
4040
/>

0 commit comments

Comments
 (0)