Skip to content

Commit

Permalink
Merge pull request #22 from StringCare/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
efraespada authored Jan 21, 2018
2 parents fb208ac + d376389 commit b7d8130
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 16 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<p align="center"><img width="10%" vspace="20" src="https://raw.githubusercontent.com/StringCare/AndroidLibrary/develop/sample/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png"></p>



String Care Android Library
=========================

Expand All @@ -8,13 +12,11 @@ Gradle implementation

```groovy
// root_project/build.gradle

apply plugin: com.stringcare.SCPlugin


buildscript {

ext {
stringcare_version = '0.1'
stringcare_version = '0.3'
}

repositories {
Expand All @@ -26,6 +28,8 @@ buildscript {
}

}

apply plugin: StringCare
```

```groovy
Expand All @@ -49,7 +53,7 @@ SC.init(getApplicationContext());


#### Encrypt
The script will encrypt all string tags with `hidden="true"` as attribute.
The plugin will encrypt all string tags with `hidden="true"` as attribute.

```xml
<resources>
Expand Down Expand Up @@ -106,10 +110,13 @@ Configuration
By default the plugin will encrypt every `strings.xml` file inside `src/main`folder but you can choose a different configuration.
```groovy
// root_folder/build.gradle
apply plugin: com.stringcare.SCPlugin

apply plugin: StringCare

stringcare {

debug true // prints detail build variant info

modules {

sample {
Expand Down
13 changes: 7 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

apply plugin: com.stringcare.SCPlugin

buildscript {

ext {
stringcare_version = '0.1'
stringcare_version = '0.3'
}

repositories {
Expand All @@ -17,9 +15,7 @@ buildscript {
}

dependencies {
classpath files('../AndroidPlugin/build/libs/plugin-0.1.jar')
// classpath "com.efraespada:stringobfuscatorplugin:$aso_sop_version"
// classpath "com.stringcare:plugin:$stringcare_version"
classpath "com.stringcare:plugin:$stringcare_version"
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 @@ -38,8 +34,13 @@ task clean(type: Delete) {
delete rootProject.buildDir
}

apply plugin: StringCare


stringcare {

debug true

modules {

sample {
Expand Down
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.1"
version = "0.3"

android {
compileSdkVersion 25
Expand Down
Binary file removed obfuscator-script.jar
Binary file not shown.
5 changes: 2 additions & 3 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ dependencies {
})
implementation 'com.android.support:appcompat-v7:26.1.0'
testImplementation 'junit:junit:4.12'
implementation project(path: ':library')
// implementation "efraespada:androidstringobfuscator:$aso_sop_version"
// implementation "com.stringcare:library:$stringcare_version"
// implementation project(path: ':library')
implementation "com.stringcare:library:$stringcare_version"
}


1 change: 1 addition & 0 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
Expand Down
Binary file modified sample/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sample/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sample/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sample/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b7d8130

Please sign in to comment.