shwenzhang / AndResGuard

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

1.2.16版本无法兼容android gradle 3.0.1插件 #321

Closed YuTianTina closed 5 years ago

YuTianTina commented 5 years ago
class AndResGuardTask extends AbstractTask {
...
buildConfigs << new BuildInfo(
              {
                File(variant.packageApplicationProvider.outputDirectory, output.outputFileName)
              },
              variant.variantData.variantConfiguration.signingConfig,
              variant.variantData.variantConfiguration.applicationId,
              variant.buildType.name,
              variant.productFlavors,
              variantName,
              variant.mergedFlavor.minSdkVersion.apiLevel)
...
}

variant.packageApplicationProvider这个方法在3.0.1插件中没有,

simpleton commented 5 years ago

我这里做一下兼容,不好意思。没有测试旧版本

On Thu, Apr 18, 2019 at 4:48 AM YuTianTina notifications@github.com wrote:

是不是用outputs比较兼容

— 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/321#issuecomment-484471150, or mute the thread https://github.com/notifications/unsubscribe-auth/AADO6YW3ODIYMDDMFCQILJ3PRBNZ5ANCNFSM4HG4FQAQ .