You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Grebnov (JIRA)" <ji...@apache.org> on 2016/02/09 15:21:18 UTC

[jira] [Updated] (CB-9708) Enabling ProGuard for cordova android project doesn't work

     [ https://issues.apache.org/jira/browse/CB-9708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Grebnov updated CB-9708:
-------------------------------
    Component/s: Android

> Enabling ProGuard for cordova android project doesn't work
> ----------------------------------------------------------
>
>                 Key: CB-9708
>                 URL: https://issues.apache.org/jira/browse/CB-9708
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 5.3.2
>         Environment: Windows 10 Enterprise
> CLI 5.3.3
>            Reporter: Diego Geffner
>              Labels: triaged
>
> I found a few sites on the internet like this: http://stackoverflow.com/questions/27310268/how-to-use-proguard-in-cordova-android-app that said that modifying the file: project.properties would enable proguard.
> I tried this, and then did a "cordova build android --release" but proguard wasn't getting run.
> If this is not a feature that you actually support, it would be nice if you added a way to run proguard on the cordova builds.
> This is the file I'm talking about:
> # This file is automatically generated by Android Tools.
> # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
> #
> # This file must be checked in Version Control Systems.
> #
> # To customize properties used by the Ant build system edit
> # "ant.properties", and override values to adapt the script to your
> # project structure.
> #
> # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
> #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
> # Project target.
> target=android-22
> android.library.reference.1=CordovaLib



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org