-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
73 lines (60 loc) · 2.43 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'
begin
require 'bundler'
Bundler.require
rescue LoadError
end
Motion::Project::App.setup do |app|
app.name = 'ShowCloser'
app.info_plist['FULL_APP_NAME'] = 'Show Closer'
app.info_plist['APP_STORE_ID'] = 483940964
app.deployment_target = "7.1"
app.device_family = [:iphone, :ipad]
app.interface_orientations = [:portrait, :portrait_upside_down, :landscape_left, :landscape_right]
app.identifier = 'com.mohawkapps.TheShowCloser'
app.version = (`git rev-list HEAD --count`.strip.to_i).to_s
app.short_version = '3.0.13'
app.info_plist['UIRequiresFullScreen'] = true
app.info_plist['ITSAppUsesNonExemptEncryption'] = false
app.icons = Dir.glob("resources/Icon*.png").map{|icon| icon.split("/").last}
app.seed_id = 'DW9QQZR4ZL'
app.frameworks += %w(StoreKit MessageUI CoreGraphics SystemConfiguration)
app.info_plist['TestingMode'] = true if ENV['RUBYMOTION_TESTER'] == 'true'
app.pods do
pod 'Appirater', '~> 2.0.5'
pod 'ActionSheetPicker-3.0', '~> 1.1.2'
pod 'CrittercismSDK', '~> 5.6.2'
end
app.info_plist["NSAppTransportSecurity"] = {
"NSAllowsArbitraryLoads" => true,
"NSExceptionDomains" => {
"mohawkapps.com" => {
"NSThirdPartyExceptionRequiresForwardSecrecy" => false,
"NSTemporaryExceptionAllowsInsecureHTTPLoads" => true,
"NSIncludesSubdomains" => true
}
}
}
app.entitlements['keychain-access-groups'] = [
app.seed_id + '.' + app.identifier
]
app.entitlements['com.apple.developer.ubiquity-kvstore-identifier'] = app.seed_id + '.' + app.identifier
app.entitlements['com.apple.developer.ubiquity-container-identifiers'] = [app.seed_id + '.' + app.identifier]
app.development do
# app.identifier = 'YA2VZGDX4S.' + app.identifier
app.codesign_certificate = "iPhone Developer: Mark Rickert (YA2VZGDX4S)"
app.provisioning_profile = "./provisioning/development.mobileprovision"
app.entitlements['get-task-allow'] = true
end
app.release do
app.info_plist['AppStoreRelease'] = true
app.entitlements['get-task-allow'] = false
app.codesign_certificate = "iPhone Distribution: Mohawk Apps, LLC (DW9QQZR4ZL)"
app.provisioning_profile = "./provisioning/release.mobileprovision"
end
puts "Name: #{app.name}"
puts "Using profile: #{app.provisioning_profile}"
puts "Using certificate: #{app.codesign_certificate}"
end