Skip to content

Commit

Permalink
lightsail-network#450: fixed okhttp3 classpath issue on android platform
Browse files Browse the repository at this point in the history
  • Loading branch information
sreuland committed Dec 2, 2022
1 parent 3255ceb commit a912082
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ shadowJar {
duplicatesStrategy DuplicatesStrategy.EXCLUDE
archiveClassifier.set('')
archiveFileName.set('stellar-sdk.jar')
relocate 'com.','shadow.com.'
relocate('com.', 'shadow.com.') {
// okhttp hardcodes android platform class loading to this package, shadowing would attempt to rewrite the hardcode
// to be 'shadow.com.android.org.conscrypt' which we don't want to happen.
exclude 'com.android.org.conscrypt'
}
relocate 'net.','shadow.net.'
relocate 'javax.annotation', 'shadow.javax.annotation'
relocate 'org.apache','shadow.org.apache'
Expand Down

0 comments on commit a912082

Please sign in to comment.