moveIosGoogleService method

void moveIosGoogleService(
  1. String googleServiceDir,
  2. String outputDir,
  3. String flavor
)

Implementation

void moveIosGoogleService(
    String googleServiceDir, String outputDir, String flavor) {
  final pathGoogleService =
      join(current, googleServiceDir, 'GoogleService-Info.plist');

  final pathOutputGoogleService =
      join(current, outputDir, 'GoogleService-Info.plist');

  if (exists(pathGoogleService)) {
    copy(
      pathGoogleService,
      pathOutputGoogleService,
      overwrite: true,
    );
    StatusHelper.success('Firebase $flavor config ios');
  } else {
    StatusHelper.warning(
        'GoogleService-Info.plist in $pathGoogleService not found.');
  }
}