This PR simply disables Jetifier, as is not needed by the project. Basically, applying Jetifier without any library needing it it will waste time during build.
The PR first adds Bye Bye Jetifier Gradle Plugin to verify that Jetifier can be disabled. The result after applying the plugin and running:
./gradlew canISayByeByeJetifier -Pandroid.enableJetifier=false
is the following:
00:01:13: Executing task 'canISayByeByeJetifier --project-prop android.enableJetifier=false'...
Executing tasks: [canISayByeByeJetifier] in project /(path_edited)/Dota-Info
> Task :buildSrc:compileKotlin UP-TO-DATE
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy NO-SOURCE
> Task :buildSrc:pluginDescriptors UP-TO-DATE
> Task :buildSrc:processResources NO-SOURCE
> Task :buildSrc:classes UP-TO-DATE
> Task :buildSrc:inspectClassesForKotlinIC UP-TO-DATE
> Task :buildSrc:jar UP-TO-DATE
> Task :buildSrc:assemble UP-TO-DATE
> Task :buildSrc:compileTestKotlin NO-SOURCE
> Task :buildSrc:pluginUnderTestMetadata UP-TO-DATE
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:validatePlugins UP-TO-DATE
> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build UP-TO-DATE
> Configure project :components
ComposeOptions.kotlinCompilerVersion is deprecated. Compose now uses the kotlin compiler defined in your buildscript.
> Configure project :hero:ui-heroDetail
ComposeOptions.kotlinCompilerVersion is deprecated. Compose now uses the kotlin compiler defined in your buildscript.
> Configure project :hero:ui-heroList
ComposeOptions.kotlinCompilerVersion is deprecated. Compose now uses the kotlin compiler defined in your buildscript.
> Task :canISayByeByeJetifier
=========================================
Project: DotaInfo
=========================================
* No legacy android support usages found
=========================================
Project: app
=========================================
* No legacy android support usages found
=========================================
Project: components
=========================================
* No legacy android support usages found
=========================================
Project: constants
=========================================
* No legacy android support usages found
=========================================
Project: core
=========================================
* No legacy android support usages found
=========================================
Project: hero
=========================================
* No legacy android support usages found
=========================================
Project: hero-datasource
=========================================
* No legacy android support usages found
=========================================
Project: hero-datasource-test
=========================================
* No legacy android support usages found
=========================================
Project: hero-domain
=========================================
* No legacy android support usages found
=========================================
Project: hero-interactors
=========================================
* No legacy android support usages found
=========================================
Project: ui-heroDetail
=========================================
* No legacy android support usages found
=========================================
Project: ui-heroList
=========================================
* No legacy android support usages found
=====================================================================================
* No dependencies with legacy android support usages! You can say Bye Bye Jetifier. *
=====================================================================================
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 36s
1 actionable task: 1 executed
00:01:50: Task execution finished 'canISayByeByeJetifier --project-prop android.enableJetifier=false'.
The result confirms that Jetifier can be disabled:
No dependencies with legacy android support usages! You can say Bye Bye Jetifier
Hence, I've disabled Jetifier and reverted the commit applying the plugin. I've left all the steps for anyone to clarify any doubts.