Pro guard 会移除 airpush 吗?
Does Pro guard removes airpush?
所以我在 App Store 上有一些应用程序,当它们处于开发过程中时,比如没有使用密钥签名或任何通过 ADB 安装应用程序的东西,广告显示得很好。但是自从我开始使用 progruard 以来,广告就不再出现了。有解决办法吗?
哦,如果有帮助,我使用的是 Eclipse 而不是 Andro Studio
使用他们拥有的混淆器设置on the documentation
# 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:
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-keepattributes *Annotation*
-injars bin/classes
-injars libs
-outjars bin/classes-processed.jar
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.preference.Preference
-keep class com.bugsense.trace.models.** { *; }
-keepclassmembers class **.SmartWallActivity$AppWall$JavaScriptInterface
{
*;
}
-keepclassmembers class **.MraidView$JavaScriptInterface
{
*;
}
-keepclasseswithmembernames class *
{
native <methods>;
}
-keepclasseswithmembers class *
{
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class *
{
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers enum *
{
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable
{
public static final android.os.Parcelable$Creator *;
}
-keepclasseswithmembers class **.R$**
{
public static <fields>;
}
-keep class * extends android.view.View
{
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
void set*(***);
*** get*();
}
-keepclassmembers class *
{
static final % *;
static final java.lang.String *;
}
-keepattributes SetJavaScriptEnabled
-keepattributes JavascriptInterface
-keepattributes InlinedApi
-dontwarn com.bugsense.trace.models.**
所以我在 App Store 上有一些应用程序,当它们处于开发过程中时,比如没有使用密钥签名或任何通过 ADB 安装应用程序的东西,广告显示得很好。但是自从我开始使用 progruard 以来,广告就不再出现了。有解决办法吗? 哦,如果有帮助,我使用的是 Eclipse 而不是 Andro Studio
使用他们拥有的混淆器设置on the documentation
# 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:
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-keepattributes *Annotation*
-injars bin/classes
-injars libs
-outjars bin/classes-processed.jar
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.preference.Preference
-keep class com.bugsense.trace.models.** { *; }
-keepclassmembers class **.SmartWallActivity$AppWall$JavaScriptInterface
{
*;
}
-keepclassmembers class **.MraidView$JavaScriptInterface
{
*;
}
-keepclasseswithmembernames class *
{
native <methods>;
}
-keepclasseswithmembers class *
{
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class *
{
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers enum *
{
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable
{
public static final android.os.Parcelable$Creator *;
}
-keepclasseswithmembers class **.R$**
{
public static <fields>;
}
-keep class * extends android.view.View
{
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
void set*(***);
*** get*();
}
-keepclassmembers class *
{
static final % *;
static final java.lang.String *;
}
-keepattributes SetJavaScriptEnabled
-keepattributes JavascriptInterface
-keepattributes InlinedApi
-dontwarn com.bugsense.trace.models.**