An open API service indexing awesome lists of open source software.

https://github.com/bang88/fastlane-plugin-update_android_strings

A fastlane plugin help you update strings.xml
https://github.com/bang88/fastlane-plugin-update_android_strings

android fastlane strings xml

Last synced: 9 months ago
JSON representation

A fastlane plugin help you update strings.xml

Awesome Lists containing this project

README

          

# update_android_strings plugin

[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-update_android_strings)
[![Gem Version](https://badge.fury.io/rb/fastlane-plugin-update_android_strings.svg)](https://badge.fury.io/rb/fastlane-plugin-update_android_strings)
## Getting Started

This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-update_android_strings`, add it to your project by running:

```bash
fastlane add_plugin update_android_strings
```

## About update_android_strings

Update Android res strings.xml

**Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.

## Example

Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.

**Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
```ruby

lane :test do
# backup your strings.xml are recommended. restore it back when gradle build success.
update_android_strings(
# xml_path: 'path/to/your/strings.xml', # defaults: "android/app/src/main/res/values/strings.xml"
block: lambda { |strings|
# value must be a string, you can update what you want here.
strings['a'] = "string keys"
strings['b'] = "string keys"
strings['c'] = "string keys"
}
)
end

```
## Run tests for this plugin

To run both the tests, and code style validation, run

```
rake
```

To automatically fix many of the styling issues, use
```
rubocop -a
```

## Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

## Troubleshooting

If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.

## Using _fastlane_ Plugins

For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).

## About _fastlane_

_fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).