Skip to content

Extend Proguard Rules - #6792

Merged
yschimke merged 5 commits into
lysine-dev:masterfrom
yschimke:proguard
Nov 14, 2021
Merged

yschimke merged 5 commits into
lysine-dev:masterfrom
yschimke:proguard

Conversation

@yschimke

@yschimke yschimke commented Jul 29, 2021 •

Copy link
Copy Markdown
Collaborator

TODO show cleanup of proguard warnings

@yschimke yschimke added the android Relates to usage specifically on Android label Jul 29, 2021
bekuno added a commit to bekuno/cgeo that referenced this pull request Aug 29, 2021
Fix R8 missing class warnings, probaly fixed in next OkHttp release,
see lysine-dev/okhttp#6792
bekuno added a commit to cgeo/cgeo that referenced this pull request Sep 8, 2021
* add proguard rule related to OkHttp

Fix R8 missing class warnings, probaly fixed in next OkHttp release,
see lysine-dev/okhttp#6792
@yschimke
yschimke marked this pull request as ready for review October 29, 2021 09:27
@yschimke

Copy link
Copy Markdown
Collaborator Author

ping @swankjesse tested this on a separate project.

@G00fY2

G00fY2 commented Nov 10, 2021

Copy link
Copy Markdown
Contributor

I support this PR. We currently see these warnings in our production builds (AGP 7.0.3/OkHttp 4.9.2):

> Task :app:minifyProductionStoreReleaseWithR8
WARNING:Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /bitrise/src/app/build/outputs/mapping/productionStoreRelease/missing_rules.txt.
WARNING:R8: Missing class org.bouncycastle.jsse.BCSSLParameters (referenced from: void okhttp3.internal.platform.BouncyCastlePlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List) and 1 other context)
Missing class org.bouncycastle.jsse.BCSSLSocket (referenced from: void okhttp3.internal.platform.BouncyCastlePlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List) and 5 other contexts)
Missing class org.bouncycastle.jsse.provider.BouncyCastleJsseProvider (referenced from: void okhttp3.internal.platform.BouncyCastlePlatform.<init>())
Missing class org.conscrypt.Conscrypt$Version (referenced from: boolean okhttp3.internal.platform.ConscryptPlatform$Companion.atLeastVersion(int, int, int))
Missing class org.conscrypt.Conscrypt (referenced from: boolean okhttp3.internal.platform.ConscryptPlatform$Companion.atLeastVersion(int, int, int) and 4 other contexts)
Missing class org.conscrypt.ConscryptHostnameVerifier (referenced from: okhttp3.internal.platform.ConscryptPlatform$DisabledHostnameVerifier)
Missing class org.openjsse.javax.net.ssl.SSLParameters (referenced from: void okhttp3.internal.platform.OpenJSSEPlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List))
Missing class org.openjsse.javax.net.ssl.SSLSocket (referenced from: void okhttp3.internal.platform.OpenJSSEPlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List) and 1 other context)
Missing class org.openjsse.net.ssl.OpenJSSE (referenced from: void okhttp3.internal.platform.OpenJSSEPlatform.<init>())

@yschimke

Copy link
Copy Markdown
Collaborator Author

Failures are only the tests fixed in https://github.com/square/okhttp/pull/6892/files

@yschimke

Copy link
Copy Markdown
Collaborator Author

@swankjesse request post review

@yschimke
yschimke merged commit 9da841c into lysine-dev:master Nov 14, 2021

@swankjesse swankjesse left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yschimke
yschimke deleted the proguard branch January 6, 2022 08:42

@Goooler Goooler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we should pick up this change to 4.10.x branch? Cause I see the build failures on AGP 8.0.0-alpha02 & Okhttp 4.10.0, see Goooler/DemoApp#220 (comment).

yschimke added a commit to yschimke/okhttp that referenced this pull request Oct 9, 2022
@yschimke

yschimke commented Oct 9, 2022

Copy link
Copy Markdown
Collaborator Author

Fix here https://github.com/square/okhttp/pull/7471/files

yschimke added a commit that referenced this pull request Oct 10, 2022
(cherry picked from commit 9da841c)
adgeg added a commit to SocialGouv/pass_emploi_app that referenced this pull request Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android Relates to usage specifically on Android

Development

Successfully merging this pull request may close these issues.

4 participants