Skip to content

Commit 3fc4cce

Browse files
use more explicit bundle id matching
1 parent fe412c9 commit 3fc4cce

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57499,7 +57499,7 @@ function checkAuthError(error) {
5749957499
}
5750057500
}
5750157501
async function GetAppId(project) {
57502-
var _a, _b, _c;
57502+
var _a, _b;
5750357503
await getOrCreateClient(project);
5750457504
const { data: response, error } = await appStoreConnectClient.api.AppsService.appsGetCollection({
5750557505
query: { 'filter[bundleId]': [project.bundleId] }
@@ -57519,7 +57519,7 @@ async function GetAppId(project) {
5751957519
(0, utilities_1.log)(`Multiple apps found for bundle id ${project.bundleId}!`);
5752057520
for (const app of response.data) {
5752157521
(0, utilities_1.log)(`[${app.id}] ${(_a = app.attributes) === null || _a === void 0 ? void 0 : _a.bundleId}`);
57522-
if (project.bundleId.length === ((_c = (_b = app.attributes) === null || _b === void 0 ? void 0 : _b.bundleId) === null || _c === void 0 ? void 0 : _c.length)) {
57522+
if (project.bundleId === ((_b = app.attributes) === null || _b === void 0 ? void 0 : _b.bundleId)) {
5752357523
return app.id;
5752457524
}
5752557525
}

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AppStoreConnectClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function GetAppId(project: XcodeProject): Promise<string> {
6868
log(`Multiple apps found for bundle id ${project.bundleId}!`);
6969
for (const app of response.data) {
7070
log(`[${app.id}] ${app.attributes?.bundleId}`);
71-
if (project.bundleId.length === app.attributes?.bundleId?.length) {
71+
if (project.bundleId === app.attributes?.bundleId) {
7272
return app.id;
7373
}
7474
}

0 commit comments

Comments
 (0)