From f7a449051082a6db2c0730ee355a84ff2418a288 Mon Sep 17 00:00:00 2001 From: eespada Date: Wed, 14 Aug 2019 10:54:18 +0200 Subject: [PATCH] v3.3: missing kotlin extension --- build.gradle | 11 ++++------- library/build.gradle | 2 +- .../src/main/java/com/stringcare/library/StringExt.kt | 5 +++++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index bee514d..e0dad05 100755 --- a/build.gradle +++ b/build.gradle @@ -1,9 +1,9 @@ buildscript { - ext.kotlin_version = '1.3.31' + ext.kotlin_version = '1.3.41' ext { - stringcare_version = '3.1' + stringcare_version = '3.3' } repositories { @@ -16,11 +16,8 @@ buildscript { } dependencies { - // classpath "com.stringcare:plugin:$stringcare_version" - // classpath files('../GradlePlugin/build/libs/plugin-3.1.jar') - // classpath files('../GradlePlugin/build/libs/plugin-3.0.jar') - classpath files('../KotlinGradlePlugin/build/libs/plugin-3.1.jar') - // classpath files('..\\GradlePlugin\\build\\libs\\plugin-0.9.jar') + classpath "com.stringcare:plugin:$stringcare_version" + // classpath files('../KotlinGradlePlugin/build/libs/plugin-3.1.jar') classpath 'com.android.tools.build:gradle:3.4.2' classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1" classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' diff --git a/library/build.gradle b/library/build.gradle index 4f6d145..d9ddd72 100755 --- a/library/build.gradle +++ b/library/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'kotlin-android-extensions' apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' -version = "3.2" +version = "3.3" android { compileSdkVersion 28 diff --git a/library/src/main/java/com/stringcare/library/StringExt.kt b/library/src/main/java/com/stringcare/library/StringExt.kt index 81b3e18..3e5cdf0 100644 --- a/library/src/main/java/com/stringcare/library/StringExt.kt +++ b/library/src/main/java/com/stringcare/library/StringExt.kt @@ -17,3 +17,8 @@ fun String.obfuscate( androidTreatment: Boolean = defaultAndroidTreatment, version: Version = defaultVersion ): String = SC.obfuscate(this, androidTreatment, version) + +fun String.reveal( + androidTreatment: Boolean = defaultAndroidTreatment, + version: Version = defaultVersion +): String = SC.reveal(this, androidTreatment, version)