यहाँ मेरी ProGuard config है (मैं इसे एंड्रॉयड उपकरणों फ़ोल्डर से नकल की और कुछ पंक्तियाँProGuard साथ बाढ़ हटना नहीं कर सकते
-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
-optimizationpasses 5
-allowaccessmodification
-dontpreverify
# The remainder of this file is identical to the non-optimized version
# of the Proguard configuration file (except that the other file has
# flags to turn off optimization).
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
-keepattributes *Annotation*
-keep public class com.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
native <methods>;
}
# keep setters in Views so that animations can still work.
# see http://proguard.sourceforge.net/manual/examples.html#beans
-keepclassmembers public class * extends android.view.View {
void set*(***);
*** get*();
}
# We want to keep methods in Activity that could be used in the XML attribute onClick
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keepclassmembers class **.R$* {
public static <fields>;
}
# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn android.support.**
######################
# added by me
########################
# guava
-keepclasseswithmembers class com.google.common.base.internal.Finalizer{
<methods>;
}
-dontwarn sun.misc.Unsafe
-dontwarn com.google.common.collect.MinMaxPriorityQueue
#
#Action Bar Sherlock
-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }
-keep class com.actionbarsherlock.** { *; }
-keep interface com.actionbarsherlock.** { *; }
#-dontobfuscate
#-libraryjars libs/FlurryAgent.jar
जोड़ा मैं अपने अनुप्रयोग में घबराहट का उपयोग करना चाहते हैं, लेकिन जब मैं अंधेरा करना करने की कोशिश FlurryAgen.jar साथ मेरे ऐप ProGuard इस तरह त्रुटियों की एक DOSENS कह विफल रहता है:।
Warning: com.flurry.android.ay: can't find referenced class com.google.ads.AdListener
इसके अलावा ProGuard में विफल रहता है जब मैं सूत्रों अंधेरा करना नहीं की कोशिश
ProGuard साथ बाढ़ का उपयोग कैसे करें 012?और मेरे स्रोतों को खराब करने के लिए प्रोजेगार्ड कैसे बनाना है? http://korniltsev.ru/p/jBU0f1c.png -
अद्यतन इसके अलावा मुझे लगता है कि पहले से ही FlurryAgent.jar समझ से परे लगता है उल्लेख किया। क्या हम पूरे जार को कम करने की अनदेखी कर सकते हैं?
क्या आप यह सत्यापित करने में सक्षम हैं कि Flurry अभी भी अभ्यास में सही ढंग से आंकड़े एकत्र कर रहा है, '-dontwarn com.flurry। **' दिया गया है? मैं उसी स्थिति में हूं जो प्रोगुआर्ड का उपयोग फ्लोररी के उपयोग को करने वाले अनुप्रयोग पर करने की कोशिश कर रहा है, लेकिन जब मैं 'डोंटवार्न' का उपयोग करने की बात आती हूं तो थोड़ी सावधानी बरतती है कि मुझे वास्तव में समझ में नहीं आता कि क्या हो रहा है। –
फ़ॉलो करें: बस अपने उत्तर में थोड़ा अधिकार जोड़ने के लिए, मैंने फ्लोर एंड्रॉइड एसडीके को फिर से डाउनलोड किया है और फ़ाइल में * FlurryAds-READMEv3.0.5.pdf *, अंत में, एक बहुत ही संक्षिप्त खंड है पढ़ता है: * 7। ProGuard (वैकल्पिक) का उपयोग करना यदि आप अपने ऐप को रिलीज़ करने से पहले अपने एपीके पर ProGuard चलाने की योजना बना रहे हैं, तो आपको अपनी "proguard.cfg" फ़ाइल में निम्नलिखित जोड़ना होगा: -keep class com.flurry। ** {*; } -dontwarn com.flurry ** ** * तो मुझे लगता है कि मैं इस विधि का उपयोग करूंगा, भले ही इस चेतावनी को अनदेखा करने से मुझे कुछ हद तक असहज हो। –