lib/app_info/apk.rb in app-info-3.2.0 vs lib/app_info/apk.rb in app-info-3.3.0

- old
+ new

@@ -57,9 +57,17 @@ # @return [String] def activities components.select { |c| c.type == 'activity' } end + # @return [Array<String>] + def native_codes + @native_codes ||= zip.glob('lib/**/*').each_with_object([]) do |entry, obj| + lib = entry.name.split('/')[1] + obj << lib unless obj.include?(lib) + end + end + # @return [::Android::Apk] def apk @apk ||= ::Android::Apk.new(@file) end