Skip to content

Commit b7d8130

Browse files
authored
Merge pull request #22 from StringCare/develop
Develop
2 parents fb208ac + d376389 commit b7d8130

File tree

16 files changed

+24
-16
lines changed

16 files changed

+24
-16
lines changed

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<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>
2+
3+
4+
15
String Care Android Library
26
=========================
37

@@ -8,13 +12,11 @@ Gradle implementation
812

913
```groovy
1014
// root_project/build.gradle
11-
12-
apply plugin: com.stringcare.SCPlugin
13-
15+
1416
buildscript {
1517
1618
ext {
17-
stringcare_version = '0.1'
19+
stringcare_version = '0.3'
1820
}
1921
2022
repositories {
@@ -26,6 +28,8 @@ buildscript {
2628
}
2729
2830
}
31+
32+
apply plugin: StringCare
2933
```
3034

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

5054

5155
#### Encrypt
52-
The script will encrypt all string tags with `hidden="true"` as attribute.
56+
The plugin will encrypt all string tags with `hidden="true"` as attribute.
5357

5458
```xml
5559
<resources>
@@ -106,10 +110,13 @@ Configuration
106110
By default the plugin will encrypt every `strings.xml` file inside `src/main`folder but you can choose a different configuration.
107111
```groovy
108112
// root_folder/build.gradle
109-
apply plugin: com.stringcare.SCPlugin
113+
114+
apply plugin: StringCare
110115
111116
stringcare {
112117
118+
debug true // prints detail build variant info
119+
113120
modules {
114121
115122
sample {

build.gradle

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11

2-
apply plugin: com.stringcare.SCPlugin
3-
42
buildscript {
53

64
ext {
7-
stringcare_version = '0.1'
5+
stringcare_version = '0.3'
86
}
97

108
repositories {
@@ -17,9 +15,7 @@ buildscript {
1715
}
1816

1917
dependencies {
20-
classpath files('../AndroidPlugin/build/libs/plugin-0.1.jar')
21-
// classpath "com.efraespada:stringobfuscatorplugin:$aso_sop_version"
22-
// classpath "com.stringcare:plugin:$stringcare_version"
18+
classpath "com.stringcare:plugin:$stringcare_version"
2319
classpath 'com.android.tools.build:gradle:3.0.1'
2420
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1"
2521
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
@@ -38,8 +34,13 @@ task clean(type: Delete) {
3834
delete rootProject.buildDir
3935
}
4036

37+
apply plugin: StringCare
38+
39+
4140
stringcare {
4241

42+
debug true
43+
4344
modules {
4445

4546
sample {

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.1"
5+
version = "0.3"
66

77
android {
88
compileSdkVersion 25

obfuscator-script.jar

-5 MB
Binary file not shown.

sample/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ dependencies {
3636
})
3737
implementation 'com.android.support:appcompat-v7:26.1.0'
3838
testImplementation 'junit:junit:4.12'
39-
implementation project(path: ':library')
40-
// implementation "efraespada:androidstringobfuscator:$aso_sop_version"
41-
// implementation "com.stringcare:library:$stringcare_version"
39+
// implementation project(path: ':library')
40+
implementation "com.stringcare:library:$stringcare_version"
4241
}
4342

4443

sample/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<application
66
android:allowBackup="true"
77
android:icon="@mipmap/ic_launcher"
8+
android:roundIcon="@mipmap/ic_launcher_round"
89
android:label="@string/app_name"
910
android:supportsRtl="true"
1011
android:theme="@style/AppTheme">
278 Bytes
Loading
5.46 KB
Loading
-185 Bytes
Loading
2.92 KB
Loading

0 commit comments

Comments
 (0)