-
Notifications
You must be signed in to change notification settings - Fork 478
remove all usages of credentials api from xdl #2422
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please test the upload:ios
command :)
log(`Retrieving iOS credentials for ${credentialMetadata.experienceName}`); | ||
const bundleIdentifier = ctx.manifest?.ios?.bundleIdentifier; | ||
if (!bundleIdentifier) { | ||
throw new Error(noBundleIdMessage); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw new Error(noBundleIdMessage); | |
throw new Error(`Your project must have a \`bundleIdentifier\` set in the Expo config (app.json or app.config.js).\nSee https://expo.fyi/bundle-identifier`); |
const { | ||
args: { remotePackageName }, | ||
} = await Exp.getPublishInfoAsync(projectDir); | ||
const noBundleIdMessage = `Your project must have a \`bundleIdentifier\` set in the Expo config (app.json or app.config.js).\nSee https://expo.fyi/bundle-identifier`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const noBundleIdMessage = `Your project must have a \`bundleIdentifier\` set in the Expo config (app.json or app.config.js).\nSee https://expo.fyi/bundle-identifier`; |
const credentialMetadata = await Credentials.getCredentialMetadataAsync(this.projectDir, 'ios'); | ||
const credential = await Credentials.getCredentialsForPlatform(credentialMetadata); | ||
const teamId = credential?.teamId; | ||
async _getAppleTeamId(appleIdCredntials: AppleIdCredentials): Promise<string | undefined> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async _getAppleTeamId(appleIdCredntials: AppleIdCredentials): Promise<string | undefined> { | |
async _getAppleTeamId(appleIdCredentials: AppleIdCredentials): Promise<string | undefined> { |
if (teamId) { | ||
return teamId; | ||
} else { | ||
const { team } = await authenticate(appleIdCrentials); | ||
const { team } = await authenticate(appleIdCredntials); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { team } = await authenticate(appleIdCredntials); | |
const { team } = await authenticate(appleIdCredentials); |
7f9bc14
to
d479f62
Compare
d479f62
to
5e9bb51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Why
How
upload:ios
to usepackages/expo-cli/src/credentials/api/IosApi.ts
fetch:ios:certs
to usepackages/expo-cli/src/credentials/api/IosApi.ts
push:android:*
to usepackages/expo-cli/src/credentials/api/AndroidApi.ts
(it was already using apiv2, but I think it's cleaner for all the code to use that wrapper)Test plan
expo fetch:ios:certs
with and without credentialsexpo push:android:*
cmdsupload:ios
command