Skip to content

Conversation

@Evleaps
Copy link
Contributor

@Evleaps Evleaps commented Dec 19, 2025

Goal:
The current sample looks outdated. Beginners who use the sample for testing may face the need to adapt it to modern standards. This makes it harder to understand how the plugin works and how to configure it.

Action:
To reduce the entry barrier for configuring the plugin in a project and to improve its testability with the latest library versions, I made the following changes to the sample:

  1. Moved dependencies to a .toml version catalog.
  2. Replaced buildSrc with the build convention plugins approach, connecting custom modules via the plugins mechanism.
  3. Updated all dependencies to their latest versions, including Kotlin 2.3.0.
  4. Migrated all .gradle files to .kts.
  5. Removed all warnings and deprecated functions.

@CLAassistant
Copy link

CLAassistant commented Dec 19, 2025

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Evleaps Evleaps marked this pull request as draft December 22, 2025 11:03
* gradlew assembleAffectedAndroidTests - assembles but does not run on device tests, useful when working with device labs
* gradlew runCustomAffectedUnitTests - runs jvm tests
* gradlew runCustomAffectedAndroidUnitTests - runs connected tests
* gradlew customAssembleAffectedAndroidTests - assembles but does not run on device tests, useful when working with device labs
Copy link
Contributor Author

Choose a reason for hiding this comment

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

why I renamed commands here?
This is not AMD source, this is sample application where were demonstrated how to create custom plugin/configuration using AMD API. The goal is not to override existing commands provided by AMD but show how to register own gradle commands which is using AMD API.

As the original commands already taken by AMD we creates new custom commands with a bit different (own) behaviour

Lem me know if I wrong

affectedModuleDetector = "0.6.2"
ktlint = "14.0.1"
mockitoKotlin = "1.6.0"
googleTruth = "1.4.5"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: all deps were updated to latest versions

}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: migrated from 11 to 17 according gradle recomendation


android {
namespace = "com.dropbox.detector.sample_util"
compileSdk = 36
Copy link
Contributor Author

Choose a reason for hiding this comment

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

compileSdk & targetSdk was changed from 34 to 36

@Evleaps Evleaps marked this pull request as ready for review December 22, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants