From 91b531da4371fd07b595c0d22248f1269eb8489c Mon Sep 17 00:00:00 2001 From: Quinlan Jung Date: Wed, 2 Jun 2021 03:00:51 -0700 Subject: [PATCH] [eas-cli] use correct method to determine android application identifier (#431) * [eas-cli] use correct method to determine android application identifier * pr feedback --- .../src/credentials/android/actions/BuildCredentialsUtils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/eas-cli/src/credentials/android/actions/BuildCredentialsUtils.ts b/packages/eas-cli/src/credentials/android/actions/BuildCredentialsUtils.ts index 87efddcb50..e76a8c0ee2 100644 --- a/packages/eas-cli/src/credentials/android/actions/BuildCredentialsUtils.ts +++ b/packages/eas-cli/src/credentials/android/actions/BuildCredentialsUtils.ts @@ -2,6 +2,7 @@ import assert from 'assert'; import { nanoid } from 'nanoid'; import { AndroidAppBuildCredentialsFragment } from '../../../graphql/generated'; +import { getApplicationId } from '../../../project/android/applicationId'; import { getProjectAccountName, getProjectConfigDescription } from '../../../project/projectUtils'; import { promptAsync } from '../../../prompts'; import { findAccountByName } from '../../../user/Account'; @@ -17,7 +18,7 @@ export function getAppLookupParamsFromContext(ctx: Context): AppLookupParams { throw new Error(`You do not have access to account: ${accountName}`); } - const androidApplicationIdentifier = ctx.exp.android?.package; + const androidApplicationIdentifier = getApplicationId(ctx.projectDir, ctx.exp); if (!androidApplicationIdentifier) { throw new Error( `android.package needs to be defined in your ${getProjectConfigDescription(