Skip to content

Commit

Permalink
3.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
efraespada committed Dec 31, 2019
1 parent 097c263 commit 066e694
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
29 changes: 0 additions & 29 deletions library/src/main/java/com/stringcare/library/StringExt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

0 comments on commit 066e694

Please sign in to comment.