diff --git a/eas.json b/eas.json index 23df4ac..b84db74 100644 --- a/eas.json +++ b/eas.json @@ -26,6 +26,11 @@ } }, "submit": { - "production": {} + "production": { + "ios": { + "ascAppId": "6824593882", + "appleTeamId": "ZTF9443M3J" + } + } } } diff --git a/tests/appConfig.test.ts b/tests/appConfig.test.ts index dd9ed15..b01ff63 100644 --- a/tests/appConfig.test.ts +++ b/tests/appConfig.test.ts @@ -2,6 +2,7 @@ import { readFileSync } from 'fs'; import { join } from 'path'; const appJson = JSON.parse(readFileSync(join(__dirname, '..', 'app.json'), 'utf8')).expo; +const easJson = JSON.parse(readFileSync(join(__dirname, '..', 'eas.json'), 'utf8')); // Store listings are keyed to these ids and they can never change after the // first upload, so a rename here would publish a different app. @@ -13,4 +14,13 @@ describe('app config', () => { it('iOS bundle identifier is com.htpdevs.birthmark', () => { expect(appJson.ios.bundleIdentifier).toBe('com.htpdevs.birthmark'); }); + + // `eas submit` uploads to this App Store Connect record. A wrong id would + // upload to a different app or fail after a full cloud build. + it('EAS iOS submit profile targets the Birthmark App Store Connect record', () => { + expect(easJson.submit.production.ios).toEqual({ + ascAppId: '6824593882', + appleTeamId: 'ZTF9443M3J', + }); + }); });