@@ -169,6 +169,7 @@ def get_files(dirs_and_files, file_extension, file_name=None,
169
169
170
170
# List of Pods that we are interested in.
171
171
PODS = (
172
+ 'Firebase' ,
172
173
'FirebaseCore' ,
173
174
'FirebaseAdMob' ,
174
175
'FirebaseAnalytics' ,
@@ -340,8 +341,8 @@ def modify_pod_file(pod_file, pod_version_map, dryrun=True):
340
341
match = re .match (RE_PODFILE_VERSION , line )
341
342
if match :
342
343
pod_name = match ['pod_name' ]
343
- # Firebase/Auth -> FirebaseAuth
344
- pod_name_key = pod_name . replace ( '/ ' , '' )
344
+ # Firebase/Auth -> Firestore (due to being a subspec)
345
+ pod_name_key = re . sub ( r'/.*$ ' , '' , pod_name )
345
346
if pod_name_key in pod_version_map :
346
347
latest_version = pod_version_map [pod_name_key ]
347
348
substituted_line = line .replace (match ['version' ], latest_version )
@@ -395,7 +396,7 @@ def modify_readme_file_pods(readme_filepath, version_map, dryrun=True):
395
396
def replace_pod_line (m ):
396
397
if not m .group ('pod_name' ):
397
398
return m .group (0 )
398
- pod_key = m . group ( 'pod_name' ). replace ( '/' , '' )
399
+ pod_key = re . sub ( r'/.*$' , '' , m . group ( 'pod_name' ) )
399
400
if pod_key not in version_map :
400
401
return m .group (0 )
401
402
repl = '|%s| %s Cocoapod (%s)' % (m .group ('spaces' ),
0 commit comments