Skip to content

Commit b03258b

Browse files
connyduckDavid-Development
authored andcommitted
Update R8/ProGuard section of README.md
Signed-off-by: Konrad Pozniak <[email protected]>
1 parent 71a4638 commit b03258b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,9 @@ if (VersionCheckHelper.verifyMinVersion(context, MIN_NEXTCLOUD_FILES_APP_VERSION
285285

286286
## R8/ProGuard
287287

288-
R8 and ProGuard rules are bundled into [SSO](lib/consumer-proguard-rules.pro).
289-
The bundled rules do **not** cover enabled obfuscation.
290-
Therefore it is **recommended** to add `-dontobfuscate` to your app-specific proguard rules.
288+
R8 and ProGuard rules are bundled into [SSO](lib/consumer-proguard-rules.pro) so it will automatically work without additional app level rules.
291289

292-
With [R8 full mode](https://r8.googlesource.com/r8/+/refs/heads/master/compatibility-faq.md#r8-full-mode) being enabled by default since [AGP 8.0](https://developer.android.com/build/releases/gradle-plugin#default-changes), you will probably need to handle following app-specific rules yourself (or disable full mode):
290+
Keep in mind that you will still need custom rules for your classes used with Retrofit, Gson or similar tools.
293291

294292
### Gson
295293
According to [Gson's sample rules](https://github.com/google/gson/blob/master/examples/android-proguard-example/proguard.cfg#L14), you still need to configure rules for your gson-handled classes.

0 commit comments

Comments
 (0)