Skip to content

liu-wanshun/scale-dimens

Repository files navigation

scale-dimens

Gradle Plugin Portal license

  A gradle plugin for generate scaled dimens

Compatibility

Minimum version
AGP 8.4.0
JDK 17

Add Gradle Plugin

Using the plugins DSL:

pluginManagement {
   repositories {
      gradlePluginPortal()
   }
}

plugins {
    id("io.github.liu-wanshun.scale-dimens") version "2.0.1"
}
Using apply plugin (the old way)

legacy plugin application

Learn how to apply plugins to subprojects

buildscript {
    repositories {
        gradlePluginPortal()
    }
    dependencies {
        classpath("io.github.liu-wanshun.scale-dimens:plugins:2.0.1")
    }
}

apply(plugin = "io.github.liu-wanshun.scale-dimens")

Example for config plugin

Kotlin DSL / Groovy DSL :

scaleDimens {
    configPath = rootProject.file("scale-demens.yaml")
}

Example configPath file : scale-demens.yaml

About

A gradle plugin for generate scaled dimens

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages