-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathFastfile
42 lines (33 loc) · 962 Bytes
/
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
fastlane_version "1.99.0"
lane :test do
create_sample_ipa
# Modify Info.plist
act(
archive_path: "example/Example.ipa",
iconset: "example/Blue.appiconset",
# Set a hash of plist values
plist_values: {
":CustomApplicationKey" => "Replaced!"
},
# Run a list of PlistBuddy commands
plist_commands: [
"Delete :DebugApplicationKey"
]
)
# Modify a different plist
act(
archive_path: "example/Example.ipa",
plist_file: "GoogleService-Info.plist",
plist_values: {
":TRACKING_ID" => "UA-22222222-22"
}
)
UI.message("IPA at example/Example.ipa has been reconfigured in-place, but will require 'resign' before it can be deployed")
end
# Pay no attention to the man behind the curtain
private_lane :create_sample_ipa do
File.delete("../example/Example.ipa") if File.exist?("../example/Example.ipa")
Dir.chdir("../example/layout/") do
sh("zip ../Example.ipa -r * ")
end
end