Skip to content

Commit 4247060

Browse files
authored
Merge pull request #23 from StringCare/develop
Develop
2 parents b7d8130 + 4ad1d93 commit 4247060

File tree

4 files changed

+18
-23
lines changed

4 files changed

+18
-23
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Gradle implementation
1616
buildscript {
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.
6565
Or 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
116116
stringcare {
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

167176
License
168177
-------

build.gradle

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
buildscript {
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

3738
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-
}

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22
apply plugin: 'com.github.dcendents.android-maven'
33
apply plugin: 'com.jfrog.bintray'
44

5-
version = "0.3"
5+
version = "0.4"
66

77
android {
88
compileSdkVersion 25
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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>

0 commit comments

Comments
 (0)