Skip to content

feat(core): add android activityEmbedding config - #15255

Open
lucasfernog wants to merge 2 commits into
devfrom
feat/android-embedded-activity-generator
Open

feat(core): add android activityEmbedding config#15255
lucasfernog wants to merge 2 commits into
devfrom
feat/android-embedded-activity-generator

Conversation

@lucasfernog

Copy link
Copy Markdown
Member

automatically configures the project to support Activity embedding and generate split rules from config

automatically configures the project to support Activity embedding and generate split rules from config
@lucasfernog
lucasfernog requested a review from a team as a code owner April 16, 2026 18:53
@github-actions

github-actions Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through 1f03298

There are 11 changes which include tauri with minor, @tauri-apps/api with minor, tauri-utils with minor, tauri-build with minor, tauri-macos-sign with patch, tauri-bundler with minor, @tauri-apps/cli with minor, tauri-cli with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-plugin with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.10.1 2.11.0
tauri-utils 2.8.3 2.9.0
tauri-macos-sign 2.3.3 2.3.4
tauri-bundler 2.8.1 2.9.0
tauri-runtime 2.10.1 2.11.0
tauri-runtime-wry 2.10.1 2.11.0
tauri-codegen 2.5.5 2.5.6
tauri-macros 2.5.5 2.5.6
tauri-plugin 2.5.4 2.6.0
tauri-build 2.5.6 2.6.0
tauri 2.10.3 2.11.0
@tauri-apps/cli 2.10.1 2.11.0
tauri-cli 2.10.1 2.11.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@lucasfernog

Copy link
Copy Markdown
Member Author

follow-up for #14484

"tauri-utils": minor:feat
---

Added `tauri.conf.json > bundle > android > activityEmbedding` config to enable Activity embedding and define split rules for Android multi-window support.

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.

The new splitRules entry declares "secondary": "DetailActivity", but no DetailActivity Kotlin class is generated by tauri-build or declared in the example. Is the expectation this too is generated or is manually supplied by the user?

Ok(())
}

fn append_split_rule(kt: &mut String, i: usize, rule: &SplitPairRule, package_name: &str) {

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.

Both SplitType::Ratio(f64) and EmbeddingAspectRatio::Ratio(f64) variants accept a bare f64. The comments document the SDK's contract (0.0 < r < 1.0 for SplitType::Ratio, > 1.0 for EmbeddingAspectRatio::Ratio), but nothing enforces it. Should this be enforced?

Nit: Kotlin treats values like $identifier and ${expr} as string interpolation. Should we guard against this? (Even if these are invalid for this use-case).

@Legend-Master Legend-Master changed the title feat(core): add androidEmbedding config feat(core): add android activityEmbedding config Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants