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
- Host: GitHub
- URL: https://github.com/bang88/fastlane-plugin-update_android_strings
- Owner: BANG88
- License: mit
- Created: 2017-08-15T10:34:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-15T13:16:51.000Z (almost 9 years ago)
- Last Synced: 2025-03-30T15:47:04.059Z (over 1 year ago)
- Topics: android, fastlane, strings, xml
- Language: Ruby
- Homepage:
- Size: 11.7 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# update_android_strings plugin
[](https://rubygems.org/gems/fastlane-plugin-update_android_strings)
[](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).