diff --git a/README.md b/README.md index 36bb865..4765fed 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ allprojects { And add a dependency code to your **module**'s `build.gradle` file. ```gradle dependencies { - implementation "com.github.skydoves:androidveil:1.0.4" + implementation "com.github.skydoves:androidveil:1.0.5" } ``` diff --git a/androidveil/src/main/java/com/skydoves/androidveil/VeiledAdapter.kt b/androidveil/src/main/java/com/skydoves/androidveil/VeiledAdapter.kt index fd06684..30e308c 100644 --- a/androidveil/src/main/java/com/skydoves/androidveil/VeiledAdapter.kt +++ b/androidveil/src/main/java/com/skydoves/androidveil/VeiledAdapter.kt @@ -25,8 +25,7 @@ import com.skydoves.baserecyclerviewadapter.SectionRow internal class VeiledAdapter( @LayoutRes private val userLayout: Int, private val onItemClickListener: VeiledItemOnClickListener? = null -) : BaseAdapter() -{ +) : BaseAdapter() { fun addParams(params: List) { clearAllSections() diff --git a/androidveil/src/main/java/com/skydoves/androidveil/VeiledViewHolder.kt b/androidveil/src/main/java/com/skydoves/androidveil/VeiledViewHolder.kt index ad9b4c3..4baa8f5 100644 --- a/androidveil/src/main/java/com/skydoves/androidveil/VeiledViewHolder.kt +++ b/androidveil/src/main/java/com/skydoves/androidveil/VeiledViewHolder.kt @@ -24,8 +24,7 @@ internal class VeiledViewHolder( view: View, @LayoutRes val layout: Int, private val onItemClickListener: VeiledItemOnClickListener? = null -) : BaseViewHolder(view) -{ +) : BaseViewHolder(view) { private lateinit var veilParams: VeilParams diff --git a/androidveil/src/main/java/com/skydoves/androidveil/ViewExtension.kt b/androidveil/src/main/java/com/skydoves/androidveil/ViewExtension.kt index ddfc049..76d0f35 100644 --- a/androidveil/src/main/java/com/skydoves/androidveil/ViewExtension.kt +++ b/androidveil/src/main/java/com/skydoves/androidveil/ViewExtension.kt @@ -18,10 +18,10 @@ package com.skydoves.androidveil import android.view.View -internal fun View.visible() { +fun View.visible() { this.visibility = View.VISIBLE } -internal fun View.invisible() { +fun View.invisible() { this.visibility = View.INVISIBLE } diff --git a/app/src/main/java/com/skydoves/androidveildemo/Extension.kt b/app/src/main/java/com/skydoves/androidveildemo/Extension.kt index b85b60f..51daac8 100644 --- a/app/src/main/java/com/skydoves/androidveildemo/Extension.kt +++ b/app/src/main/java/com/skydoves/androidveildemo/Extension.kt @@ -29,8 +29,8 @@ import com.google.android.material.appbar.CollapsingToolbarLayout * Copyright (c) 2018 skydoves rights reserved. */ -fun Activity.checkIsMaterialVersion() - = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP +fun Activity.checkIsMaterialVersion() = + Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP fun AppCompatActivity.applyToolbarMargin(toolbar: Toolbar) { if (checkIsMaterialVersion()) { diff --git a/app/src/main/java/com/skydoves/androidveildemo/MainActivity.kt b/app/src/main/java/com/skydoves/androidveildemo/MainActivity.kt index 6a32561..5eeb59a 100644 --- a/app/src/main/java/com/skydoves/androidveildemo/MainActivity.kt +++ b/app/src/main/java/com/skydoves/androidveildemo/MainActivity.kt @@ -39,8 +39,7 @@ import java.util.concurrent.TimeUnit class MainActivity : AppCompatActivity(), VeiledItemOnClickListener, - ProfileViewHolder.Delegate -{ + ProfileViewHolder.Delegate { private val adapter by lazy { ProfileAdapter(this) } diff --git a/dependencies.gradle b/dependencies.gradle index 570e284..aa7c957 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,15 +1,15 @@ ext.versions = [ minSdk : 15, compileSdk : 28, - versionCode : 5, - versionName : '1.0.4', + versionCode : 6, + versionName : '1.0.5', gradleBuildTool : '3.4.0', spotlessGradle : '3.22.0', dokkaGradle : '0.9.18', bintrayRelease : '0.9', - kotlin : '1.3.21', + kotlin : '1.3.30', androidxAppcompat : '1.1.0-alpha04', googleMaterial : '1.1.0-alpha05', recyclerView : '1.1.0-alpha04',