Skip to content

Commit

Permalink
[eas-cli] use correct method to determine android application identif…
Browse files Browse the repository at this point in the history
…ier (#431)

* [eas-cli] use correct method to determine android application identifier

* pr feedback
  • Loading branch information
quinlanj authored Jun 2, 2021
1 parent 2e0d567 commit 91b531d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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(
Expand Down

0 comments on commit 91b531d

Please sign in to comment.