Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get APK and IPA version numbers with Ruby
require 'ruby_apk'
require 'read_ipa'
# read version info from APK
apk ='<APK_FILENAME>.apk')
puts apk.manifest.version_name
puts apk.manifest.version_code
# read version info from IPA
ipa ='<IPA_FILENAME>.ipa')
puts ipa.version
puts ipa.short_version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.