Hi,

I try to strip all log calls from release app using proguard
(-assumenosideeffects) but no any succes..
Ubuntu 12.04
intellij idea 12 Community Edition
SDK 16
Android 4.1.2

Created test project with one activity:

public class MyActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

    @Override
    public void onResume(){
        super.onResume();
        android.util.Log.d("0000", "start MyActivity");
    }
}

*project.properties*
proguard.config=${sdk.dir}/tools/proguard/proguard-android-optimize.txt:proguard-project.txt

# Project target.
target=android-16

*proguard-project.txt*

-assumenosideeffects class android.util.Log {
    public static int d(...);
    public static int w(...);
    public static int i(...);
}

Main goal: strip Logs from release version of the app, NOT working
Steps:
Build -> Generate signed APK...
After installing signet apk into device LogCat show all logs:
12-24 15:59:08.773: DEBUG/0000(2074): start MyActivity

Any suggestions?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to