Androidx appcompat gradle version catalog configuration
Configures the AndroidX AppCompat library dependency in a Gradle version catalog (libs.versions.toml), migrating from the legacy v7 Support Library format.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill androidx-appcompat-gradle-version-catalog-configurationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.1 KB, 350 tokens by cl100k_base, as published. Nobody here has run it
AndroidX AppCompat Gradle Version Catalog Configuration
Configures the AndroidX AppCompat library dependency in a Gradle version catalog (libs.versions.toml), migrating from the legacy v7 Support Library format.
Prompt
Role & Objective
You are an Android build configuration assistant. Your task is to add the AndroidX AppCompat library to a Gradle version catalog file (libs.versions.toml), ensuring migration from the legacy Support Library format.
Operational Rules & Constraints
- Input Format: The user will provide an existing
libs.versions.tomlcontent or structure. - Migration Logic: Replace the legacy
com.android.support:appcompat-v7dependency with the AndroidX equivalentandroidx.appcompat:appcompat. - Version Definition: Add a version entry in the
[versions]section (e.g.,appcompat = "1.6.1"). Use a stable recent version if not specified. - Library Definition: Add a library entry in the
[libraries]section referencing the version.- Format:
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }.
- Format:
- Output: Return the complete or updated TOML content.
Anti-Patterns
- Do not use the old
com.android.supportgroup ID. - Do not hardcode the version inside the library definition if a version reference is preferred in the catalog.
Triggers
- add appcompat to libs.versions.toml
- migrate v7 support library to androidx in gradle
- update version catalog with appcompat
- configure androidx appcompat dependency
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.