Skip to content

Commit aa2a248

Browse files
committed
chore: update r8/proguard readme section
1 parent a396716 commit aa2a248

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,12 @@ query.sortFacetsBy = SortFacetsBy.Count
140140
// query.sortFacetsBy = SortFacetsBy.Other("unforeseen value")
141141
```
142142

143-
### Proguard rules
143+
### R8 / Proguard rules
144144

145-
When proguard `minifyEnabled` option is set to `true` , you might get this error:
145+
If you use this library in an Android project which uses R8, there is nothing you have to do. The specific rules are
146+
already bundled into the JAR, which can be interpreted by R8 automatically.
146147

147-
```
148-
Can't locate argument-less serializer for class e.a.b.g.n.c (Kotlin reflection is not available). For generic classes, such as lists, please provide serializer explicitly.
149-
```
150-
151-
Add this proguard rule to solve it.
152-
153-
```
154-
-keep class com.algolia.search.model.** { *; }
155-
```
148+
If however, you don’t use R8 you have to apply the rules from [this file](src/jvmMain/resources/META-INF/proguard/algoliasearch.pro).
156149

157150
### Guides
158151

0 commit comments

Comments
 (0)