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
16
16
buildscript {
17
17
18
18
ext {
19
- stringcare_version = '0.3 '
19
+ stringcare_version = '0.4 '
20
20
}
21
21
22
22
repositories {
@@ -65,7 +65,7 @@ The plugin will encrypt all string tags with `hidden="true"` as attribute.
65
65
Or encrypt strings programmatically by doing:
66
66
67
67
``` java
68
- String encrypted = SC . encryptString(some_string_var );
68
+ String encrypted = SC . encryptString(string_var );
69
69
```
70
70
71
71
#### Decrypt
@@ -115,7 +115,7 @@ apply plugin: StringCare
115
115
116
116
stringcare {
117
117
118
- debug true // prints detail build variant info
118
+ debug true // prints details
119
119
120
120
modules {
121
121
@@ -163,6 +163,15 @@ Gradle Console Output Example
163
163
:sample:createDebugCompatibleScreenManifests UP-TO-DATE
164
164
...
165
165
```
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
+ ```
166
175
167
176
License
168
177
-------
Original file line number Diff line number Diff line change 2
2
buildscript {
3
3
4
4
ext {
5
- stringcare_version = ' 0.3 '
5
+ stringcare_version = ' 0.4 '
6
6
}
7
7
8
8
repositories {
@@ -16,6 +16,7 @@ buildscript {
16
16
17
17
dependencies {
18
18
classpath " com.stringcare:plugin:$stringcare_version "
19
+ // classpath files('../AndroidPlugin/build/libs/plugin-0.4.jar')
19
20
classpath ' com.android.tools.build:gradle:3.0.1'
20
21
classpath " com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1"
21
22
classpath ' com.github.dcendents:android-maven-gradle-plugin:1.5'
@@ -35,18 +36,3 @@ task clean(type: Delete) {
35
36
}
36
37
37
38
apply 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'
2
2
apply plugin : ' com.github.dcendents.android-maven'
3
3
apply plugin : ' com.jfrog.bintray'
4
4
5
- version = " 0.3 "
5
+ version = " 0.4 "
6
6
7
7
android {
8
8
compileSdkVersion 25
Original file line number Diff line number Diff line change 1
1
<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