tests: the AAB fixture targets API 36 (Play's minimum since 2026-08-31; play upload now refuses 35)
This commit is contained in:
parent
3a11682a37
commit
d94bf67340
2 changed files with 2 additions and 2 deletions
|
|
@ -59,6 +59,6 @@ export const makeIpa = (infoPlist: Buffer | string, app = 'Example.app'): Buffer
|
|||
/** An AAB with an aapt2 proto manifest. */
|
||||
export const makeAab = (pkg: string, versionCode: number, versionName = '1.0.0'): Buffer => makeZip([
|
||||
{ name: 'BundleConfig.pb', data: Buffer.from([8, 1]) },
|
||||
{ name: 'base/manifest/AndroidManifest.xml', data: encodeProtoManifest([{ name: 'manifest', attrs: { package: pkg, versionCode: String(versionCode), versionName } }, { name: 'uses-sdk', attrs: { minSdkVersion: '24', targetSdkVersion: '35' } }]) },
|
||||
{ name: 'base/manifest/AndroidManifest.xml', data: encodeProtoManifest([{ name: 'manifest', attrs: { package: pkg, versionCode: String(versionCode), versionName } }, { name: 'uses-sdk', attrs: { minSdkVersion: '24', targetSdkVersion: '36' } }]) },
|
||||
{ name: 'base/dex/classes.dex', data: Buffer.alloc(512, 1) },
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ describe('zip + IPA + AAB', () => {
|
|||
});
|
||||
|
||||
test('aabInfo reads the proto manifest', () => {
|
||||
expect(aabInfo(makeAab('com.example.game', 1234, '2.0.1'))).toEqual({ packageName: 'com.example.game', versionCode: 1234, versionName: '2.0.1', minSdk: 24, targetSdk: 35 });
|
||||
expect(aabInfo(makeAab('com.example.game', 1234, '2.0.1'))).toEqual({ packageName: 'com.example.game', versionCode: 1234, versionName: '2.0.1', minSdk: 24, targetSdk: 36 });
|
||||
expect(() => aabInfo(makeZip([{ name: 'x', data: 'y' }]))).toThrow('not an Android App Bundle');
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue