Skip to content

Commit

Permalink
Merge pull request #23 from StringCare/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
efraespada authored Jan 23, 2018
2 parents b7d8130 + 4ad1d93 commit 4247060
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 23 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gradle implementation
buildscript {

ext {
stringcare_version = '0.3'
stringcare_version = '0.4'
}

repositories {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -115,7 +115,7 @@ apply plugin: StringCare

stringcare {

debug true // prints detail build variant info
debug true // prints details

modules {

Expand Down Expand Up @@ -163,6 +163,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
-------
Expand Down
18 changes: 2 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
buildscript {

ext {
stringcare_version = '0.3'
stringcare_version = '0.4'
}

repositories {
Expand All @@ -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'
Expand All @@ -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"]
}

}
}
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions sample/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<resources>
<string name="hello" hidden="true">hello world!</string>
<string name="app_name">String Obfuscator Sample</string>
</resources>
<string name="hello" hidden="true">hello world!</string>
<string name="app_name">String Obfuscator Sample</string>
</resources>

0 comments on commit 4247060

Please sign in to comment.