keke77 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Question about the applying the proguard on android #494

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run android application that are implementing 
2. Start video streaming in the app
3. There is crash and can verify in the log cat.

What is the expected output? What do you see instead?

Before we applying the proguard there is no crash, but after applying the 
proguard there is crash.
Is there any similar case I'm having? please check the my log and 

What version of the product are you using? On what operating system?
Android 4.4.2 Galaxy S3, and Android 4.1.2 Lg optimus G devices,
Proguard 5.1 

Please provide any additional information below.

Here is my proguard-project.txt and I attached the my proguard-project.txt and 
crash log on android.

-dontwarn org.msgpack.**
-dontwarn org.bytedeco.javacv.**
-dontwarn org.bytedeco.javacpp.**
-dontnote org.bytedeco.javacpp.**
-dontnote org.bytedeco.javacv.**
-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
-keep public class com.android.vending.licensing.ILicensingService
-keep class org.bytedeco.** { *; }
-keep class com.yishi.sixshot.player.** { *; }
-keep class net.sourceforge.zbar.** { *; }
-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }

-keepattributes *Annotation*

-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);
}

-keepclasseswithmembernames class * {
    native <methods>;
}

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

-keep class org.codehaus.** { *; }

-keep class org.bytedeco.javacpp.**
-keep class org.bytedeco.javacv.**
-keep class org.opencv.** { *; }

Original issue reported on code.google.com by hwcho1...@gmail.com on 17 Dec 2014 at 5:02

Attachments:

GoogleCodeExporter commented 9 years ago
There's a discussion about the problem and a solution here:
https://groups.google.com/forum/#!topic/javacpp-project/qAQkOUrqOZw
Please ask your questions on the mailing list, thank you!

Original comment by samuel.a...@gmail.com on 17 Dec 2014 at 7:19

GoogleCodeExporter commented 9 years ago
Thank you!,  It is very helpful discussion a solution, I fixed issue.

Original comment by hwcho1...@gmail.com on 17 Dec 2014 at 5:56