Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

Commit

Permalink
Update library versions. (google#414)
Browse files Browse the repository at this point in the history
Removes buildToolsVersions because an appropriate version is picked
  • Loading branch information
thagikura authored Mar 19, 2018
1 parent d6009c3 commit c8ba335
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ buildscript {
minSdkVersion = 14
targetSdkVersion = 27
compileSdkVersion = 27
buildToolsVersion = "27.0.2"
androidGradlePluginVersion = "3.0.1"
androidMavenGradlePluginVersion = "1.5"
gradleBintrayPluginVersion = "1.6"
kotlinVersion = "1.2.0"
supportLibVersion = "27.0.2"
kotlinVersion = "1.2.30"
supportLibVersion = "27.1.0"
espressoVersion = "3.0.0"
testRunnerVersion = "1.0.0"
junitVersion = "4.12"
Expand Down
1 change: 0 additions & 1 deletion demo-cat-gallery/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ apply plugin: 'kotlin-android'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
applicationId "com.google.android.flexbox.apps.catgallery"
Expand Down
1 change: 0 additions & 1 deletion demo-playground/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ apply plugin: 'kotlin-android'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
applicationId "com.google.android.apps.flexbox"
Expand Down
1 change: 0 additions & 1 deletion flexbox/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ apply from: 'bintray.gradle'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ import com.google.android.flexbox.FlexboxLayoutManager
/**
* [RecyclerView.Adapter] implementation for [TestViewHolder].
*/
internal class TestAdapter private constructor(private val layoutParams: MutableList<FlexboxLayoutManager.LayoutParams>) : RecyclerView.Adapter<TestViewHolder>() {
internal class TestAdapter private constructor(
private val layoutParams: MutableList<FlexboxLayoutManager.LayoutParams>)
: RecyclerView.Adapter<TestViewHolder>() {

private val receivedPayloads = mutableListOf<Any>()

Expand All @@ -44,8 +46,8 @@ internal class TestAdapter private constructor(private val layoutParams: Mutable
holder.textView.layoutParams = layoutParams[position]
}

override fun onBindViewHolder(holder: TestViewHolder, position: Int, payloads: List<Any>?) {
payloads?.let(receivedPayloads::addAll)
override fun onBindViewHolder(holder: TestViewHolder, position: Int, payloads: List<Any>) {
receivedPayloads.addAll(payloads)
onBindViewHolder(holder, position)
}

Expand Down

0 comments on commit c8ba335

Please sign in to comment.