From d0d4682a48aaa2963ec22883f09f3c298692f66a Mon Sep 17 00:00:00 2001 From: efraespada Date: Tue, 23 Jan 2018 21:53:06 +0100 Subject: [PATCH 1/4] v0.4 --- build.gradle | 18 ++---------------- library/build.gradle | 2 +- sample/src/main/res/values/strings.xml | 6 +++--- 3 files changed, 6 insertions(+), 20 deletions(-) diff --git a/build.gradle b/build.gradle index 67707c1..7f5ed69 100755 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ buildscript { ext { - stringcare_version = '0.3' + stringcare_version = '0.4' } repositories { @@ -16,6 +16,7 @@ buildscript { dependencies { classpath "com.stringcare:plugin:$stringcare_version" + // classpath files('../AndroidPlugin/build/libs/plugin-0.4.jar') classpath 'com.android.tools.build:gradle:3.0.1' classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1" classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' @@ -35,18 +36,3 @@ task clean(type: Delete) { } apply plugin: StringCare - - -stringcare { - - debug true - - modules { - - sample { - stringFiles = ['strings.xml',"other_file.xml"] - srcFolders = ['src/main', "other_folder"] - } - - } -} \ No newline at end of file diff --git a/library/build.gradle b/library/build.gradle index d388b38..708310f 100755 --- a/library/build.gradle +++ b/library/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' -version = "0.3" +version = "0.4" android { compileSdkVersion 25 diff --git a/sample/src/main/res/values/strings.xml b/sample/src/main/res/values/strings.xml index 788dbc0..8742382 100755 --- a/sample/src/main/res/values/strings.xml +++ b/sample/src/main/res/values/strings.xml @@ -1,4 +1,4 @@ - - String Obfuscator Sample - + + String Obfuscator Sample + \ No newline at end of file From 65340716403a9ce4e42a74244dfe40dd66e01b1b Mon Sep 17 00:00:00 2001 From: efraespada Date: Tue, 23 Jan 2018 22:18:42 +0100 Subject: [PATCH 2/4] readme --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 254ba26..cba2c28 100755 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![version](https://img.shields.io/badge/v%200.4.svg?style=flat)](https://bintray.com/efff/maven/StringCareAndroidLibrary) +

@@ -16,7 +18,7 @@ Gradle implementation buildscript { ext { - stringcare_version = '0.3' + stringcare_version = '0.4' } repositories { @@ -163,6 +165,15 @@ Gradle Console Output Example :sample:createDebugCompatibleScreenManifests UP-TO-DATE ... ``` + +Plugin won't work if there is no config defined for the selected variant: +```bash +... +:sample:mergeReleaseResources + 🤯 no config defined for variant release +:sample:createReleaseCompatibleScreenManifests +... +``` License ------- From 5688cb74989b5332f826da493f0c2cea259fc0be Mon Sep 17 00:00:00 2001 From: efraespada Date: Tue, 23 Jan 2018 22:19:48 +0100 Subject: [PATCH 3/4] readme --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index cba2c28..f205a89 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -[![version](https://img.shields.io/badge/v%200.4.svg?style=flat)](https://bintray.com/efff/maven/StringCareAndroidLibrary) -

From 4ad1d933831aca4255e25d7c43ba386ab340e71f Mon Sep 17 00:00:00 2001 From: efraespada Date: Tue, 23 Jan 2018 22:21:31 +0100 Subject: [PATCH 4/4] readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f205a89..1408b25 100755 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ The plugin will encrypt all string tags with `hidden="true"` as attribute. Or encrypt strings programmatically by doing: ```java -String encrypted = SC.encryptString(some_string_var); +String encrypted = SC.encryptString(string_var); ``` #### Decrypt @@ -115,7 +115,7 @@ apply plugin: StringCare stringcare { - debug true // prints detail build variant info + debug true // prints details modules { @@ -163,7 +163,7 @@ Gradle Console Output Example :sample:createDebugCompatibleScreenManifests UP-TO-DATE ... ``` - + Plugin won't work if there is no config defined for the selected variant: ```bash ...