AzimoLabs / fastlane-plugin-automated-test-emulator-run

Plugin dedicated for Android platform. Wraps gradle task/shell command used for launching instrumented tests. Provides start of as many AVDs with various configs as needed before test run, waits for boot, kills emulators and deletes them from hdd after tests are finished or disturbed.
MIT License
113 stars 48 forks source link

Deprecated variant API in 2019 #32

Open bmjohns opened 4 years ago

bmjohns commented 4 years ago

I am getting warnings that multiple API's from variant are getting deprecated in 2019 only when I run the fastlane that initiates this plugin. Can we please update these before the end of the year and this no longer works?

[15:56:25]: $ /Users/bmj1/Library/Android/sdk/platform-tools/adb devices [15:56:25]: ▸ List of devices attached [15:56:25]: ▸ emulator-5556 device [15:56:25]: AVDs Booted! [15:56:25]: Starting tests [15:56:25]: Using gradle task. [15:56:25]: $ ANDROID_SERIAL= ./gradlew connectedUATDebugAndroidTest [15:56:27]: ▸ > Configure project :app [15:56:27]: ▸ WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'. [15:56:27]: ▸ It will be removed at the end of 2019. [15:56:27]: ▸ For more information, see https://d.android.com/r/tools/task-configuration-avoidance. [15:56:27]: ▸ To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. [15:56:27]: ▸ WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'. [15:56:27]: ▸ It will be removed at the end of 2019. [15:56:27]: ▸ For more information, see https://d.android.com/r/tools/task-configuration-avoidance. [15:56:27]: ▸ To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. [15:56:27]: ▸ WARNING: API 'variantOutput.getProcessManifest()' is obsolete and has been replaced with 'variantOutput.getProcessManifestProvider()'. [15:56:27]: ▸ It will be removed at the end of 2019. [15:56:27]: ▸ For more information, see https://d.android.com/r/tools/task-configuration-avoidance. [15:56:27]: ▸ To determine what is calling variantOutput.getProcessManifest(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. [15:56:27]: ▸ WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'. [15:56:27]: ▸ It will be removed at the end of 2019. [15:56:27]: ▸ For more information, see https://d.android.com/r/tools/task-configuration-avoidance. [15:56:27]: ▸ To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. [15:56:27]: ▸ WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'. [15:56:27]: ▸ It will be removed at the end of 2019. [15:56:27]: ▸ For more information, see https://d.android.com/r/tools/task-configuration-avoidance. [15:56:27]: ▸ To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. [15:56:27]: ▸ WARNING: API 'variant.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'. [15:56:27]: ▸ It will be removed at the end of 2019. [15:56:27]: ▸ For more information, see https://d.android.com/r/tools/task-configuration-avoidance. [15:56:27]: ▸ To determine what is calling variant.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. [15:56:27]: ▸ WARNING: API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()'. [15:56:27]: ▸ It will be removed at the end of 2019. [15:56:27]: ▸ For more information, see https://d.android.com/r/tools/task-configuration-avoidance. [15:56:27]: ▸ To determine what is calling variant.getExternalNativeBuildTasks(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.