shwenzhang / AndResGuard

proguard resource for Android by wechat team
Apache License 2.0
8.54k stars 1.54k forks source link

./gradlew resguardDebug不混淆(ProGuard) #179

Closed leleliu008 closed 7 years ago

leleliu008 commented 7 years ago

您好,我在使用过程中遇到如下的问题:

在Debug模式下,打开了混淆的开关,如下: buildTypes { debug { signingConfig signingConfigs.release minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project-debug.txt' } release { signingConfig signingConfigs.release minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project-release.txt' } } 但是使用./gradlew resguardDebug却不进行混淆(ProGuard),而./gradlew resguardRelease是进行混淆(ProGuard)的。 使用./gradlew assembleDebug和./gradlew assembleRelease都是可以进行混淆(ProGuard)的。

simpleton commented 7 years ago

请确认assembleDebug是进行ProGuard的,resguardDebug只是简单依赖了assembleDebug

On Wed, Aug 2, 2017 at 12:04 PM, fpliu notifications@github.com wrote:

您好,我在使用过程中遇到如下的问题:

在Debug模式下,打开了混淆的开关,如下: buildTypes { debug { signingConfig signingConfigs.release minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project-debug.txt' } release { signingConfig signingConfigs.release minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project-release.txt' } } 但是使用./gradlew resguardDebug却不进行混淆(ProGuard),而./gradlew resguardRelease是进行混淆(ProGuard)的。 使用./gradlew assembleDebug和./gradlew assembleRelease都是可以进行混淆(ProGuard)的。

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shwenzhang/AndResGuard/issues/179, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbvYnFb7t-QnNQBpgannUNFfayv6nTjks5sT_VegaJpZM4Oqkw2 .

leleliu008 commented 7 years ago

是的,由于我没有使用./gradlew clean清除缓存,所以没有执行,我执行了./gradlew clean之后就正常了。可以关闭这个问题了,我的问题,感谢!