This repository has been archived by the owner on Apr 5, 2023. It is now read-only.
forked from optimizely/android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathproguard-rules.txt
66 lines (51 loc) · 2.06 KB
/
proguard-rules.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
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/jdeffibaugh/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
## Below are the suggested rules from the developer documentation:
## https://developers.optimizely.com/x/solutions/sdks/reference/index.html?language=android&platform=mobile#installation
# Optimizely
-keep class com.optimizely.ab.android.datafile_handler.DatafileService
-keepclassmembers class com.optimizely.ab.android.datafile_handler.DatafileService {
public *;
}
-keep class com.optimizely.ab.android.event_handler.EventIntentService
-keepclassmembers class com.optimizely.ab.android.event_handler.EventIntentService {
public *;
}
-keep class com.optimizely.ab.config.**
-keepclassmembers class com.optimizely.ab.config.** {
*;
}
# Keep Payload classes that get sent to Optimizely's backend
-keep class com.optimizely.ab.event.internal.payload.** { *; }
# Keep these for logging purposes
-keep class com.optimizely.ab.bucketing.DecisionService { *; }
-keep class com.optimizely.ab.Optimizely { *; }
# Gson
-keepnames class com.google.gson.Gson
# Safely ignore warnings about other libraries since we are using Gson
-dontwarn com.fasterxml.jackson.**
-dontwarn org.json.**
# Annotations
-dontwarn javax.annotation.**
# Findbugs
-dontwarn edu.umd.cs.findbugs.annotations.SuppressFBWarnings
# slf4j
-dontwarn org.slf4j.**
# Android Logger
-keep class com.noveogroup.android.log.** { *; }
-optimizations !class/unboxing/enum
-dontwarn com.google.gson.**
-dontwarn com.optimizely.ab.config.parser.**