# ScreenAdapter **Repository Path**: htgogo/ScreenAdapter ## Basic Information - **Project Name**: ScreenAdapter - **Description**: 屏幕适配dimens文件生成jar - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-11 - **Last Updated**: 2024-11-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ScreenAdapter Android 屏幕适配dimension文件生成jar工具 ## 安装 添加远程仓库根据创建项目的 Android Studio 版本有所不同。 ### Android Studio Arctic Fox以下版本 在项目根目录的 `build.gradle` 添加仓库: ```groovy allprojects { repositories { // ... maven { url 'https://jitpack.io' } } } ``` ### Android Studio Arctic Fox以上版本 在项目根目录的 `settings.gradle` 添加仓库: ```groovy dependencyResolutionManagement { repositories { // ... maven { url 'https://jitpack.io' } //or kotlin maven(url = "https://jitpack.io") } } ``` 然后在 module 的 `build.gradle` 添加依赖框架: ```groovy dependencies { //常用工具类 implementation 'com.gitee.htgogo:ScreenAdapter:1.0.0' } ``` ## 使用 ```kotlin fun main(){ DimensionGenerator.Companion.makeDimensionFiles(moduleName = "app") } ```