@@ -3,39 +3,38 @@ Android String Obfuscator
33
44Hide strings easily with that lib (and script)! It uses AES/ECB/PKCS5Padding transformation to convert strings with your app's SHA1 fingerprint.
55
6- Installation
6+ Gradle implementation
77------------
88
9- Put [ AndroidStringObfuscator.jar] ( https://github.com/efraespada/AndroidStringObfuscator/raw/master/AndroidStringObfuscator.jar ) in the root of the project.
10-
11- #### Gradle
12-
139root_project/build.gradle
1410``` groovy
15- buildscript {
11+ buildscript {
12+
13+ ext {
14+ aso_sop_version = '0.4.1'
15+ }
16+
1617 repositories {
17- mavenLocal ()
18+ jcenter ()
1819 }
20+
1921 dependencies {
20- ...
21- classpath files('../AndroidObfuscatorPlugin/build/libs/stringobfuscatorplugin-1.0-SNAPSHOT.jar')
22- ...
22+ classpath "com.efraespada:stringobfuscatorplugin:$aso_sop_version"
2323 }
24+
2425}
25-
26- // BOTTOM
26+
2727apply plugin: com.efraespada.stringobfuscatorplugin.StringObfuscatorPlugin
2828```
2929
3030root_project/app/build.gradle
3131``` groovy
3232repositories {
3333 jcenter()
34- }
35-
34+ }
35+
3636dependencies {
37- implementation project(path: ':androidstringobfuscator')
38- // compile 'efraespada:androidstringobfuscator:0.4.1'
37+ implementation "efraespada:androidstringobfuscator:$aso_sop_version"
3938}
4039```
4140
@@ -103,37 +102,22 @@ Gradle Console Output Example
103102-----------------------------
104103```
105104...
105+ :sample:generateDebugResValues UP-TO-DATE
106+ :sample:generateDebugResources UP-TO-DATE
106107:sample:mergeDebugResources
107- :sample:initStringObfuscator
108- :sample:obfuscator-script - -----------------------------------------------------------------------------
109- :sample:obfuscator-script - debug variant
110- :sample:obfuscator-script - SHA1 fingerprint: E1:28:0C:3E:65:91:2E:21:E9:98:2B:58:80:9A:25:3A:F6:88:7D:FF
111- :sample:obfuscator-script - [hello world!] - [D1862D9B434D08E..]
112- :sample:obfuscator-script - -----------------------------------------------------------------------------
113- :sample:obfuscator-script - v 0.7
114- :sample:processDebugManifest UP-TO-DATE
115- ...
116- ```
117-
118-
119- #### More information
120- If you haven't installed Gradle before you compile:
121- ```
122- ...
123- :sample:obfuscator-script - Downloading https://services.gradle.org/distributions/gradle-2.14.1-all.zip
124- :sample:obfuscator-script - Unzipping /Users/efraespada/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yv/gradle-2.14.1-all.zip to /Users/efraespada/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yv
125- :sample:obfuscator-script - Set executable permissions for: /Users/efraespada/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yv/gradle-2.14.1/bin/gradle
108+ :sample:debug:B8:DC:47:58:9B:5F:2C:21:45:C4:04:37:0E:56:53:DC:24:6B:2C:66
109+ :sample:backupStringResources
110+ - values/strings.xml
111+ :sample:encryptStringResources
112+ - values/strings.xml
113+ [hello world!] - [A8590C43DA85D67..]
114+ :sample:mergeDebugResources UP-TO-DATE
115+ :sample:restoreStringResources
116+ - values/strings.xml
117+ :sample:createDebugCompatibleScreenManifests UP-TO-DATE
126118...
127119```
128120
129- If ` ~/.android/debug.keystore ` is missing, run your app to generate that file. For non default keystore file, check your project configuration.
130- ```
131- ...
132- :sample:obfuscator-script - debug variant
133- :sample:obfuscator-script - Missing keystore
134- :sample:obfuscator-script - SHA1 fingerprint not detected; try params [module] [variant] [optional:sha1]
135- ...
136- ```
137121License
138122-------
139123 Copyright 2017 Efraín Espada
0 commit comments