-
Notifications
You must be signed in to change notification settings - Fork 12
/
Cakefile
49 lines (38 loc) · 1.71 KB
/
Cakefile
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
# https://github.com/jcampbell05/xcake
# http://www.rubydoc.info/github/jcampbell05/xcake/master/file/docs/Cakefile.md
iOSdeploymentTarget = "10.0"
currentSwiftVersion = "5.0"
companyIdentifier = "com.rakuten.tech"
project.name = "RSDKUtils"
project.organization = "Rakuten, Inc."
project.all_configurations.each do |configuration|
configuration.settings["CURRENT_PROJECT_VERSION"] = "1" # just default non-empty value
configuration.settings["DEFINES_MODULE"] = "YES" # http://stackoverflow.com/a/27251979
configuration.settings["SWIFT_OPTIMIZATION_LEVEL"] = "-Onone"
configuration.settings["ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES"] = "$(inherited)" # "YES"
configuration.settings["SWIFT_VERSION"] = currentSwiftVersion
end
target do |target|
target.name = "SampleApp"
target.language = :swift
target.type = :application
target.platform = :ios
target.deployment_target = iOSdeploymentTarget
target.scheme(target.name)
target.all_configurations.each do |configuration|
configuration.product_bundle_identifier = companyIdentifier + "." + target.name
configuration.supported_devices = :universal
configuration.settings["INFOPLIST_FILE"] = "Sample/Info.plist"
configuration.settings["PRODUCT_NAME"] = "$(TARGET_NAME)"
end
unit_tests_for target do |test_target|
test_target.name = "Tests"
test_target.scheme(test_target.name) do |scheme|
scheme.test_configuration = "Tests"
end
test_target.all_configurations.each do |configuration|
configuration.settings["INFOPLIST_FILE"] = "Tests/" + test_target.name + "-Info.plist"
end
test_target.include_files = ["Tests/**/*.swift"]
end
end