From 1830a757bdcf0d15425322afd790945cb6f6abe4 Mon Sep 17 00:00:00 2001 From: Prasham Trivedi Date: Fri, 7 Jul 2017 10:55:45 +0530 Subject: [PATCH] V0.7.2 --- Readme.md | 2 +- build.gradle | 2 +- changelog.md | 3 +++ kutils/gradle.properties | 4 ++-- kutils/src/main/kotlin/com/celites/kutils/Dialogs.kt | 4 ++-- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Readme.md b/Readme.md index e553744..bc0ae56 100644 --- a/Readme.md +++ b/Readme.md @@ -39,7 +39,7 @@ And a lot more.... For latest version see below. ## Latest Version -0.7.1 +0.7.2 View [Changelog](changelog.md) diff --git a/build.gradle b/build.gradle index 1dac6c9..01244a9 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ buildscript { } } dependencies { - classpath 'com.android.tools.build:gradle:3.0.0-alpha4' + classpath 'com.android.tools.build:gradle:3.0.0-alpha5' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1' } diff --git a/changelog.md b/changelog.md index 62c2320..f88a2c5 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # ChangeLog +### 0.7.2 +- AlertDialog can accept optional `themeId` parameter to add themes for dialog + ### 0.7.1 - Version 0.7.1 fixes a small publishing issue - Worked in Java interoperability diff --git a/kutils/gradle.properties b/kutils/gradle.properties index 59aa381..e2f4358 100644 --- a/kutils/gradle.properties +++ b/kutils/gradle.properties @@ -1,8 +1,8 @@ POM_NAME=kutils POM_ARTIFACT_ID=kutils POM_PACKAGING=aar -VERSION_NAME=0.7.1 -VERSION_CODE=9 +VERSION_NAME=0.7.2 +VERSION_CODE=10 GROUP=com.creativeelites POM_DESCRIPTION=Development Utils Kotlin POM_URL=https://github.com/CreativeElites/UtilsLibrary diff --git a/kutils/src/main/kotlin/com/celites/kutils/Dialogs.kt b/kutils/src/main/kotlin/com/celites/kutils/Dialogs.kt index af48e37..da8696c 100644 --- a/kutils/src/main/kotlin/com/celites/kutils/Dialogs.kt +++ b/kutils/src/main/kotlin/com/celites/kutils/Dialogs.kt @@ -7,8 +7,8 @@ import android.support.v7.app.AlertDialog /** * Created by Prash on 19-05-2017. */ -@JvmOverloads inline public fun Context.showDialog(cancelable: Boolean = false, cancelableTouchOutside: Boolean = false, builderFunction: AlertDialog.Builder.() -> Any) { - val builder = AlertDialog.Builder(this) +@JvmOverloads inline public fun Context.showDialog(themeId: Int = 0, cancelable: Boolean = false, cancelableTouchOutside: Boolean = false, builderFunction: AlertDialog.Builder.() -> Any) { + val builder = AlertDialog.Builder(this, themeId) builder.builderFunction() val dialog = builder.create();