-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathFastfile
More file actions
103 lines (80 loc) · 3.54 KB
/
Fastfile
File metadata and controls
103 lines (80 loc) · 3.54 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
lane :temp do |options|
puts '--------------------------------------------------'
puts '--- UNIT TESTS ---'
puts '--------------------------------------------------'
match_keystore(
git_url: "https://bitbucket.org/SoClipTeam/keystores.git",
package_name: "com.soclip.sdksamplecode",
apk_path: "assets/app-release-unsigned.apk",
match_secret: ENV["MATCH_KEYSTORE_PASSWORD"],
zip_align: false,
compat_key: "1"
)
end
lane :unit_test do |options|
puts '--------------------------------------------------'
puts '--- UNIT TESTS ---'
puts '--------------------------------------------------'
match_keystore(
git_url: "https://github.com/christopherney/fake-keystores",
package_name: "com.match-keystore-plugin.test",
apk_path: "assets/app-release-unsigned.apk",
match_secret: "A-very-str0ng-password!",
unit_test: true
)
end
lane :test_zip_align do |options|
puts '--------------------------------------------------'
puts '--- UNIT TESTS ---'
puts '--------------------------------------------------'
match_keystore(
git_url: "https://github.com/christopherney/fake-keystores",
package_name: "com.match-keystore-plugin.test",
apk_path: "assets/app-release-unsigned.apk",
match_secret: "A-very-str0ng-password!",
build_tools_version: "29.0.2",
zip_align: false
)
end
lane :test do |options|
puts '--------------------------------------------------'
puts '--- First signature, test remote configuration ---'
puts '--------------------------------------------------'
match_keystore(
git_url: "https://github.com/christopherney/fake-keystores",
package_name: "com.match-keystore-plugin.test",
apk_path: "assets/app-release-unsigned.apk",
match_secret: "A-very-str0ng-password!",
clear_keystore: true
)
puts 'Keystore Path: ' + lane_context[SharedValues::MATCH_KEYSTORE_PATH]
puts 'Keystore Alias Name: ' + lane_context[SharedValues::MATCH_KEYSTORE_ALIAS_NAME]
puts 'Signed APK: ' + lane_context[SharedValues::MATCH_KEYSTORE_APK_SIGNED]
puts '------------------------------------------------------'
puts '--- Second signature, override keystore ---'
puts '------------------------------------------------------'
match_keystore(
git_url: "https://github.com/christopherney/fake-keystores",
package_name: "com.match-keystore-plugin.test",
apk_path: "assets/app-release-unsigned.apk",
match_secret: "A-very-str0ng-password!",
existing_keystore: "assets/existing-keystore.jks",
override_keystore: true,
keystore_data: "assets/keystore.json"
)
puts 'Keystore Path: ' + lane_context[SharedValues::MATCH_KEYSTORE_PATH]
puts 'Keystore Alias Name: ' + lane_context[SharedValues::MATCH_KEYSTORE_ALIAS_NAME]
puts 'Signed APK: ' + lane_context[SharedValues::MATCH_KEYSTORE_APK_SIGNED]
puts '--------------------------------------------------'
puts '--- Third signature, test local configuration ---'
puts '--------------------------------------------------'
match_keystore(
git_url: "https://github.com/christopherney/fake-keystores",
package_name: "com.match-keystore-plugin.test",
apk_path: "assets/app-release-unsigned.apk",
match_secret: "A-very-str0ng-password!"
)
puts 'Keystore Path: ' + lane_context[SharedValues::MATCH_KEYSTORE_PATH]
puts 'Keystore Alias Name: ' + lane_context[SharedValues::MATCH_KEYSTORE_ALIAS_NAME]
puts 'Signed APK: ' + lane_context[SharedValues::MATCH_KEYSTORE_APK_SIGNED]
end