Skip to content
This repository was archived by the owner on Jun 28, 2019. It is now read-only.

Commit 9f2fe55

Browse files
committed
Proguardルール更新
1 parent 743d7d5 commit 9f2fe55

File tree

2 files changed

+60
-33
lines changed

2 files changed

+60
-33
lines changed

studyplus-android-sdk2/lib-proguard-rules.pro

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
22+
23+
# SDK2
24+
# Network Rsponse
25+
-keepnames class jp.studyplus.android.sdk.internal.api.response.** { *; }
26+
27+
# Kotlin Coroutines
28+
# ServiceLoader support
29+
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
30+
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
31+
32+
# Most of volatile fields are updated with AFU and should not be mangled
33+
-keepclassmembernames class kotlinx.** {
34+
volatile <fields>;
35+
}
36+
37+
# Stuire
38+
# JSR 305 annotations are for embedding nullability information.
39+
-dontwarn javax.annotation.**
40+
# A resource is loaded with a relative path so the package of this class must be preserved.
41+
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
42+
# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
43+
-dontwarn org.codehaus.mojo.animal_sniffer.*
44+
# OkHttp platform used only on JVM and when Conscrypt dependency is available.
45+
-dontwarn okhttp3.internal.platform.ConscryptPlatform
46+
47+
# Retrofit does reflection on generic parameters and InnerClass is required to use Signature.
48+
-keepattributes Signature, InnerClasses
49+
# Retain service method parameters when optimizing.
50+
-keepclassmembers,allowshrinking,allowobfuscation interface * {
51+
@retrofit2.http.* <methods>;
52+
}
53+
# Ignore annotation used for build tooling.
54+
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
55+
# Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
56+
-dontwarn kotlin.Unit
57+
# Top-level functions that can only be used by Kotlin.
58+
-dontwarn retrofit2.-KotlinExtensions
59+
60+

0 commit comments

Comments
 (0)