Git Product home page Git Product logo

androidresprefix's Introduction

AndroidResPrefix

批量添加 Android 项目的资源文件前缀,并替换其在代码和其他资源文件中的引用,以解决配置了 resourcePrefix 后的 lint 检查的 Resource with Wrong Prefix 问题。在重命名文件时保留对原有文件的引用,需要环境安装了 git。

目前支持的资源类型:ResType.kt

暂不打算支持的:

  • declare-styleable 属性
  • 自定义配置 xml 文件

用法

  1. clone 项目
  2. 在项目根目录新建文件 module_paths.txt 配置想要替换资源的 module 目录,每个 module 占一行;
  3. 在项目根目录新建文件 config.properties 添加属性 prefix 配置资源前缀;
  4. 运行 Main 函数

TODO

  • 支持 cli 方式使用
  • 优化过程输出

androidresprefix's People

Contributors

twiceyuan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.