oliviergauthier / gradle-appcenter-plugin

This gradle plugin allow you to upload each build variant of your android application to separate AppCenter Apps.
MIT License
84 stars 44 forks source link

Fixed usage of deprecated ApkVariant methods in AGP 3.3+ #5

Closed italankin closed 5 years ago

italankin commented 5 years ago

As of plugin version 1.1.2, the following warning occurs:

WARNING: API 'variantOutput.getPackageApplication()' is obsolete and has been
replaced with 'variant.getPackageApplicationProvider()'.

It is triggered by this call:

t.file = output.outputFile

This PR fixes the issue by using Task Configuration Avoidance API.