-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: proguard configuration #476 Remove useless rules. Add safe consumers rules. Optimize shrinking. * feat: update Prebid version to 2.0.2 Co-authored-by: Valentin Petrovych <valllentua9128@gmail.com>
- Loading branch information
1 parent
e10e018
commit 342ad3c
Showing
25 changed files
with
49 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-keep class org.prebid.mobile.admob.*Adapter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,12 @@ | ||
|
||
# GAM | ||
#pre GAMv20.0 | ||
-keep class com.google.android.gms.ads.doubleclick.PublisherAdRequest { | ||
public android.os.Bundle getCustomTargeting(); | ||
} | ||
|
||
-keep class com.google.android.gms.ads.doubleclick.PublisherAdRequest$Builder { | ||
public com.google.android.gms.ads.doubleclick.PublisherAdRequest build(); | ||
public com.google.android.gms.ads.doubleclick.PublisherAdRequest$Builder addCustomTargeting(java.lang.String, java.lang.String); | ||
} | ||
|
||
#GAMv20.0 | ||
-keep class com.google.android.gms.ads.admanager.AdManagerAdRequest { | ||
public android.os.Bundle getCustomTargeting(); | ||
} | ||
|
||
-keep class com.google.android.gms.ads.admanager.AdManagerAdRequest$Builder { | ||
public com.google.android.gms.ads.admanager.AdManagerAdRequest build(); | ||
public com.google.android.gms.ads.admanager.AdManagerAdRequest$Builder addCustomTargeting(java.lang.String, java.lang.String); | ||
} | ||
|
||
|
||
# From rendering | ||
|
||
# This ProGuard configuration file illustrates how to process a program | ||
# library, such that it remains usable as a library. | ||
# Usage: | ||
# java -jar proguard.jar @library.pro | ||
# | ||
|
||
# Specify the input jars, output jars, and library jars. | ||
# In this case, the input jar is the program library that we want to process. | ||
|
||
|
||
# Save the obfuscation mapping to a file, so we can de-obfuscate any stack | ||
# traces later on. Keep a fixed source file attribute and all line number | ||
# tables to get line numbers in the stack traces. | ||
# You can comment this out if you're not interested in stack traces. | ||
|
||
# -printmapping out.map | ||
-keepparameternames | ||
-renamesourcefileattribute SourceFile | ||
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,EnclosingMethod | ||
|
||
# Preserve all annotations. | ||
|
||
-keepattributes *Annotation* | ||
|
||
# Preserve all public classes, and their public and protected fields and | ||
# methods. | ||
|
||
-keep public class * { | ||
public protected *; | ||
} | ||
|
||
# Preserve all .class method names. | ||
|
||
-keepclassmembernames class * { | ||
java.lang.Class class$(java.lang.String); | ||
java.lang.Class class$(java.lang.String, boolean); | ||
} | ||
|
||
# Preserve all native method names and the names of their classes. | ||
|
||
-keepclasseswithmembernames class * { | ||
native <methods>; | ||
} | ||
|
||
# Preserve the special static methods that are required in all enumeration | ||
# classes. | ||
|
||
-keepclassmembers class * extends java.lang.Enum { | ||
public static **[] values(); | ||
public static ** valueOf(java.lang.String); | ||
} | ||
|
||
# Explicitly preserve all serialization members. The Serializable interface | ||
# is only a marker interface, so it wouldn't save them. | ||
# You can comment this out if your library doesn't use serialization. | ||
# If your code contains serializable classes that have to be backward | ||
# compatible, please refer to the manual. | ||
|
||
-keepclassmembers class * implements java.io.Serializable { | ||
static final long serialVersionUID; | ||
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(); | ||
} | ||
|
||
|
||
|
||
# Save names for all Prebid classes | ||
-keepnames class org.prebid.mobile.** | ||
-keepnames interface org.prebid.mobile.** | ||
-keepnames enum org.prebid.mobile.** | ||
|
||
# Google Ad Manager and AdMob | ||
-keep class org.prebid.mobile.PrebidNativeAd { *; } | ||
-keep class com.google.android.gms.ads.admanager.AdManagerAdView { *; } | ||
-keep class com.google.android.gms.ads.admanager.AdManagerAdRequest { *; } | ||
-keep class com.google.android.gms.ads.admanager.AdManagerAdRequest$Builder { *; } | ||
-keep interface com.google.android.gms.ads.nativead.NativeCustomFormatAd { *; } | ||
-keep interface com.google.android.gms.ads.formats.NativeCustomTemplateAd { *; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +0,0 @@ | ||
# | ||
# This ProGuard configuration file illustrates how to process a program | ||
# library, such that it remains usable as a library. | ||
# Usage: | ||
# java -jar proguard.jar @library.pro | ||
# | ||
|
||
# Specify the input jars, output jars, and library jars. | ||
# In this case, the input jar is the program library that we want to process. | ||
|
||
|
||
# Save the obfuscation mapping to a file, so we can de-obfuscate any stack | ||
# traces later on. Keep a fixed source file attribute and all line number | ||
# tables to get line numbers in the stack traces. | ||
# You can comment this out if you're not interested in stack traces. | ||
|
||
-printmapping out.map | ||
-keepparameternames | ||
-renamesourcefileattribute SourceFile | ||
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,EnclosingMethod | ||
|
||
# Preserve all annotations. | ||
|
||
-keepattributes *Annotation* | ||
|
||
# Preserve all public classes, and their public and protected fields and | ||
# methods. | ||
|
||
-keep public class * { | ||
public protected *; | ||
} | ||
|
||
# Preserve all .class method names. | ||
|
||
-keepclassmembernames class * { | ||
java.lang.Class class$(java.lang.String); | ||
java.lang.Class class$(java.lang.String, boolean); | ||
} | ||
|
||
# Preserve all native method names and the names of their classes. | ||
|
||
-keepclasseswithmembernames class * { | ||
native <methods>; | ||
} | ||
|
||
# Preserve the special static methods that are required in all enumeration | ||
# classes. | ||
|
||
-keepclassmembers class * extends java.lang.Enum { | ||
public static **[] values(); | ||
public static ** valueOf(java.lang.String); | ||
} | ||
|
||
# Explicitly preserve all serialization members. The Serializable interface | ||
# is only a marker interface, so it wouldn't save them. | ||
# You can comment this out if your library doesn't use serialization. | ||
# If your code contains serializable classes that have to be backward | ||
# compatible, please refer to the manual. | ||
|
||
-keepclassmembers class * implements java.io.Serializable { | ||
static final long serialVersionUID; | ||
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(); | ||
} | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-keep class com.applovin.mediation.adapters.PrebidMaxMediationAdapter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +0,0 @@ | ||
|
||
## Public API | ||
#-keepattributes InnerClasses, Signature | ||
#-keep public enum org.prebid.mobile.TargetingParams$** { | ||
# *; | ||
#} | ||
#-keep public class * { | ||
# public *; | ||
#} | ||
|
||
Oops, something went wrong.