-
-
Notifications
You must be signed in to change notification settings - Fork 42
Tasks
Efra Espada edited this page Jun 19, 2019
·
4 revisions
StringCare can retrieve some reports for solving possible errors or wrong configurations.
The stringcarePreview
task shows what files the plugin will obfuscate. In the project's root-level folder:
- macOS
$ ./gradlew stringcarePreview
- Windows
$ gradlew.bat stringcarePreview
> Task :stringcarePreview
== REPORT ======================================
Modules (1)
== FILES FOUND ======================================
β not valid file /Users/efrainespada/Documents/Github/AndroidLibrary/app/src/main/res/values-w820dp/dimens.xml
β not valid file /Users/efrainespada/Documents/Github/AndroidLibrary/app/src/main/res/layout/activity_main.xml
β not valid file /Users/efrainespada/Documents/Github/AndroidLibrary/app/src/main/res/values/colors.xml
β not valid file /Users/efrainespada/Documents/Github/AndroidLibrary/app/src/main/res/values/dimens.xml
β not valid file /Users/efrainespada/Documents/Github/AndroidLibrary/app/src/main/res/values/styles.xml
β valid file /Users/efrainespada/Documents/Github/AndroidLibrary/app/src/main/res/values/strings.xml
β not valid file /Users/efrainespada/Documents/Github/AndroidLibrary/app/src/main/AndroidManifest.xml
β not valid file /Users/efrainespada/Documents/Github/AndroidLibrary/library/src/main/res/values/strings.xml
β not valid file /Users/efrainespada/Documents/Github/AndroidLibrary/library/src/main/res/values/attrs.xml
β not valid file /Users/efrainespada/Documents/Github/AndroidLibrary/library/src/main/AndroidManifest.xml
β not valid file /Users/efrainespada/Documents/Github/AndroidLibrary/dynamic_feature_cell/src/main/AndroidManifest.xml
Located files(1) for obfuscating
- strings.xml
app/src/main/
path: /Users/efrainespada/Documents/Github/AndroidLibrary/app/src/main/res/values/strings.xml
============================
"androidTreatment": "false"
"containsHtml": "true"
"hidden": "true"
"name": "hello"
"value": "
<i>Hello <strong>there</strong></i><br></br>
General <strong>Kenobi</strong>.
"
============================
"hidden": "true"
"name": "pattern"
"value": "%1$s (%2$d)"
============================
"hidden": "true"
"name": "snake_msg_hidden"
"value": "\n\nla-li-lu-le-lo\n\nπππ"
============================
"hidden": "true"
"name": "hello_world_b"
"value": "Hello
World
"
============================
"androidTreatment": "false"
"hidden": "true"
"name": "hello_world_c"
"value": "Hello
World
"
============================
=== content ================
<resources>
<string name="app_name">String Obfuscator Sample</string>
<string name="hello" hidden="true" androidTreatment="false" containsHtml="true">
<i>Hello <strong>there</strong></i><br></br>
General <strong>Kenobi</strong>.
</string>
<string name="pattern" hidden="true">%1$s (%2$d)</string>
<string name="snake_msg_hidden" hidden="true">\n\nla-li-lu-le-lo\n\nπππ</string>
<string name="hello_world_a">Hello
World
</string>
<string name="hello_world_b" hidden="true">Hello
World
</string>
<string name="hello_world_c" hidden="true" androidTreatment="false">Hello
World
</string>
</resources>
============================
== END REPORT ==================================
BUILD SUCCESSFUL in 0s
The stringcareTestObfuscate{$variant}
task tests the obfuscation process for the given variant. In the project's root-level folder:
- macOS
$ ./gradlew stringcareTestObfuscateDebug
- Windows
$ gradlew.bat stringcareTestObfuscateDebug
> Task :stringcareTestObfuscateDebug
variant debug
== TEST OBFUSCATION ======================================
Modules (1)
fingerprint: A0:EA:C0:43:23:55:9B:C9:6B:A8:50:47:F5:17:B3:A3:52:C9:A4:3E
variant: debug
============================
path: /Users/efrainespada/Documents/Github/AndroidLibrary/app/src/main/res/values/strings.xml
"androidTreatment": "false"
"containsHtml": "true"
"hidden": "true"
"name": "hello"
"value": "
<i>Hello <strong>there</strong></i><br></br>
General <strong>Kenobi</strong>.
"
============================
"hidden": "true"
"name": "pattern"
"value": "%1$s (%2$d)"
============================
"hidden": "true"
"name": "snake_msg_hidden"
"value": "\n\nla-li-lu-le-lo\n\nπππ"
============================
"hidden": "true"
"name": "hello_world_b"
"value": "Hello
World
"
============================
"androidTreatment": "false"
"hidden": "true"
"name": "hello_world_c"
"value": "Hello
World
"
============================
=== content ================
<resources>
<string name="app_name">String Obfuscator Sample</string>
<string name="hello" hidden="true" androidTreatment="false" containsHtml="true">
<i>Hello <strong>there</strong></i><br></br>
General <strong>Kenobi</strong>.
</string>
<string name="pattern" hidden="true">%1$s (%2$d)</string>
<string name="snake_msg_hidden" hidden="true">\n\nla-li-lu-le-lo\n\nπππ</string>
<string name="hello_world_a">Hello
World
</string>
<string name="hello_world_b" hidden="true">Hello
World
</string>
<string name="hello_world_c" hidden="true" androidTreatment="false">Hello
World
</string>
</resources>
============================
=== content obfuscated ================
<resources>
<string name="app_name">String Obfuscator Sample</string>
<string name="hello">-119, 22, -111, 103, -115, -74, -1, -100, -71, 88, -118, 17, 12, -19, 25, -41, -16, -113, -101, -91, -119, -115, 107, 103, 97, 63, 100, 68, 94, 101, 73, 23, -11, 60, 46, 47, 30, 25, 19, 2, -24, -46, 12, -40, -22, 7, 21, -39, -49, -67, -15, 22, -58, -106, -83, -90, -83, -85, -81, -82, -79, -95, -60, -26, -4, -16, -19, -30, -27, -107, -82, -19, -14, -10, -32, -32, -42, -73, -74, -29, -27, -23, -52, -45, -80, -92, -27, -31, -31, -43, -45, -50, -84, -94, 111, -123, -126, -126, 127</string>
<string name="pattern">108, 99, -8, 44, -59, -75, -100, -98, -102, -56, -110</string>
<string name="snake_msg_hidden">102, -22, -88, 88, 14, -71, 69, 98, 110, 4, 72, 52, -24, 16, 27, -55, 19, 16, -8, -9, -38, -16, 100, 19, 6, 7, 99, 9, 17, -5, 97, 12, -15, -17</string>
<string name="hello_world_a">Hello
World
</string>
<string name="hello_world_b">-113, -105, 64, 37, 20, -83, -50, -37, -24, -48, -51</string>
<string name="hello_world_c">-104, 22, -110, 103, 75, -61, -15, -7, 7, -23, -26, 124, -110, -123, -110, -126</string>
</resources>
============================
== END OBFUSCATION ==================================
BUILD SUCCESSFUL in 12s
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.