-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathproguard-project.txt
123 lines (100 loc) · 4.35 KB
/
proguard-project.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-dontshrink
-dontoptimize
-dontobfuscate
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
-keepattributes Exceptions,InnerClasses
-keep public class org.courville.nova.CustomApplication { *; }
-keep class com.archos.mediacenter.LibAvosReceiver
-keep class com.archos.mediacenter.video.utils.CodecDiscovery {*;}
#### MediaLib ####
-keep class com.archos.medialib.AvosMediaPlayer {
private void postEventFromNative(java.lang.Object, int, int, int, java.lang.Object);
}
-keep class com.archos.medialib.Subtitle {
public java.lang.Object createTimedTextSubtitle(int, int, java.lang.String);
public java.lang.Object createTimedBitmapSubtitle(int, int, int, int, int, int, android.graphics.Bitmap);
}
-keep class com.archos.medialib.AvosMediaMetadataRetriever {
private long mMediaMetadataRetrieverHandle;
}
-keep class com.archos.medialib.AvosMediaPlayer {
private long mMediaPlayerHandle;
private long mNativeWindowHandle;
}
-keep class com.archos.medialib.AvosBitmapHelper {
public android.graphics.Bitmap createRGBBitmap(int[], int, int, int, int, int, int);
}
-keep class com.archos.mediacenter.video.browser.Browser** { *; }
-dontwarn javax.**
-dontwarn org.eclipse.jetty.jmx.ObjectMBean
-dontwarn com.sun.**
-dontwarn org.seamless.**
-dontwarn com.bubblesoft.**
-dontnote com.bubblesoft.**
-dontwarn org.fourthline.**
-dontnote org.fourthline.**
-dontwarn org.eclipse.jetty.**
-dontnote org.eclipse.jetty.**
-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
private static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}
#apache http
-dontwarn org.apache.**
#okhttp3
-dontwarn okhttp3.internal.platform.ConscryptPlatform
-dontwarn org.ietf.**
-dontwarn java.lang.annotation.Annotation
# Retain generic type information for use by reflection by converters and adapters.
-keepattributes Signature
# Retain declared checked exceptions for use by a Proxy instance.
-keepattributes Exceptions
## retrofit2 rules https://github.com/square/retrofit/blob/master/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro
# Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
# EnclosingMethod is required to use InnerClasses.
-keepattributes Signature, InnerClasses, EnclosingMethod
# Retrofit does reflection on method and parameter annotations.
-keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations
# Retain service method parameters when optimizing.
-keepclassmembers,allowshrinking,allowobfuscation interface * {
@retrofit2.http.* <methods>;
}
# Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
-dontwarn kotlin.Unit
# Top-level functions that can only be used by Kotlin.
-dontwarn retrofit2.KotlinExtensions$*
# With R8 full mode, it sees no subtypes of Retrofit interfaces since they are created with a Proxy
# and replaces all potential values with null. Explicitly keeping the interfaces prevents this.
-if interface * { @retrofit2.http.* <methods>; }
-keep,allowobfuscation interface <1>
-dontwarn android.content.res.**
-dontwarn org.newsclub.net.unix.AFUNIXServerSocketChannel
-dontwarn org.newsclub.net.unix.AFUNIXSocketAddress
-dontwarn org.newsclub.net.unix.AFUNIXSocketChannel
-dontwarn sun.security.x509.X509Key
-dontwarn org.bouncycastle.crypto.DefaultBufferedBlockCipher
-dontwarn org.bouncycastle.crypto.modes.CBCModeCipher
-dontwarn org.bouncycastle.crypto.modes.CTRModeCipher
-keep class com.hierynomus.smbj.** { *; }
-keep class org.slf4j.** { *; }
-keep class org.eclipse.jetty.** { *; }