Module: FIR::Info
- Included in:
- Util::ClassMethods
- Defined in:
- lib/fir/util/info.rb
Instance Method Summary collapse
- #aab_info(aab_path, options = {}) ⇒ Object
- #apk_info(apk_path, options = {}) ⇒ Object
- #info(*args, options) ⇒ Object
- #ipa_info(ipa_path, options = {}) ⇒ Object
Instance Method Details
#aab_info(aab_path, options = {}) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/fir/util/info.rb', line 33 def aab_info(aab_path, = {}) bundletool_jar_path = [:bundletool_jar_path] auto_download_bundletool_jar = [:auto_download_bundletool_jar] || false s = FIR::Parser::AabAnalysis.new(aab_path, bundletool_jar_path, auto_download_bundletool_jar) info = s.info info[:file_path] = aab_path info end |
#apk_info(apk_path, options = {}) ⇒ Object
42 43 44 45 46 47 |
# File 'lib/fir/util/info.rb', line 42 def apk_info(apk_path, = {}) apk = FIR::Parser::Apk.new(apk_path) info = apk.full_info() info[:file_path] = apk_path info end |
#info(*args, options) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fir/util/info.rb', line 6 def info(*args, ) file_path = File.absolute_path(args.first.to_s) is_all = ![:all].blank? check_file_exist file_path check_supported_file file_path file_type = File.extname(file_path).delete('.') logger.info "Analyzing #{file_type} file......" logger_info_dividing_line app_info = send("#{file_type}_info", file_path, full_info: is_all) app_info.each { |k, v| logger.info "#{k}: #{v}" } logger_info_blank_line end |