From 066e69456150e81b19e16bd9877819059998021a Mon Sep 17 00:00:00 2001 From: Efra Espada Date: Tue, 31 Dec 2019 06:07:39 +0100 Subject: [PATCH] 3.6.2 --- library/build.gradle | 2 +- .../java/com/stringcare/library/StringExt.kt | 29 ------------------- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/library/build.gradle b/library/build.gradle index c13e662..71f53d6 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.6.1" +version = "3.6.2" 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 c207f67..869a34e 100644 --- a/library/src/main/java/com/stringcare/library/StringExt.kt +++ b/library/src/main/java/com/stringcare/library/StringExt.kt @@ -26,7 +26,6 @@ fun String.reveal( version: Version = defaultVersion ): String = SC.reveal(this, androidTreatment, version) -// lambdas fun String.json( predicate: () -> Boolean = { true } ): JSONObject = SC.asset().json(this, predicate) @@ -53,31 +52,3 @@ fun String.asyncBytes( predicate: () -> Boolean = { true }, bytes: (bytes: ByteArray) -> Unit ) = SC.asset().asyncBytes(this, predicate, bytes) - -// param -fun String.json( - predicate: Boolean = true -): JSONObject = SC.asset().json(this, predicate) - -fun String.asyncJson( - predicate: Boolean = true, - json: (json: JSONObject) -> Unit -) = SC.asset().asyncJson(this, { predicate }, json) - -fun String.jsonArray( - predicate: Boolean = true -): JSONArray = SC.asset().jsonArray(this, predicate) - -fun String.asyncJsonArray( - predicate: Boolean = true, - json: (json: JSONArray) -> Unit -) = SC.asset().asyncJsonArray(this, { predicate }, json) - -fun String.bytes( - predicate: Boolean = true -): ByteArray = SC.asset().bytes(this, predicate) - -fun String.asyncBytes( - predicate: Boolean = true, - bytes: (bytes: ByteArray) -> Unit -) = SC.asset().asyncBytes(this, { predicate }, bytes)