Proguard for Google Analyticsに追加するkeep文を知っている人はいますか?Proguard Google Analytics
私は今、このラインを持っていますが、何も報告されていない何らかの理由で...
# google analytics, uncomment if using:
-keep class com.google.android.apps.analytics.PipelinedRequester$Callbacks
Proguard for Google Analyticsに追加するkeep文を知っている人はいますか?Proguard Google Analytics
私は今、このラインを持っていますが、何も報告されていない何らかの理由で...
# google analytics, uncomment if using:
-keep class com.google.android.apps.analytics.PipelinedRequester$Callbacks
は、私は私のproguard.cfgにおけるジェネリック
-keep public class com.google.** {*;}
を持っており、Google Analyticsが正常に動作します。
これを試してください。これで問題が解決しない場合、問題はProguardではなく、Googleアナリティクスの設定や接続に関する問題です。
あなたはaar
パッケージで公式ProGuardのルールファイルを見つけることができる、で探します
アンドロイド-SDK-WINDOWS \エクストラグーグル\ \ m2repository \ COM \ \アンドロイド\ GMSグーグル\プレイサービス - 分析\ XXX \果たし-サービス - 分析 - xxxaar
proguard.txt:
-keep class * extends java.util.ListResourceBundle {
protected java.lang.Object[][] getContents();
}
# Keep SafeParcelable value, needed for reflection. This is required to support backwards
# compatibility of some classes.
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}
# Keep the names of classes/members we need for client functionality.
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}
# Needed for Parcelable/SafeParcelable Creators to not get stripped
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
# Needed when building against the Marshmallow SDK
-dontwarn org.apache.http.**
# Needed when building against pre-Marshmallow SDK.
-dontwarn android.security.NetworkSecurityPolicy
セクション詳細については、このページのProGuard例外を作成してください。https://developers.google.com/android/guides/setup