4

card.io の難読化に問題があります。

card.io公式ページで指定されたタグを使用してstrings.xmlの文字列を変更しています。デバッグ中に、アプリは変更された文字列を使用します。しかし、proguard で署名済みの apk をエクスポートすると、アプリは独自の文字列を使用します。私たちを手伝ってくれますか?私は何が欠けていますか?

これは私の proguard.cfg コンテンツです: (サンプル アプリの proguard ファイルを使用します。)

-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*

-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.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference

-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 class * extends android.app.Activity {
   public void *(android.view.View);
}

-keepclassmembers enum * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
  public static final android.os.Parcelable$Creator *;
}

-keep class io.card.** 
-keepclassmembers class io.card.** {
   *;
}

## Good practice so that you don't end up logging sensitive info.
# Remove debug, verbose, and info Log calls
-assumenosideeffects class android.util.Log {
    public static *** d(...);
    public static *** v(...);
    public static *** i(...);
    ## Uncomment to remove warnings and errors as well
    # public static *** w(...);
    # public static *** e(...);
}
4

2 に答える 2

0

To add to Jeff's response, if there's a problem with a translation, we'd like to fix it! Please file bugs here.

I've also updated the example app to remove the strings examples. Thanks for letting us know that it was out of date.

于 2013-09-12T14:59:31.607 に答える