Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

lauhwong/StableId

Open more actions menu

Repository files navigation

Stable-Id

固定android资源id,适配aapt和aapt2的资源编译模式。

使用

1.Maven仓库的SNAPSHOT版本,在buildscript中加入maven快照仓库,并加入classpath 依赖。

repositories {
        maven {
           url 'https://oss.sonatype.org/content/repositories/snapshots/'
        }
    }
dependencies {
        classpath 'com.github.lauhwong:stableid:1.0.3-SNAPSHOT'
    }

2.在application插件中引入stable-id插件。

apply plugin: 'com.miracles.stableid'

3.配置public.xml文件,定义固定资源id.可以在build.gradle中做一下的extension dsl配置。

stableXmlConfig{
   inXmlPath file("public.xml").absolutePath
}

或者,如果不配置该选项默认选择resDir/values/public.xml。

About

Android 固定资源id,适配aapt,aapt2

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.