[Gradle] Include `:tests` in `settings.gradle` by MGaetan89 · Pull Request #4906 · material-components/material-components-android

@MGaetan89

This commit makes the :tests module available in a Gradle build. This fixes false-positives in the version catalog (dexmaker not being used for example).

@MGaetan89

This commit makes the `:tests` module available in a Gradle build.
This fixes false-positives in the version catalog (`dexmaker` not being used for example).

MGaetan89

}

android {
namespace "com.google.android.material"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've used the package name defined here:

package="com.google.android.material">

@MGaetan89

@hunterstich

Hey @MGaetan89

By false-positive, you mean dependencies like dexmaker being flagged as unused?

@MGaetan89

Hey @MGaetan89

By false-positive, you mean dependencies like dexmaker being flagged as unused?

Yes, exactly

@hunterstich

Okay gotcha. I see that that would be a nice fix.

I was making sure everything still builds as expected and was getting some errors running ./gradlew assembleDebug - maybe related to non-transitive R classes? Are you seeing anything similar?