lib/motion-kit.rb in motion-kit-0.18.0 vs lib/motion-kit.rb in motion-kit-1.0.0
- old
+ new
@@ -12,9 +12,11 @@
platform = app.respond_to?(:template) ? app.template : :ios
if platform.to_s.start_with?('ios')
platform_name = 'ios'
elsif platform.to_s.start_with?('osx')
platform_name = 'osx'
+ elsif platform.to_s.start_with?('tvos')
+ platform_name = 'tvos'
end
platform_lib = File.join(File.dirname(__FILE__), "motion-kit-#{platform_name}")
unless File.exists? platform_lib
raise "Sorry, the platform #{platform.inspect} (aka #{platform_name}) is not supported by MotionKit"
end