-
-
Notifications
You must be signed in to change notification settings - Fork 42
Implementation
Efra Espada edited this page May 7, 2019
·
28 revisions
Add these lines in the build.gradle
file located in your project's root-level:
buildscript {
ext.stringcare_version = '1.5'
repositories {
jcenter()
}
dependencies {
classpath "com.stringcare:plugin:$stringcare_version"
classpath "com.android.tools.build:gradle:3.4.0"
}
}
apply plugin: StringCare
stringcare {
debug true // debug logs
}
In any module where you want to work with obfuscated strings, edit the build.gradle
file:
repositories {
jcenter()
}
dependencies {
implementation "com.stringcare:library:$stringcare_version"
}
StringCare library needs the global application's context
:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
SC.init(getApplicationContext());
}
And that's all folks.
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.