Skip to content

Instantly share code, notes, and snippets.

@dingzhihu
dingzhihu / conflicting_strings.rb
Created September 8, 2012 03:16
find duplicate strings in android string resources
#!/usr/bin/env ruby -w
# find duplicate strings in android string resources
# usage: ruby conflicting_strings strings.xml other_strings.xml
require 'xmlsimple'
def parse_string_resources(file_name)
strings = XmlSimple.xml_in(file_name)['string']