Skip to content

Commit 33862bc

Browse files
committed
...
1 parent 3bb4f5a commit 33862bc

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Gradle implementation
1616
buildscript {
1717
1818
ext {
19-
stringcare_version = '0.8'
19+
stringcare_version = '0.9'
2020
}
2121
2222
repositories {
@@ -46,15 +46,14 @@ dependencies {
4646

4747
Setup
4848
-----
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:
5150
```java
52-
SC.init(getApplicationContext());
51+
SC.initForModule(getApplicationContext(), BuildConfig.class);
5352
```
5453

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)
5857
```
5958

6059

0 commit comments

Comments
 (0)