Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

android-string-extractor-plugin Build Status Coverage Status Download

Gradle plugin which automatically extracts hardcoded strings from Android layouts.

The plugin scans all your flavors and layouts. It automatically extracts detected hardcoded values. Occurrences are replaced with generated references:

<!-- Before, Layout: example.xml -->
<TextView
  android:id="@+id/textView"
  android:text="Hardcoded value"
  />

<!-- After -->
<TextView
  android:id="@+id/textView"
  android:text="@string/example_textView_text"
  />

Usage

buildscript {
  repositories {
    jcenter()
  }
  dependencies {
    ...
    classpath 'de.ito.gradle.plugin:android-string-extractor:<version>'
  }
}

apply plugin: 'android-string-extractor'
$ ./gradlew extractStringsFromLayouts

Contributing

Contributing to this project is appreciated. Please check the contribution guidelines for more information.

About

Gradle plugin which automatically extracts hardcoded strings from Android layouts.

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.