Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix(android): the Gradle project and App Bundle settings reach the export

esenginec85cf5008af6
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f09c82e31..9de3583de 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ published separately; it ships inside the editor.
### Fixed
+- Android's "Android Studio project" and "App Bundle (.aab)" settings take effect: the project file never read them back, so every Android export wrote an APK and nothing else.
- A native development build's Profiler shows its draw calls, triangles, sprites and VRAM, and what the debug channel costs it: all read 0 on a native build.
## [0.73.0] - 2026-09-25
diff --git a/pipeline/src/project/format.ts b/pipeline/src/project/format.ts
index 2212006e4..1496af83a 100644
--- a/pipeline/src/project/format.ts
+++ b/pipeline/src/project/format.ts
@@ -880,6 +880,8 @@ export function parseManifest(raw: unknown): ProjectManifest {
if (typeof an.versionCode === 'number' && Number.isInteger(an.versionCode) && an.versionCode > 0) {
a.versionCode = an.versionCode;
}
+ if (an.output === 'package' || an.output === 'project') a.output = an.output;
+ if (typeof an.appBundle === 'boolean') a.appBundle = an.appBundle;
if (Object.keys(a).length > 0) platforms.android = a;
}
const io = pl.ios as Record<string, unknown> | undefined;
diff --git a/pipeline/tests/project-packaging.test.ts b/pipeline/tests/project-packaging.test.ts
index fb47f4ed2..a005c7189 100644
--- a/pipeline/tests/project-packaging.test.ts
+++ b/pipeline/tests/project-packaging.test.ts
@@ -69,6 +69,13 @@ describe('parseManifest — packaging', () => {
.toBeUndefined();
});
+ it('keeps what an Android export produces', () => {
+ const m = parseManifest({ name: 'X', packaging: { platforms: { android: { output: 'project', appBundle: true } } } });
+ expect(m.packaging?.platforms?.android).toEqual({ output: 'project', appBundle: true });
+ const bad = parseManifest({ name: 'X', packaging: { platforms: { android: { output: 'zip', appBundle: 'yes' } } } });
+ expect(bad.packaging?.platforms?.android).toBeUndefined();
+ });
+
it('parses excludeScenes, dropping non-string / empty entries', () => {
const m = parseManifest({
name: 'X',
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index bae944645..a4a8d3004 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -1144,4 +1144,6 @@ export const NOTED = {
{ note: 'A connected native build\'s frame can be captured and replayed.' },
'fix(native): a native build reports its draws, and what the debug channel costs it':
{ note: 'A native development build\'s Profiler shows its draw calls, triangles, sprites and VRAM, and what the debug channel costs it: all read 0 on a native build.' },
+ 'fix(android): the Gradle project and App Bundle settings reach the export':
+ { note: 'Android\'s "Android Studio project" and "App Bundle (.aab)" settings take effect: the project file never read them back, so every Android export wrote an APK and nothing else.' },
};