https://github.com/dnlbauer/resdiff
A tool for comparing android resource files similar to unix diff
https://github.com/dnlbauer/resdiff
Last synced: 11 months ago
JSON representation
A tool for comparing android resource files similar to unix diff
- Host: GitHub
- URL: https://github.com/dnlbauer/resdiff
- Owner: dnlbauer
- License: mit
- Created: 2015-09-23T22:13:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-23T23:06:40.000Z (over 10 years ago)
- Last Synced: 2025-07-02T09:49:52.948Z (12 months ago)
- Language: Kotlin
- Size: 3 MB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# resdiff
A tool for comparing android resource files similar to unix diff
## Usage
```
danijoo > java -jar resdiff.jar --help
usage: resdiff [OPTIONS]... FILES
-h,--help Show this screen
-t,--type only compare this resource type (string, bool,
integer, color, dimen)
-y,--side-by-side output in columns
```
## Examples
### Table view
```
danijoo > java -jar resdiff.jar -y resourcefile1.xml resourcefile2.xml
Found 9 differences (1 added, 2 removed).
+-----------+--------------------------+-------------------------------+-----------------------------------+
| Type | Name | Left | Right |
+-----------+--------------------------+-------------------------------+-----------------------------------+
| String | not_matching_string | This resource is not matching | This resource is not matching!!!! |
| String | missing_string_res | This misses in the other file | |
| String | res_with_reference | @string/is_just_a_string | @string/is_just_another_string |
| String | added_string_res | | This misses in the other file |
| Boolean | not_matching_bool | false | true |
| Boolean | a_missing_boolean | true | |
| Integer | not_matching_int | 122 | 533 |
| Dimension | not_matching_dimen | 1sp | 99px |
| Color | not_matching_color | #001230 | #666666 |
+-----------+--------------------------+-------------------------------+-----------------------------------+
```
### Normal view
```
danijoo > java -jar resdiff.jar resourcefile1.xml resourcefile2.xml
Found 9 differences (1 added, 2 removed).
< This resource is not matching
---
> This resource is not matching!!!!
< This misses in the other file
< @string/is_just_a_string
---
> @string/is_just_another_string