File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Gradle implementation
16
16
buildscript {
17
17
18
18
ext {
19
- stringcare_version = '0.8 '
19
+ stringcare_version = '0.9 '
20
20
}
21
21
22
22
repositories {
@@ -46,15 +46,14 @@ dependencies {
46
46
47
47
Setup
48
48
-----
49
- StringCare library needs the global application's ` Context ` for access to ` PackageManager ` and get signatures.
50
- In your ` app ` (or main) module the package name is obtained from ` Context ` :
49
+ Java:
51
50
``` java
52
- SC . init (getApplicationContext());
51
+ SC . initForModule (getApplicationContext(), BuildConfig . class );
53
52
```
54
53
55
- In the rest of modules (or libraries) you must pass an ` Object ` in order to obtain its package name :
56
- ``` java
57
- SC . initForLib(getApplicationContext(), this );
54
+ Kotlin :
55
+ ``` kotlin
56
+ SC .initForModule(applicationContext, BuildConfig :: class .java)
58
57
```
59
58
60
59
You can’t perform that action at this time.
0 commit comments