fixed build warnings

This commit is contained in:
nuclearfog 2023-01-22 17:39:25 +01:00
parent 8ae896e9d4
commit d41a762ba3
No known key found for this signature in database
GPG Key ID: 03488A185C476379
3 changed files with 26 additions and 6 deletions

View File

@ -5,18 +5,37 @@
# keep these libraries but allow obfuscating
-dontwarn org.conscrypt.Conscrypt
#noinspection ShrinkerUnresolvedReference
-keep,allowobfuscation, allowoptimization class org.conscrypt.Conscrypt {*;}
-adaptclassstrings org.conscrypt.Conscrypt
-dontwarn org.conscrypt.OpenSSLProvider
#noinspection ShrinkerUnresolvedReference
-keep,allowobfuscation, allowoptimization class org.conscrypt.OpenSSLProvider {*;}
-adaptclassstrings org.conscrypt.OpenSSLProvider
-dontwarn org.conscrypt.Conscrypt$Version
-keep,allowobfuscation, allowoptimization class org.conscrypt.Conscrypt$Version {*;}
-dontwarn org.conscrypt.ConscryptHostnameVerifier
-keep,allowobfuscation, allowoptimization class org.conscrypt.ConscryptHostnameVerifier {*;}
-dontwarn android.support.v8.renderscript.**
-keep,allowobfuscation, allowoptimization class android.support.v8.renderscript.** {*;}
-adaptclassstrings android.support.v8.renderscript.**
-dontwarn org.bouncycastle.jsse.BCSSLParameters
-keep,allowobfuscation, allowoptimization class org.bouncycastle.jsse.BCSSLParameters {*;}
-dontwarn org.bouncycastle.jsse.BCSSLSocket
-keep,allowobfuscation, allowoptimization class org.bouncycastle.jsse.BCSSLSocket {*;}
-dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
-keep,allowobfuscation, allowoptimization class org.bouncycastle.jsse.provider.BouncyCastleJsseProvider {*;}
-dontwarn org.openjsse.javax.net.ssl.SSLParameters
-keep,allowobfuscation, allowoptimization class org.openjsse.javax.net.ssl.SSLParameters {*;}
-dontwarn org.openjsse.javax.net.ssl.SSLSocket
-keep,allowobfuscation, allowoptimization class org.openjsse.javax.net.ssl.SSLSocket {*;}
-dontwarn org.openjsse.net.ssl.OpenJSSE
-keep,allowobfuscation, allowoptimization class org.openjsse.net.ssl.OpenJSSE {*;}
-dontwarn javax.annotation.Nullable

View File

@ -10,6 +10,7 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29"

View File

@ -10,7 +10,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:7.4.0'
classpath 'io.michaelrocks:paranoid-gradle-plugin:0.3.7'
classpath 'io.michaelrocks:paranoid-gradle-plugin:0.3.7' // fixme this library causes build failure (Transform API). Find replacement
classpath 'gradle.plugin.ru.cleverpumpkin.proguard-dictionaries-generator:plugin:1.0.8'
}
}