Skip to content

Commit

Permalink
ProGuard config
Browse files Browse the repository at this point in the history
Fixes Kotlin#103,
suggested by ProGuard team here: https://sourceforge.net/p/proguard/bugs/660/
  • Loading branch information
Miha-x64 authored and elizarov committed Sep 6, 2017
1 parent ee16816 commit 99cdb38
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,14 @@ buildscript {
ext.kotlin_version = '1.1.4'
}
```

### ProGuard

In obfuscated code, fields with different types can have the same names,
and `AtomicReferenceFieldUpdater` may be unable to find the correct ones.
To avoid field overloading by type during obfuscation, add this to your config:
```
-keepclassmembernames class kotlinx.** {
volatile <fields>;
}
```

0 comments on commit 99cdb38

Please sign in to comment.