Skip to content

Commit

Permalink
Keep TokenCompleteTextView generic types for R8 fullMode
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Aug 31, 2024
1 parent 6121ded commit 2d045ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ If you would like to get the most recent code in a jar, clone the project and ru

You may also add the library as an Android Library to your project. All the library files live in ```library```.

### R8 / ProGuard
The specific rules are [already bundled](library/src/main/resources/META-INF/proguard/autocomplete.pro) into the JAR which can be interpreted by R8 automatically.

Creating your auto complete view
--------------------------------

Expand Down
3 changes: 3 additions & 0 deletions library/src/main/resources/META-INF/proguard/autocomplete.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Keep generic types for R8 fullMode.
-keep,allowobfuscation,allowshrinking class com.tokenautocomplete.TokenCompleteTextView
-keep,allowobfuscation,allowshrinking class * extends com.tokenautocomplete.TokenCompleteTextView

0 comments on commit 2d045ce

Please sign in to comment.