Method: AppInfo::AAB#native_codes

Defined in:
lib/app_info/aab.rb

#native_codes(base_path: BASE_PATH) ⇒ Array<String>

Parameters:

  • base_path (String) (defaults to: BASE_PATH)

Returns:

  • (Array<String>)


85
86
87
88
89
90
91
# File 'lib/app_info/aab.rb', line 85

def native_codes(base_path: BASE_PATH)
  @native_codes ||= zip.glob(::File.join(base_path, 'lib/**/*'))
                       .each_with_object([]) do |entry, obj|
                         lib = entry.name.split('/')[2]
                         obj << lib unless obj.include?(lib)
                       end
end