Skip to content

Fix repack AAB output path#3892

Open
Kudo wants to merge 1 commit into
mainfrom
@kudo/repack/aab
Open

Fix repack AAB output path#3892
Kudo wants to merge 1 commit into
mainfrom
@kudo/repack/aab

Conversation

@Kudo

@Kudo Kudo commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Why

Repacked Android builds should produce an APK output path, even when the source app path or requested output path ends in .aab.

How

Moved output path creation into a helper and rewrite .aab paths to .apk.

Test Plan

  • yarn run -T oxfmt packages/build-tools/src/steps/functions/repack.ts packages/build-tools/src/steps/functions/__tests__/repack.test.ts
  • yarn --cwd packages/build-tools jest-unit repack.test.ts --watchman=false

@Kudo Kudo added the no changelog PR that doesn't require a changelog entry label Jun 23, 2026
@github-actions

Copy link
Copy Markdown

⏩ The changelog entry check has been skipped since the "no changelog" label is present.

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.02%. Comparing base (4071f48) to head (c39788c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3892      +/-   ##
==========================================
+ Coverage   59.01%   59.02%   +0.01%     
==========================================
  Files         935      935              
  Lines       40933    40939       +6     
  Branches     8624     8625       +1     
==========================================
+ Hits        24153    24159       +6     
  Misses      16684    16684              
  Partials       96       96              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Kudo Kudo marked this pull request as ready for review June 23, 2026 19:43
@Kudo Kudo requested a review from sjchmiela June 23, 2026 19:43
@github-actions

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
**/* @douglowder

Generated by CodeMention

expect(repackStep.outputById['output_path'].value).toBe('/path/to/output_app');
});

it('should rename explicit aab output path to apk', async () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this weird? like what's the purpose of output_path input if it can be different in the end haha

maybe we can drop the input altogether?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's kind of intentional to support aab. repack wouldn't be ideal tool to support production aab build, but it's fine to repack from aab source build.
open to idea if there's a better way to support aab. (or even fine that just not to support aab)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PR that doesn't require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants