1- fastlane_version "2.195 .0"
1+ fastlane_version "2.226 .0"
22default_platform :ios
33
44before_all do
1010desc "Installs all Certs and Profiles necessary for development and ad-hoc"
1111lane :match_me do
1212 match (
13+ api_key : appstore_api_key ,
1314 type : "adhoc" ,
1415 app_identifier : [
1516 "io.getstream.flutter" ,
2223desc "Installs all Certs and Profiles necessary for appstore"
2324lane :match_appstore do
2425 match (
26+ api_key : appstore_api_key ,
2527 type : "appstore" ,
2628 app_identifier : [
2729 "io.getstream.flutter" ,
@@ -30,61 +32,66 @@ lane :match_appstore do
3032 )
3133end
3234
33- platform :ios do
34- desc "Deploy build to Firebase"
35- lane :deploy_to_firebase do
36- match_me
37-
38- gym (
39- workspace : "./Runner.xcworkspace" ,
40- scheme : "Runner" ,
41- export_method : "ad-hoc" ,
42- export_options : "./fastlane/beta_gym_export_options.plist" ,
43- silent : true ,
44- clean : true ,
45- include_symbols : true ,
46- output_directory : "./dist"
47- )
35+ lane :deploy_to_firebase do
36+ match_me
4837
49- message = changelog_from_git_commits ( commits_count : 10 )
38+ gym (
39+ workspace : "./Runner.xcworkspace" ,
40+ scheme : "Runner" ,
41+ export_method : "ad-hoc" ,
42+ export_options : "./fastlane/beta_gym_export_options.plist" ,
43+ silent : true ,
44+ clean : true ,
45+ include_symbols : true ,
46+ output_directory : "./dist"
47+ )
5048
51- firebase_app_distribution (
52- app : "1:674907137625:ios:cafb9fb076a453c4d7f348" ,
53- groups : "ios-stream-testers"
54- )
55- end
49+ message = changelog_from_git_commits ( commits_count : 10 )
50+
51+ firebase_app_distribution (
52+ app : "1:674907137625:ios:cafb9fb076a453c4d7f348" ,
53+ groups : "ios-stream-testers"
54+ )
5655end
5756
58- platform :ios do
59- desc "Deploy build to TestFlight"
60- lane :deploy_to_testflight do
61- match_appstore
57+ lane :deploy_to_testflight do
58+ match_appstore
59+
60+ settings_to_override = {
61+ :BUNDLE_IDENTIFIER => "io.getstream.flutter" ,
62+ :PROVISIONING_PROFILE_SPECIFIER => "match AppStore io.getstream.flutter 1651569762"
63+ }
6264
63- settings_to_override = {
64- :BUNDLE_IDENTIFIER => "io.getstream.flutter" ,
65- :PROVISIONING_PROFILE_SPECIFIER => "match AppStore io.getstream.flutter 1651569762"
66- }
65+ gym (
66+ workspace : "./Runner.xcworkspace" ,
67+ scheme : "Runner" ,
68+ export_method : "app-store" ,
69+ export_options : "./fastlane/testflight_gym_export_options.plist" ,
70+ silent : true ,
71+ clean : true ,
72+ xcargs : settings_to_override ,
73+ include_symbols : true ,
74+ output_directory : "./dist" ,
75+ )
6776
68- gym (
69- workspace : "./Runner.xcworkspace" ,
70- scheme : "Runner" ,
71- export_method : "app-store" ,
72- export_options : "./fastlane/testflight_gym_export_options.plist" ,
73- silent : true ,
74- clean : true ,
75- xcargs : settings_to_override ,
76- include_symbols : true ,
77- output_directory : "./dist" ,
78- )
77+ message = changelog_from_git_commits ( commits_count : 10 )
78+
79+ upload_to_testflight (
80+ api_key : appstore_api_key ,
81+ groups : [ 'Public' ] ,
82+ distribute_external : true ,
83+ changelog : message ,
84+ 85+ reject_build_waiting_for_review : true
86+ )
87+ end
7988
80- message = changelog_from_git_commits ( commits_count : 10 )
8189
82- upload_to_testflight (
83- groups : [ 'Public' ] ,
84- distribute_external : true ,
85- changelog : message ,
86- 87- reject_build_waiting_for_review : true
88- )
89- end
90+ private_lane :appstore_api_key do
91+ @appstore_api_key ||= app_store_connect_api_key (
92+ key_id : 'MT3PRT8TB7' ,
93+ issuer_id : '69a6de96-0738-47e3-e053-5b8c7c11a4d1' ,
94+ key_content : ENV . fetch ( 'APPSTORE_API_KEY' , nil ) ,
95+ in_house : false
96+ )
9097end
0 commit comments