-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Update deps #703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update deps #703
Changes from 23 commits
4776096
1d9c471
51b932f
0c1f207
de8d549
9138349
13d2444
364958b
b4097c2
d499c8c
77b7a0a
0b2a480
6361699
d7fd275
bb1c258
6758f08
6c0b4c6
695db3d
60def93
bab6218
c992923
b537809
80a0b4e
5ead48f
ef9c256
542b36c
0f0b667
6b11ab4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,21 +99,20 @@ public View onCreateView(LayoutInflater inflater, | |
|
||
View v = inflater.inflate(R.layout.register_email_layout, container, false); | ||
|
||
mPasswordFieldValidator = new PasswordFieldValidator( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we drop this non-dependency change from this PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup to both of your comments since I had to downgrade the gradle plugin, otherwise lint will complain. |
||
(TextInputLayout) v.findViewById(R.id.password_layout), | ||
getResources().getInteger(R.integer.min_password_length)); | ||
mNameValidator = new RequiredFieldValidator( | ||
(TextInputLayout) v.findViewById(R.id.name_layout)); | ||
mEmailFieldValidator = new EmailFieldValidator( | ||
(TextInputLayout) v.findViewById(R.id.email_layout)); | ||
|
||
mEmailEditText = (EditText) v.findViewById(R.id.email); | ||
mNameEditText = (EditText) v.findViewById(R.id.name); | ||
mPasswordEditText = (EditText) v.findViewById(R.id.password); | ||
mAgreementText = (TextView) v.findViewById(R.id.create_account_text); | ||
mEmailInput = (TextInputLayout) v.findViewById(R.id.email_layout); | ||
mPasswordInput = (TextInputLayout) v.findViewById(R.id.password_layout); | ||
|
||
mPasswordFieldValidator = new PasswordFieldValidator( | ||
mPasswordInput, | ||
getResources().getInteger(R.integer.min_password_length)); | ||
mNameValidator = new RequiredFieldValidator( | ||
(TextInputLayout) v.findViewById(R.id.name_layout)); | ||
mEmailFieldValidator = new EmailFieldValidator(mEmailInput); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is really cool! Lint has a new check for copypasta errors and it detected that we were calling |
||
|
||
ImeHelper.setImeOnDoneListener(mPasswordEditText, this); | ||
|
||
mEmailEditText.setOnFocusChangeListener(this); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,33 +31,6 @@ | |
<item name="android:fontFamily">sans-serif</item> | ||
</style> | ||
|
||
<style name="FirebaseUI.Text.T01"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we drop this non-dependency change from this PR? |
||
<item name="android:textSize">112sp</item> | ||
</style> | ||
|
||
<style name="FirebaseUI.Text.T02"> | ||
<item name="android:textSize">64sp</item> | ||
</style> | ||
|
||
<style name="FirebaseUI.Text.T03"> | ||
<item name="android:textSize">48sp</item> | ||
</style> | ||
|
||
<style name="FirebaseUI.Text.T04"> | ||
<item name="android:textSize">36sp</item> | ||
<item name="android:lineSpacingExtra">12sp</item> | ||
</style> | ||
|
||
<style name="FirebaseUI.Text.T05"> | ||
<item name="android:textSize">24sp</item> | ||
<item name="android:lineSpacingExtra">8sp</item> | ||
</style> | ||
|
||
<style name="FirebaseUI.Text.T06"> | ||
<item name="android:textSize">18sp</item> | ||
<item name="android:lineSpacingExtra">6sp</item> | ||
</style> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint complained about this, turns out we weren't using them. |
||
|
||
<style name="FirebaseUI.Text.T07"> | ||
<item name="android:textSize">20sp</item> | ||
<item name="android:lineSpacingExtra">4sp</item> | ||
|
@@ -69,27 +42,6 @@ | |
<item name="android:lineSpacingExtra">8sp</item> | ||
</style> | ||
|
||
<style name="FirebaseUI.Text.T09"> | ||
<item name="android:textSize">16sp</item> | ||
<item name="android:lineSpacingExtra">4sp</item> | ||
<item name="android:textStyle">bold</item> | ||
</style> | ||
|
||
<style name="FirebaseUI.Text.T11"> | ||
<item name="android:textSize">14sp</item> | ||
<item name="android:lineSpacingExtra">6sp</item> | ||
<item name="android:textStyle">bold</item> | ||
</style> | ||
|
||
<style name="FirebaseUI.Text.T12"> | ||
<item name="android:textSize">12sp</item> | ||
<item name="android:lineSpacingExtra">4sp</item> | ||
</style> | ||
|
||
<style name="FirebaseUI.Text.T13"> | ||
<item name="android:textSize">10sp</item> | ||
</style> | ||
|
||
<!-- Common styles --> | ||
<style name="FirebaseUI.Button" parent="@style/Widget.AppCompat.Button.Colored"> | ||
<item name="android:layout_width">wrap_content</item> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,9 @@ buildscript { | |
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:gradle:2.3.0' | ||
classpath 'com.android.tools.build:gradle:2.3.1' | ||
classpath 'com.google.gms:google-services:3.0.0' | ||
classpath 'io.fabric.tools:gradle:1.+' | ||
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' | ||
} | ||
} | ||
|
@@ -25,20 +24,6 @@ allprojects { | |
} | ||
} | ||
|
||
// TODO Remove once either Facebook or Robolectric fix the crash: https://github.com/robolectric/robolectric/issues/2579#issuecomment-276526911 | ||
gradle.taskGraph.whenReady { graph -> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yay, Facebook merged my PR! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice! Isn't there some hack we put in the manifest we can remove now too? Or was that unrelated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @samtstern It looks like the commit that fixed this didn't end up in the new Facebook release anyway unfortunately. As for the other issue, I believe that was unrelated though I'm not sure... |
||
graph.allTasks.findAll { it.name ==~ /testReleaseUnitTest/ }*.enabled = false | ||
} | ||
|
||
//Skip Javadoc generation for Java 1.8 as it breaks build | ||
if (JavaVersion.current().isJava8Compatible()) { | ||
allprojects { | ||
tasks.withType(Javadoc) { | ||
options.addStringOption('Xdoclint:none', '-quiet') | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* Configure common tasks on all the submodules | ||
*/ | ||
|
@@ -57,7 +42,7 @@ allprojects { project -> | |
project.apply plugin: 'com.android.library' | ||
android { | ||
compileSdkVersion compileSdk | ||
buildToolsVersion "${buildTools}" | ||
buildToolsVersion buildTools | ||
} | ||
|
||
// Task to generate sources JAR | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,13 +22,11 @@ android { | |
} | ||
|
||
dependencies { | ||
compile "com.android.support:appcompat-v7:$supportLibraryVersion" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ouch, we were unnecessarily pulling in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yikes! Good catch. |
||
compile "com.android.support:recyclerview-v7:$supportLibraryVersion" | ||
|
||
compile "com.google.firebase:firebase-database:$firebaseVersion" | ||
|
||
androidTestCompile 'junit:junit:4.12' | ||
androidTestCompile "com.android.support:support-annotations:$supportLibraryVersion" | ||
androidTestCompile 'com.android.support.test:runner:0.5' | ||
androidTestCompile 'com.android.support.test:rules:0.5' | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Sat Mar 04 16:24:17 SGT 2017 | ||
#Mon Apr 24 13:49:38 PDT 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,11 @@ def configDir = "${project.rootDir}/library/quality" | |
def reportsDir = "${project.buildDir}/reports" | ||
|
||
checkstyle { | ||
toolVersion = '7.4' | ||
toolVersion = '7.7' | ||
} | ||
|
||
pmd { | ||
toolVersion = '5.6.0' | ||
} | ||
|
||
task checkstyle(type: Checkstyle) { | ||
|
@@ -72,7 +76,9 @@ android { | |
// We have okio as a transitive dependency, which causes some lint errors due to | ||
// using Java 8 nio packages. Safely downgrading them to warning. | ||
// https://github.com/square/okio/issues/58 | ||
disable 'InvalidPackage', 'NewerVersionAvailable', 'GradleDependency' | ||
disable 'InvalidPackage', | ||
'NewerVersionAvailable', 'GradleDependency', // For reproducible builds | ||
'GradleCompatible' // TODO remove once the tools team fixes lint | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's wrong with lint right now? |
||
|
||
baseline file("$configDir/lint-baseline.xml") | ||
checkAllWarnings true | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.4.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I started writing this PR awhile ago so I haven't kept up. 😆