diff --git a/README.md b/README.md index 0fe02b2..2a4fabc 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,13 @@ This library makes it easy to implement a [Backdrop](https://material.io/design/ *For support library:* ```groovy dependencies { - implementation 'ru.semper-viventem.backdrop:backdrop:0.1.2' + implementation 'ru.semper-viventem.backdrop:backdrop:0.1.3' } ``` *For Android X:* ```groovy dependencies { - implementation 'ru.semper-viventem.backdrop:backdrop:0.1.2_x' + implementation 'ru.semper-viventem.backdrop:backdrop:0.1.3_x' } ``` **JitPack:** @@ -97,8 +97,8 @@ fun > View.findBehavior(): T = layoutParams.ru val backdropBehavior: BackdropBehavior = foregroundContainer.findBehavior() // find behavior with(backdropBehavior) { - attacheBackContainer(R.id.backContainer) // set back container - attacheToolbar(R.id.toolbar) // set toolbar + attachBackContainer(R.id.backContainer) // set back container + attachToolbar(R.id.toolbar) // set toolbar // set navigation icons for toolbar setClosedIcon(R.drawable.ic_menu) diff --git a/backdrop/build.gradle b/backdrop/build.gradle index 331b605..7c975ad 100644 --- a/backdrop/build.gradle +++ b/backdrop/build.gradle @@ -20,7 +20,7 @@ ext { siteUrl = 'https://github.com/Semper-Viventem/BackdropView' gitUrl = 'https://github.com/Semper-Viventem/BackdropView' - libraryVersion = '0.1.2' + libraryVersion = '0.1.3' developerId = 'semper-viventem' developerName = 'constantine' diff --git a/backdrop/src/main/kotlin/ru/semper_viventem/backdrop/BackdropBehavior.kt b/backdrop/src/main/kotlin/ru/semper_viventem/backdrop/BackdropBehavior.kt index 406fff0..794e6fb 100644 --- a/backdrop/src/main/kotlin/ru/semper_viventem/backdrop/BackdropBehavior.kt +++ b/backdrop/src/main/kotlin/ru/semper_viventem/backdrop/BackdropBehavior.kt @@ -93,11 +93,11 @@ class BackdropBehavior : CoordinatorLayout.Behavior { this.closedIconId = iconRes } - fun attacheToolbar(@IdRes toolbarId: Int) { + fun attachToolbar(@IdRes toolbarId: Int) { this.toolbarId = toolbarId } - fun attacheBackContainer(@IdRes backContainerId: Int) { + fun attachBackContainer(@IdRes backContainerId: Int) { this.backContainerId = backContainerId } diff --git a/build.gradle b/build.gradle index ebd7618..e5ea96e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,17 +1,17 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.2.41' + ext.kotlin_version = '1.2.50' repositories { google() jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.1.3' + classpath 'com.android.tools.build:gradle:3.1.4' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' - classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0' + classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' } } diff --git a/sample/build.gradle b/sample/build.gradle index 378bbda..d1df942 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -29,7 +29,7 @@ android { } ext { - supportVersion = '28.0.0-alpha3' + supportVersion = '28.0.0-rc01' retrofitVersion = '2.2.0' conductorVersion = "2.1.4" playServicesVersion = "15.0.0" @@ -56,7 +56,7 @@ dependencies { androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' // Logging - implementation 'com.jakewharton.timber:timber:4.5.1' + implementation 'com.jakewharton.timber:timber:4.7.1' // Images implementation 'com.github.bumptech.glide:glide:4.6.1' kapt 'com.github.bumptech.glide:compiler:4.7.1' diff --git a/sample/src/main/kotlin/ru/semper_viventem/backdropview/ui/MainActivity.kt b/sample/src/main/kotlin/ru/semper_viventem/backdropview/ui/MainActivity.kt index c771da2..57eff5b 100644 --- a/sample/src/main/kotlin/ru/semper_viventem/backdropview/ui/MainActivity.kt +++ b/sample/src/main/kotlin/ru/semper_viventem/backdropview/ui/MainActivity.kt @@ -34,8 +34,8 @@ class MainActivity : AppCompatActivity() { backdropBehavior = foregroundContainer.findBehavior() with(backdropBehavior) { - attacheBackContainer(R.id.backContainer) - attacheToolbar(R.id.toolbar) + attachBackContainer(R.id.backContainer) + attachToolbar(R.id.toolbar) } with(toolbar) { setTitle(R.string.app_name)