Skip to content

Commit

Permalink
Merge b53b077 into d4b2015
Browse files Browse the repository at this point in the history
  • Loading branch information
barthap authored Aug 11, 2021
2 parents d4b2015 + b53b077 commit fb92e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app/plugin/src/android/copyGoogleServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ConfigPlugin, withDangerousMod } from '@expo/config-plugins';

import { DEFAULT_TARGET_PATH } from './constants';
import path from 'path';
import fs from 'fs/promises';
import fs from 'fs';

/**
* Copy `google-services.json`
Expand All @@ -24,7 +24,7 @@ export const withCopyAndroidGoogleServices: ConfigPlugin = config => {
const destPath = path.resolve(config.modRequest.platformProjectRoot, DEFAULT_TARGET_PATH);

try {
await fs.copyFile(srcPath, destPath);
await fs.promises.copyFile(srcPath, destPath);
} catch (e) {
throw new Error(
`Cannot copy google-services.json, because the file ${srcPath} doesn't exist. Please provide a valid path in \`app.json\`.`,
Expand Down

0 comments on commit fb92e8c

Please sign in to comment.