Update deprecated method

Replace the deprecated call to `variant.getPackageApplication()` with `variant.getOutputs().getPackageApplication()`