Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
[expo-cli] revert PR #2404 and remove encoding from IosPushCredentials (
Browse files Browse the repository at this point in the history
#2406)

* [expo-cli] revert PR #2404 and remove encoding from IosPushCredentials

* update CHANGELOG
  • Loading branch information
wkozyra95 authored Jul 28, 2020
1 parent 9586a75 commit aa41268
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This is the log of notable changes to Expo CLI and related packages.
- [xdl] Fix incorrect check of the packager port in the "setOptionsAsync" function [#2270](https://github.com/expo/expo-cli/issues/2270)
- [expo-cli] expo upload:android - Fix passing archive type from command line [#2383](https://github.com/expo/expo-cli/pull/2383)
- [expo-cli] check `when` field when inquirer is used in noninteractive mode [#2393](https://github.com/expo/expo-cli/pull/2393)
- [expo-cli] base64 decode when saving p8 file [#2404](https://github.com/expo/expo-cli/pull/2404)
- [expo-cli] do not base64 encode push notification [#2406](https://github.com/expo/expo-cli/pull/2406)

### 📦 Packages updated

Expand Down
2 changes: 1 addition & 1 deletion packages/expo-cli/src/commands/fetch/ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function fetchIosCerts(projectDir: string): Promise<void> {
}
if (apnsKeyP8) {
const apnsKeyP8Path = inProjectDir(`${remotePackageName}_apns_key.p8`);
await fs.writeFile(apnsKeyP8Path, Buffer.from(apnsKeyP8, 'base64'));
await fs.writeFile(apnsKeyP8Path, apnsKeyP8);
log('Wrote push key credentials to disk.');
}
if (pushP12) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ export async function getPushKeyFromParams(builderOptions: {

return {
apnsKeyId: pushId,
apnsKeyP8: await fs.readFile(pushP8Path, 'base64'),
apnsKeyP8: await fs.readFile(pushP8Path, 'utf8'),
teamId,
} as PushKey;
}
Expand Down

0 comments on commit aa41268

Please sign in to comment.