2016-01-11 17:19:48 +00:00
|
|
|
-keep public class com.google.android.gms.* { public *; }
|
|
|
|
-keepnames @com.google.android.gms.common.annotation.KeepName class *
|
|
|
|
-keepclassmembernames class * {
|
|
|
|
@com.google.android.gms.common.annotation.KeepName *;
|
|
|
|
}
|
2020-08-14 16:58:22 +00:00
|
|
|
-keep class org.webrtc.* { *; }
|
|
|
|
-keep class org.webrtc.audio.* { *; }
|
|
|
|
-keep class org.webrtc.voiceengine.* { *; }
|
2020-10-27 04:58:08 +00:00
|
|
|
# -keep class org.telegram.messenger.* { *; }
|
|
|
|
-keep class org.telegram.messenger.AnimatedFileDrawableStream { *; }
|
2020-03-30 12:00:09 +00:00
|
|
|
-keep class org.telegram.messenger.camera.* { *; }
|
|
|
|
-keep class org.telegram.messenger.secretmedia.* { *; }
|
|
|
|
-keep class org.telegram.messenger.support.* { *; }
|
|
|
|
-keep class org.telegram.messenger.time.* { *; }
|
|
|
|
-keep class org.telegram.messenger.video.* { *; }
|
|
|
|
-keep class org.telegram.messenger.voip.* { *; }
|
|
|
|
-keep class org.telegram.SQLite.** { *; }
|
2020-10-28 06:41:12 +00:00
|
|
|
-keep class org.telegram.ui.** { *; }
|
2020-03-30 12:00:09 +00:00
|
|
|
-keep class org.telegram.tgnet.ConnectionsManager { *; }
|
|
|
|
-keep class org.telegram.tgnet.NativeByteBuffer { *; }
|
|
|
|
-keep class org.telegram.tgnet.RequestDelegateInternal { *; }
|
|
|
|
-keep class org.telegram.tgnet.RequestTimeDelegate { *; }
|
|
|
|
-keep class org.telegram.tgnet.RequestDelegate { *; }
|
|
|
|
-keep class org.telegram.tgnet.QuickAckDelegate { *; }
|
|
|
|
-keep class org.telegram.tgnet.WriteToSocketDelegate { *; }
|
2020-06-24 16:15:30 +00:00
|
|
|
-keep class com.v2ray.ang.dto.** { *; }
|
2020-07-20 01:44:19 +00:00
|
|
|
-keep class org.openintents.openpgp.** { *; }
|
2020-06-24 16:15:30 +00:00
|
|
|
|
|
|
|
# -keep class io.github.trojan_gfw.** { *; }
|
|
|
|
|
|
|
|
-dontwarn com.coremedia.**
|
|
|
|
-dontwarn org.telegram.**
|
|
|
|
-dontwarn com.google.android.exoplayer2.ext.**
|
|
|
|
-dontwarn com.google.android.exoplayer2.util.**
|
|
|
|
-dontwarn com.google.android.exoplayer2.metadata.**
|
|
|
|
-dontwarn com.google.android.gms.**
|
|
|
|
-dontwarn com.google.common.cache.**
|
|
|
|
-dontwarn com.google.common.primitives.**
|
|
|
|
-dontwarn com.googlecode.mp4parser.**
|
|
|
|
|
2020-09-03 15:37:42 +00:00
|
|
|
-keep class com.google.android.datatransport.** { *; }
|
2019-01-23 17:03:33 +00:00
|
|
|
-keep class com.google.android.exoplayer2.ext.** { *; }
|
2023-04-03 13:15:52 +00:00
|
|
|
-keep class com.google.android.exoplayer2.extractor.FlacStreamMetadata { *; }
|
2020-03-30 12:00:09 +00:00
|
|
|
-keep class com.google.android.exoplayer2.metadata.flac.PictureFrame { *; }
|
2023-04-03 13:15:52 +00:00
|
|
|
-keep class com.google.android.exoplayer2.decoder.SimpleDecoderOutputBuffer { *; }
|
2023-09-13 17:27:29 +00:00
|
|
|
-keep class org.telegram.ui.Stories.recorder.FfmpegAudioWaveformLoader { *; }
|
2020-06-24 16:15:30 +00:00
|
|
|
|
2020-10-27 04:58:08 +00:00
|
|
|
-keep class org.dizitart.no2.** { *; }
|
2020-06-24 16:15:30 +00:00
|
|
|
-keep class org.slf4j.** { *; }
|
|
|
|
-keep class org.h2.** { *; }
|
|
|
|
-keep class org.objenesis.** { *; }
|
|
|
|
-keep class com.fasterxml.jackson.** { *; }
|
|
|
|
|
|
|
|
-keepnames class * implements java.io.Serializable
|
2020-10-27 04:58:08 +00:00
|
|
|
-keep class * implements org.dizitart.no2.mapper.Mappable { *; }
|
2020-06-24 16:15:30 +00:00
|
|
|
|
|
|
|
-keepclassmembers class * implements java.io.Serializable {
|
|
|
|
static final long serialVersionUID;
|
|
|
|
private static final java.io.ObjectStreamField[] serialPersistentFields;
|
|
|
|
!static !transient <fields>;
|
|
|
|
private void writeObject(java.io.ObjectOutputStream);
|
|
|
|
private void readObject(java.io.ObjectInputStream);
|
|
|
|
java.lang.Object writeReplace();
|
|
|
|
java.lang.Object readResolve();
|
|
|
|
}
|
|
|
|
|
2021-05-06 16:31:47 +00:00
|
|
|
-keep class tw.nekomimi.nekogram.InternalUpdater$ReleaseMetadata { *; }
|
|
|
|
-keep class tw.nekomimi.nekogram.InternalUpdater$ApkMetadata { *; }
|
2021-11-15 15:53:37 +00:00
|
|
|
-keep class tw.nekomimi.nekogram.InternalUpdater$GithubApiContents { *; }
|
|
|
|
-keep class tw.nekomimi.nekogram.InternalUpdater$NekoXReleaseNote { *; }
|
|
|
|
-keep class tw.nekomimi.nekogram.InternalUpdater$NekoXAPK { *; }
|
2020-07-27 00:58:40 +00:00
|
|
|
|
2021-12-31 18:10:02 +00:00
|
|
|
## https://developers.google.com/ml-kit/known-issues#android_issues
|
|
|
|
#-keep class com.google.mlkit.nl.languageid.internal.LanguageIdentificationJni { *; }
|
2021-11-17 15:52:45 +00:00
|
|
|
|
2020-07-26 08:03:38 +00:00
|
|
|
# Constant folding for resource integers may mean that a resource passed to this method appears to be unused. Keep the method to prevent this from happening.
|
|
|
|
-keep class com.google.android.exoplayer2.upstream.RawResourceDataSource {
|
|
|
|
public static android.net.Uri buildRawResourceUri(int);
|
|
|
|
}
|
|
|
|
|
|
|
|
# Methods accessed via reflection in DefaultExtractorsFactory
|
|
|
|
-dontnote com.google.android.exoplayer2.ext.flac.FlacLibrary
|
|
|
|
-keepclassmembers class com.google.android.exoplayer2.ext.flac.FlacLibrary {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
# Some members of this class are being accessed from native methods. Keep them unobfuscated.
|
2023-04-03 13:15:52 +00:00
|
|
|
-keep class com.google.android.exoplayer2.decoder.VideoDecoderOutputBuffer {
|
2020-07-26 08:03:38 +00:00
|
|
|
*;
|
|
|
|
}
|
|
|
|
|
|
|
|
-dontnote com.google.android.exoplayer2.ext.opus.LibopusAudioRenderer
|
|
|
|
-keepclassmembers class com.google.android.exoplayer2.ext.opus.LibopusAudioRenderer {
|
|
|
|
<init>(android.os.Handler, com.google.android.exoplayer2.audio.AudioRendererEventListener, com.google.android.exoplayer2.audio.AudioProcessor[]);
|
|
|
|
}
|
|
|
|
-dontnote com.google.android.exoplayer2.ext.flac.LibflacAudioRenderer
|
|
|
|
-keepclassmembers class com.google.android.exoplayer2.ext.flac.LibflacAudioRenderer {
|
|
|
|
<init>(android.os.Handler, com.google.android.exoplayer2.audio.AudioRendererEventListener, com.google.android.exoplayer2.audio.AudioProcessor[]);
|
|
|
|
}
|
|
|
|
-dontnote com.google.android.exoplayer2.ext.ffmpeg.FfmpegAudioRenderer
|
|
|
|
-keepclassmembers class com.google.android.exoplayer2.ext.ffmpeg.FfmpegAudioRenderer {
|
|
|
|
<init>(android.os.Handler, com.google.android.exoplayer2.audio.AudioRendererEventListener, com.google.android.exoplayer2.audio.AudioProcessor[]);
|
|
|
|
}
|
|
|
|
|
|
|
|
# Constructors accessed via reflection in DefaultExtractorsFactory
|
|
|
|
-dontnote com.google.android.exoplayer2.ext.flac.FlacExtractor
|
|
|
|
-keepclassmembers class com.google.android.exoplayer2.ext.flac.FlacExtractor {
|
|
|
|
<init>();
|
|
|
|
}
|
|
|
|
|
|
|
|
# Constructors accessed via reflection in DefaultDownloaderFactory
|
|
|
|
-dontnote com.google.android.exoplayer2.source.dash.offline.DashDownloader
|
|
|
|
-keepclassmembers class com.google.android.exoplayer2.source.dash.offline.DashDownloader {
|
|
|
|
<init>(android.net.Uri, java.util.List, com.google.android.exoplayer2.offline.DownloaderConstructorHelper);
|
|
|
|
}
|
|
|
|
-dontnote com.google.android.exoplayer2.source.hls.offline.HlsDownloader
|
|
|
|
-keepclassmembers class com.google.android.exoplayer2.source.hls.offline.HlsDownloader {
|
|
|
|
<init>(android.net.Uri, java.util.List, com.google.android.exoplayer2.offline.DownloaderConstructorHelper);
|
|
|
|
}
|
|
|
|
-dontnote com.google.android.exoplayer2.source.smoothstreaming.offline.SsDownloader
|
|
|
|
-keepclassmembers class com.google.android.exoplayer2.source.smoothstreaming.offline.SsDownloader {
|
|
|
|
<init>(android.net.Uri, java.util.List, com.google.android.exoplayer2.offline.DownloaderConstructorHelper);
|
|
|
|
}
|
|
|
|
|
|
|
|
# Constructors accessed via reflection in DownloadHelper
|
|
|
|
-dontnote com.google.android.exoplayer2.source.dash.DashMediaSource$Factory
|
|
|
|
-keepclasseswithmembers class com.google.android.exoplayer2.source.dash.DashMediaSource$Factory {
|
|
|
|
<init>(com.google.android.exoplayer2.upstream.DataSource$Factory);
|
|
|
|
}
|
|
|
|
-dontnote com.google.android.exoplayer2.source.hls.HlsMediaSource$Factory
|
|
|
|
-keepclasseswithmembers class com.google.android.exoplayer2.source.hls.HlsMediaSource$Factory {
|
|
|
|
<init>(com.google.android.exoplayer2.upstream.DataSource$Factory);
|
|
|
|
}
|
|
|
|
-dontnote com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource$Factory
|
|
|
|
-keepclasseswithmembers class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource$Factory {
|
|
|
|
<init>(com.google.android.exoplayer2.upstream.DataSource$Factory);
|
|
|
|
}
|
|
|
|
|
2022-08-12 15:23:51 +00:00
|
|
|
# Huawei Services
|
|
|
|
-keep class com.huawei.hianalytics.**{ *; }
|
|
|
|
-keep class com.huawei.updatesdk.**{ *; }
|
|
|
|
-keep class com.huawei.hms.**{ *; }
|
|
|
|
|
2020-07-26 08:03:38 +00:00
|
|
|
# Don't warn about checkerframework and Kotlin annotations
|
|
|
|
-dontwarn org.checkerframework.**
|
|
|
|
-dontwarn javax.annotation.**
|
|
|
|
|
2017-03-30 23:58:05 +00:00
|
|
|
# Use -keep to explicitly keep any other classes shrinking would remove
|
2020-11-15 14:13:57 +00:00
|
|
|
-dontobfuscate
|
2020-04-04 10:19:59 +00:00
|
|
|
|
|
|
|
# https://github.com/osmdroid/osmdroid/issues/633
|
|
|
|
-dontwarn org.osmdroid.tileprovider.modules.NetworkAvailabliltyCheck
|
|
|
|
# Osmdroid
|
|
|
|
-dontwarn org.osmdroid.**
|
2020-10-27 04:58:08 +00:00
|
|
|
|
2021-11-17 15:52:45 +00:00
|
|
|
-keepattributes SourceFile,LineNumberTable
|