lib/app_info/apk.rb in app-info-2.6.5 vs lib/app_info/apk.rb in app-info-2.7.0.beta1
- old
+ new
@@ -5,10 +5,11 @@
require 'forwardable'
module AppInfo
# Parse APK file
class APK
+ include Helper::HumanFileSize
extend Forwardable
attr_reader :file
# APK Devices
@@ -22,14 +23,14 @@
def initialize(file)
@file = file
end
def size(human_size: false)
- AppInfo::Util.file_size(@file, human_size)
+ file_to_human_size(@file, human_size: human_size)
end
def os
- AppInfo::Platform::ANDROID
+ Platform::ANDROID
end
alias file_type os
def_delegators :apk, :manifest, :resource, :dex