diff --git a/README.md b/README.md index ca16fef..fbcb121 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ allprojects { **Step 2.** Add the library dependency to your project build.gradle: ``` dependencies { - implementation 'com.github.erkutaras:StateLayout:1.4.2' + implementation 'com.github.erkutaras:StateLayout:1.5.0' } ``` @@ -169,7 +169,7 @@ Patches and new features are encouraged, and may be submitted by [forking this p # License - Copyright 2018-2019 erkutaras + Copyright 2018-2020 erkutaras Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/build.gradle b/build.gradle index 9dc9efe..0130468 100644 --- a/build.gradle +++ b/build.gradle @@ -1,13 +1,13 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.3.41' + ext.kotlin_version = '1.3.72' repositories { google() jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.4.2' + classpath 'com.android.tools.build:gradle:4.0.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a1e6491..12995a0 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sun May 19 19:37:42 MSK 2019 +#Sun May 31 21:43:37 MSK 2020 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip diff --git a/library/build.gradle b/library/build.gradle index 0919668..daa6fce 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -5,13 +5,13 @@ apply plugin: 'com.github.dcendents.android-maven' group='com.erkutaras.statelayout' android { - compileSdkVersion 28 + compileSdkVersion 29 defaultConfig { minSdkVersion 14 - targetSdkVersion 28 + targetSdkVersion 29 versionCode 24 - versionName "1.4.2" + versionName "1.5.0" vectorDrawables.useSupportLibrary = true } @@ -28,7 +28,7 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation 'androidx.appcompat:appcompat:1.0.2' + implementation 'androidx.appcompat:appcompat:1.1.0' } repositories { mavenCentral() diff --git a/library/src/main/java/com/erkutaras/statelayout/StateLayout.kt b/library/src/main/java/com/erkutaras/statelayout/StateLayout.kt index 1d8b586..7724d04 100644 --- a/library/src/main/java/com/erkutaras/statelayout/StateLayout.kt +++ b/library/src/main/java/com/erkutaras/statelayout/StateLayout.kt @@ -200,14 +200,6 @@ class StateLayout @JvmOverloads constructor(context: Context, return info() } - @Deprecated("infoButtonListener(block: () -> Unit) calling is more convenient") - fun infoButtonListener(onStateLayoutListener: OnStateLayoutListener?): StateLayout { - infoLayout.findView