icyleaf / app-info

Teardown parser tool for mac, windows and mobile app (ipa, apk and aab file) and dSYM.zip file, analysis metedata like version, name, icon etc.
MIT License
51 stars 8 forks source link

[Feature] dSYM parser add multi dsym support #56

Closed icyleaf closed 1 year ago

icyleaf commented 1 year ago

This is a feature and also a breaking changes.

AppInfo::DSYM class move mostly of methods to a new class named AppInfo::DSYM::DebugInfo, and use .files method iterater the value.

Example

Get dSYM object, release_version etc

Before

p = AppInfo.parse('dsym.zip')
p.object             # => 'AppInfo'
p.release_version    # => '1.0'

After

p = AppInfo.parse('dsym.zip')

# Get all dSYM debug info file
p.files                # => [<AppInfo::DSYM::DebugInfo>, <AppInfo::DSYM::DebugInfo>]

# Or use iterater
p.each_file do |file|
  p.object             # => 'AppInfo'
  p.release_version    # => '1.0'
end        

More examples to review spec/app_info/dsym_spec.rb file.