# scale-dimens **Repository Path**: liu_wanshun/scale-dimens ## Basic Information - **Project Name**: scale-dimens - **Description**: A gradle plugin for generate scaled dimens - **Primary Language**: Kotlin - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-13 - **Last Updated**: 2025-11-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # scale-dimens [![jitpack](https://jitpack.io/v/io.github.liu-wanshun/scale-dimens.svg)](https://jitpack.io/#io.github.liu-wanshun/scale-dimens) [![license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0) A gradle plugin for generate scaled dimens ## Compatibility | | Minimum version | |-----|----------------:| | AGP | 7.4.0 | | JDK | 11 | ## Add Gradle Plugin Using the [plugins DSL](https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block): ```kotlin pluginManagement { repositories { maven { url = uri("https://www.jitpack.io/") } } } plugins { id("io.github.liu-wanshun.scale-dimens") version "1.0.5" } ```
Using apply plugin (the old way) [legacy plugin application](https://docs.gradle.org/current/userguide/plugins.html#sec:old_plugin_application) [Learn how to apply plugins to subprojects](https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl) ```kotlin buildscript { repositories { maven { url = uri("https://www.jitpack.io/") } } dependencies { classpath("io.github.liu-wanshun.scale-dimens:plugins:1.0.5") } } apply(plugin = "io.github.liu-wanshun.scale-dimens") ```
## Example for config plugin Kotlin DSL: ```kotlin scaleDimens { baseSw = 360 generateSwList = intArrayOf(360, 720) } ``` Groovy DSL: ```gradle scaleDimens { baseSw = 360 generateSwList = [360, 720] } ```