1212
1313default_platform ( :ios )
1414
15- TEAMID = ENV [ "TEAMID" ]
16- TEAMID_SUFFIX = ENV [ "TEAMID_SUFFIX" ] . to_s . empty? ? "" : "-#{ ENV [ "TEAMID_SUFFIX" ] } "
15+ TEAMID = ENV [ "TEAMID_SUFFIX" ] . to_s . empty? ? "#{ ENV [ "TEAMID" ] } " : "#{ ENV [ "TEAMID" ] } -#{ ENV [ "TEAMID_SUFFIX" ] } "
1716GH_PAT = ENV [ "GH_PAT" ]
1817GITHUB_WORKSPACE = ENV [ "GITHUB_WORKSPACE" ]
1918GITHUB_REPOSITORY_OWNER = ENV [ "GITHUB_REPOSITORY_OWNER" ]
@@ -41,7 +40,7 @@ platform :ios do
4140 )
4241
4342 previous_build_number = latest_testflight_build_number (
44- app_identifier : "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop" ,
43+ app_identifier : "com.#{ TEAMID } .loopkit.Loop" ,
4544 api_key : api_key ,
4645 )
4746
@@ -52,17 +51,16 @@ platform :ios do
5251 build_number : current_build_number
5352 )
5453
55- UI . message ( "Using app identifiers with TEAMID=#{ TEAMID } SUFFIX=#{ TEAMID_SUFFIX } " )
5654 match (
5755 type : "appstore" ,
5856 git_basic_authorization : Base64 . strict_encode64 ( "#{ GITHUB_REPOSITORY_OWNER } :#{ GH_PAT } " ) ,
5957 app_identifier : [
60- "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop" ,
61- "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.statuswidget" ,
62- "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.LoopWatch.watchkitextension" ,
63- "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.LoopWatch" ,
64- "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.Loop-Intent-Extension" ,
65- "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.LoopWidgetExtension"
58+ "com.#{ TEAMID } .loopkit.Loop" ,
59+ "com.#{ TEAMID } .loopkit.Loop.statuswidget" ,
60+ "com.#{ TEAMID } .loopkit.Loop.LoopWatch.watchkitextension" ,
61+ "com.#{ TEAMID } .loopkit.Loop.LoopWatch" ,
62+ "com.#{ TEAMID } .loopkit.Loop.Loop-Intent-Extension" ,
63+ "com.#{ TEAMID } .loopkit.Loop.LoopWidgetExtension"
6664 ]
6765 )
6866
@@ -72,7 +70,7 @@ platform :ios do
7270
7371 update_code_signing_settings (
7472 path : "#{ GITHUB_WORKSPACE } /Loop/Loop.xcodeproj" ,
75- profile_name : mapping [ "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop" ] ,
73+ profile_name : mapping [ "com.#{ TEAMID } .loopkit.Loop" ] ,
7674 code_sign_identity : "iPhone Distribution" ,
7775 targets : [ "Loop" ]
7876 )
@@ -85,35 +83,35 @@ platform :ios do
8583
8684 update_code_signing_settings (
8785 path : "#{ GITHUB_WORKSPACE } /Loop/Loop.xcodeproj" ,
88- profile_name : mapping [ "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.statuswidget" ] ,
86+ profile_name : mapping [ "com.#{ TEAMID } .loopkit.Loop.statuswidget" ] ,
8987 code_sign_identity : "iPhone Distribution" ,
9088 targets : [ "Loop Status Extension" ]
9189 )
9290
9391 update_code_signing_settings (
9492 path : "#{ GITHUB_WORKSPACE } /Loop/Loop.xcodeproj" ,
95- profile_name : mapping [ "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.LoopWatch.watchkitextension" ] ,
93+ profile_name : mapping [ "com.#{ TEAMID } .loopkit.Loop.LoopWatch.watchkitextension" ] ,
9694 code_sign_identity : "iPhone Distribution" ,
9795 targets : [ "WatchApp Extension" ]
9896 )
9997
10098 update_code_signing_settings (
10199 path : "#{ GITHUB_WORKSPACE } /Loop/Loop.xcodeproj" ,
102- profile_name : mapping [ "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.LoopWatch" ] ,
100+ profile_name : mapping [ "com.#{ TEAMID } .loopkit.Loop.LoopWatch" ] ,
103101 code_sign_identity : "iPhone Distribution" ,
104102 targets : [ "WatchApp" ]
105103 )
106104
107105 update_code_signing_settings (
108106 path : "#{ GITHUB_WORKSPACE } /Loop/Loop.xcodeproj" ,
109- profile_name : mapping [ "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.Loop-Intent-Extension" ] ,
107+ profile_name : mapping [ "com.#{ TEAMID } .loopkit.Loop.Loop-Intent-Extension" ] ,
110108 code_sign_identity : "iPhone Distribution" ,
111109 targets : [ "Loop Intent Extension" ]
112110 )
113111
114112 update_code_signing_settings (
115113 path : "#{ GITHUB_WORKSPACE } /Loop/Loop.xcodeproj" ,
116- profile_name : mapping [ "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.LoopWidgetExtension" ] ,
114+ profile_name : mapping [ "com.#{ TEAMID } .loopkit.Loop.LoopWidgetExtension" ] ,
117115 code_sign_identity : "iPhone Distribution" ,
118116 targets : [ "Loop Widget Extension" ]
119117 )
@@ -124,8 +122,8 @@ platform :ios do
124122 output_name : "Loop.ipa" ,
125123 configuration : "Release" ,
126124 destination : 'generic/platform=iOS' ,
127- buildlog_path : 'buildlog' ,
128- xcargs : "MAIN_APP_BUNDLE_IDENTIFIER=com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop"
125+ buildlog_path : 'buildlog'
126+ xcargs : "MAIN_APP_BUNDLE_IDENTIFIER=com.#{ TEAMID } .loopkit.Loop"
129127 )
130128
131129 copy_artifacts (
@@ -173,30 +171,30 @@ platform :ios do
173171 end
174172 end
175173
176- configure_bundle_id ( "Loop" , "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop" , [
174+ configure_bundle_id ( "Loop" , "com.#{ TEAMID } .loopkit.Loop" , [
177175 Spaceship ::ConnectAPI ::BundleIdCapability ::Type ::APP_GROUPS ,
178176 Spaceship ::ConnectAPI ::BundleIdCapability ::Type ::HEALTHKIT ,
179177 Spaceship ::ConnectAPI ::BundleIdCapability ::Type ::PUSH_NOTIFICATIONS ,
180178 Spaceship ::ConnectAPI ::BundleIdCapability ::Type ::SIRIKIT ,
181179 Spaceship ::ConnectAPI ::BundleIdCapability ::Type ::NFC_TAG_READING
182180 ] )
183181
184- configure_bundle_id ( "Loop Intent Extension" , "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.Loop-Intent-Extension" , [
182+ configure_bundle_id ( "Loop Intent Extension" , "com.#{ TEAMID } .loopkit.Loop.Loop-Intent-Extension" , [
185183 Spaceship ::ConnectAPI ::BundleIdCapability ::Type ::APP_GROUPS
186184 ] )
187185
188- configure_bundle_id ( "Loop Status Extension" , "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.statuswidget" , [
186+ configure_bundle_id ( "Loop Status Extension" , "com.#{ TEAMID } .loopkit.Loop.statuswidget" , [
189187 Spaceship ::ConnectAPI ::BundleIdCapability ::Type ::APP_GROUPS
190188 ] )
191189
192- configure_bundle_id ( "WatchApp" , "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.LoopWatch" , [ ] )
190+ configure_bundle_id ( "WatchApp" , "com.#{ TEAMID } .loopkit.Loop.LoopWatch" , [ ] )
193191
194- configure_bundle_id ( "WatchApp Extension" , "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.LoopWatch.watchkitextension" , [
192+ configure_bundle_id ( "WatchApp Extension" , "com.#{ TEAMID } .loopkit.Loop.LoopWatch.watchkitextension" , [
195193 Spaceship ::ConnectAPI ::BundleIdCapability ::Type ::HEALTHKIT ,
196194 Spaceship ::ConnectAPI ::BundleIdCapability ::Type ::SIRIKIT
197195 ] )
198196
199- configure_bundle_id ( "Loop Widget Extension" , "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.LoopWidgetExtension" , [
197+ configure_bundle_id ( "Loop Widget Extension" , "com.#{ TEAMID } .loopkit.Loop.LoopWidgetExtension" , [
200198 Spaceship ::ConnectAPI ::BundleIdCapability ::Type ::APP_GROUPS
201199 ] )
202200
@@ -219,12 +217,12 @@ platform :ios do
219217 verbose : true ,
220218 git_basic_authorization : Base64 . strict_encode64 ( "#{ GITHUB_REPOSITORY_OWNER } :#{ GH_PAT } " ) ,
221219 app_identifier : [
222- "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop" ,
223- "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.statuswidget" ,
224- "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.LoopWatch.watchkitextension" ,
225- "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.LoopWatch" ,
226- "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.Loop-Intent-Extension" ,
227- "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop.LoopWidgetExtension" ,
220+ "com.#{ TEAMID } .loopkit.Loop" ,
221+ "com.#{ TEAMID } .loopkit.Loop.statuswidget" ,
222+ "com.#{ TEAMID } .loopkit.Loop.LoopWatch.watchkitextension" ,
223+ "com.#{ TEAMID } .loopkit.Loop.LoopWatch" ,
224+ "com.#{ TEAMID } .loopkit.Loop.Loop-Intent-Extension" ,
225+ "com.#{ TEAMID } .loopkit.Loop.LoopWidgetExtension" ,
228226 ]
229227 )
230228 end
@@ -244,7 +242,7 @@ platform :ios do
244242 bundle_id = Spaceship ::ConnectAPI ::BundleId . find ( identifier )
245243 end
246244
247- find_bundle_id ( "com.#{ TEAMID } #{ TEAMID_SUFFIX } .loopkit.Loop" )
245+ find_bundle_id ( "com.#{ TEAMID } .loopkit.Loop" )
248246
249247 match (
250248 type : "appstore" ,
@@ -267,7 +265,7 @@ platform :ios do
267265
268266 match_nuke (
269267 type : "appstore" ,
270- team_id : "#{ TEAMID } #{ TEAMID_SUFFIX } " ,
268+ team_id : "#{ TEAMID } " ,
271269 skip_confirmation : true ,
272270 git_basic_authorization : Base64 . strict_encode64 ( "#{ GITHUB_REPOSITORY_OWNER } :#{ GH_PAT } " )
273271 )
@@ -324,4 +322,4 @@ platform :ios do
324322 new_certificate_needed_content = File . read ( file_path )
325323 puts "Certificate creation or renewal needed: #{ new_certificate_needed_content } "
326324 end
327- end
325+ end
0 commit comments