Skip to content

Commit

Permalink
publish version 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed May 3, 2019
1 parent eafd278 commit 47799e7
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<VeilParams>) {
clearAllSections()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
4 changes: 2 additions & 2 deletions app/src/main/java/com/skydoves/androidveildemo/Extension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ import java.util.concurrent.TimeUnit

class MainActivity : AppCompatActivity(),
VeiledItemOnClickListener,
ProfileViewHolder.Delegate
{
ProfileViewHolder.Delegate {

private val adapter by lazy { ProfileAdapter(this) }

Expand Down
6 changes: 3 additions & 3 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 47799e7

Please sign in to comment.