mattgreen/motion-sqlite3

View on GitHub
lib/motion-sqlite3.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'motion-sqlite3/version'
require 'motion.h'

unless defined?(Motion::Project::Config)
  raise "This file must be required within a RubyMotion project Rakefile."
end

Motion::Project::App.setup do |app|
  Dir.glob(File.join(File.dirname(__FILE__), "motion-sqlite3/**/*.rb")).each do |file|
    app.files.unshift(file)
  end

  app.libs << '-lsqlite3'
  app.include "sqlite3.h"
end