Skip to content

Commit 776b370

Browse files
Miha-x64elizarov
authored andcommitted
ProGuard config
Fixes #103, suggested by ProGuard team here: https://sourceforge.net/p/proguard/bugs/660/
1 parent 49d6a3e commit 776b370

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,14 @@ buildscript {
9797
ext.kotlin_version = '1.1.4'
9898
}
9999
```
100+
101+
### ProGuard
102+
103+
In obfuscated code, fields with different types can have the same names,
104+
and `AtomicReferenceFieldUpdater` may be unable to find the correct ones.
105+
To avoid field overloading by type during obfuscation, add this to your config:
106+
```
107+
-keepclassmembernames class kotlinx.** {
108+
volatile <fields>;
109+
}
110+
```

0 commit comments

Comments
 (0)