-
Notifications
You must be signed in to change notification settings - Fork 8
/
Fastfile
58 lines (47 loc) · 2.16 KB
/
Fastfile
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
fastlane_version "2.69.0"
default_platform :ios
desc "Test lane to update SettingsBundleExample"
lane :test do
xcodeproj = "examples/SettingsBundleExample/SettingsBundleExample.xcodeproj"
increment_build_number xcodeproj: xcodeproj
update_settings_bundle xcodeproj: xcodeproj,
key: "CurrentAppVersion",
value: ":version (:build)"
update_settings_bundle xcodeproj: xcodeproj,
key: "BuildDate",
value: Time.now.strftime("%B %-d, %Y")
# Uncomment to commit these changes.
# commit_version_bump xcodeproj: xcodeproj
end
desc "Test lane to update SettingsBundleGroupExample"
lane :group_test do
xcodeproj = "examples/SettingsBundleGroupExample/SettingsBundleGroupExample.xcodeproj"
increment_build_number xcodeproj: xcodeproj
update_settings_bundle xcodeproj: xcodeproj,
key: "CurrentAppVersion",
value: ":version (:build)"
update_settings_bundle xcodeproj: xcodeproj,
key: "BuildDate",
value: Time.now.strftime("%B %-d, %Y")
# Uncomment to commit these changes.
# commit_version_bump xcodeproj: xcodeproj
end
desc "Test lane to update SettingsBundleLibraryExample"
lane :library_test do
xcodeproj = "examples/SettingsBundleLibraryExample/SettingsBundleLibraryExample.xcodeproj"
# Rather than passing the xcodeproj argument to all invocations of update_settings_bundle
ENV["SETTINGS_BUNDLE_XCODEPROJ"] = xcodeproj
increment_build_number xcodeproj: xcodeproj
update_settings_bundle target: "SettingsBundleLibraryExample",
key: "CurrentAppVersion",
value: ":version (:build)"
update_settings_bundle target: "SettingsBundleExampleFramework",
key: "CurrentFrameworkVersion",
value: ":version (:build)",
file: "Framework.plist"
update_settings_bundle key: "BuildDate",
value: Time.now.strftime("%B %-d, %Y")
# Uncomment to commit these changes.
# commit_version_bump xcodeproj: xcodeproj
end
import "Fastfile.internal"