File tree Expand file tree Collapse file tree 4 files changed +18
-23
lines changed
sample/src/main/res/values Expand file tree Collapse file tree 4 files changed +18
-23
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Gradle implementation
1616buildscript {
1717
1818 ext {
19- stringcare_version = '0.3 '
19+ stringcare_version = '0.4 '
2020 }
2121
2222 repositories {
@@ -65,7 +65,7 @@ The plugin will encrypt all string tags with `hidden="true"` as attribute.
6565Or encrypt strings programmatically by doing:
6666
6767``` java
68- String encrypted = SC . encryptString(some_string_var );
68+ String encrypted = SC . encryptString(string_var );
6969```
7070
7171#### Decrypt
@@ -115,7 +115,7 @@ apply plugin: StringCare
115115
116116stringcare {
117117
118- debug true // prints detail build variant info
118+ debug true // prints details
119119
120120 modules {
121121
@@ -163,6 +163,15 @@ Gradle Console Output Example
163163:sample:createDebugCompatibleScreenManifests UP-TO-DATE
164164...
165165```
166+
167+ Plugin won't work if there is no config defined for the selected variant:
168+ ``` bash
169+ ...
170+ :sample:mergeReleaseResources
171+ 🤯 no config defined for variant release
172+ :sample:createReleaseCompatibleScreenManifests
173+ ...
174+ ```
166175
167176License
168177-------
Original file line number Diff line number Diff line change 22buildscript {
33
44 ext {
5- stringcare_version = ' 0.3 '
5+ stringcare_version = ' 0.4 '
66 }
77
88 repositories {
@@ -16,6 +16,7 @@ buildscript {
1616
1717 dependencies {
1818 classpath " com.stringcare:plugin:$stringcare_version "
19+ // classpath files('../AndroidPlugin/build/libs/plugin-0.4.jar')
1920 classpath ' com.android.tools.build:gradle:3.0.1'
2021 classpath " com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1"
2122 classpath ' com.github.dcendents:android-maven-gradle-plugin:1.5'
@@ -35,18 +36,3 @@ task clean(type: Delete) {
3536}
3637
3738apply plugin : StringCare
38-
39-
40- stringcare {
41-
42- debug true
43-
44- modules {
45-
46- sample {
47- stringFiles = [' strings.xml' ," other_file.xml" ]
48- srcFolders = [' src/main' , " other_folder" ]
49- }
50-
51- }
52- }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22apply plugin : ' com.github.dcendents.android-maven'
33apply plugin : ' com.jfrog.bintray'
44
5- version = " 0.3 "
5+ version = " 0.4 "
66
77android {
88 compileSdkVersion 25
Original file line number Diff line number Diff line change 11<resources >
2- <string name =" hello" hidden =" true" >hello world!</string >
3- <string name =" app_name" >String Obfuscator Sample</string >
4- </resources >
2+ <string name =" hello" hidden =" true" >hello world!</string >
3+ <string name =" app_name" >String Obfuscator Sample</string >
4+ </resources >
You can’t perform that action at this time.
0 commit comments