Last active
August 29, 2015 14:04
-
-
Save jonmorehouse/ff7c291780b6514f56d9 to your computer and use it in GitHub Desktop.
Sample Rakefile using both firebase and objective-leveldb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
$:.unshift("/Library/RubyMotion2.29/lib") | |
require 'motion/project/template/ios' | |
begin | |
require 'bundler' | |
Bundler.require | |
rescue LoadError | |
end | |
ENV["API_ENV"] = "development" | |
Bundler.require(:development) | |
Motion::Project::App.setup do |app| | |
# Use `rake config' to see complete project settings. | |
app.name = 'beam' | |
# add in c++ dylib needed for leveldb | |
app.libs += ['/usr/lib/libc++.dylib', '/usr/lib/libicucore.dylib'] | |
app.frameworks += ['AVFoundation'] | |
# firebase project | |
app.frameworks += ['CFNetwork', 'Security', 'SystemConfiguration'] | |
app.vendor_project('vendor/Firebase.framework', :static, :products => ['Firebase'] ,:headers_dir => 'Headers') | |
app.files << "config.rb" | |
# load subdirs of project accordingly | |
[:core, :views, :errors, :services, :models, :styles, :layouts, :screens].each do |dir| | |
app.files << Dir.glob(File.join(app.project_dir, "app/#{dir}/**/*.rb")) | |
end | |
app.detect_dependencies = true | |
# app.files_dependencies 'file.rb' => 'dependency.rb' | |
app.files_dependencies 'app/services/account_service.rb' => 'app/services/firebase_service.rb' | |
app.files_dependencies 'app/views/menu_cell.rb' => 'app/views/table_view_cell.rb' | |
app.files_dependencies 'app/views/all_feed_cell.rb' => 'app/views/menu_cell.rb' | |
app.files_dependencies 'app/layouts/menu_cell_layout.rb' => 'app/layouts/all_feed_cell_layout.rb' | |
# declare cocoapods | |
app.pods do | |
# core pods | |
pod 'Objective-LevelDB' | |
# display | |
pod 'pop', :git => 'https://github.com/facebook/pop' | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment