Sha256: f62c313ffeb70d113e3310f0e8aab71f680e62358f6a2e576e6330e8280da01e
Contents?: true
Size: 1.93 KB
Versions: 3
Compression:
Stored size: 1.93 KB
Contents
# frozen_string_literal: true require 'app_info/version' require 'app_info/core_ext' require 'app_info/const' require 'app_info/certificate' require 'app_info/helper' require 'app_info/error' require 'app_info/file' require 'app_info/info_plist' require 'app_info/mobile_provision' require 'app_info/pack_info' require 'app_info/apple' require 'app_info/macos' require 'app_info/ipa' require 'app_info/ipa/plugin' require 'app_info/ipa/framework' require 'app_info/android' require 'app_info/apk' require 'app_info/aab' require 'app_info/harmonyos' require 'app_info/happ' require 'app_info/hap' require 'app_info/proguard' require 'app_info/dsym' require 'app_info/pe' # fix invalid date format warnings Zip.warn_invalid_date = false # AppInfo Module module AppInfo extend Helper::FileTypeDetection class << self # Get a new parser for automatic def parse(file) raise NotFoundError, file unless ::File.exist?(file) parser = case file_type(file) when Format::IPA then IPA.new(file) when Format::APK then APK.new(file) when Format::AAB then AAB.new(file) when Format::HAP then HAP.new(file) when Format::HAPP then HAPP.new(file) when Format::MOBILEPROVISION then MobileProvision.new(file) when Format::DSYM then DSYM.new(file) when Format::PROGUARD then Proguard.new(file) when Format::MACOS then Macos.new(file) when Format::PE then PE.new(file) else raise UnknownFormatError, "Do not detect file format: #{file}" end return parser unless block_given? # call block and clear! yield parser parser.clear! end alias dump parse def parse?(file) file_type(file) != Format::UNKNOWN end def logger @logger ||= Logger.new($stdout, level: :warn) end attr_writer :logger end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
app-info-3.3.0 | lib/app_info.rb |
app-info-3.2.0 | lib/app_info.rb |
app-info-3.2.0.beta1 | lib/app_info.rb |