Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

it-objects/android-string-extractor-plugin

Repository files navigation

** THIS REPOSITORY IS OUTDATED SO THAT WE DECIDED TO ARCHIVE IT **

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

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages