Skip to content

Conversation

@shishkin-pavel
Copy link

simplify build by unifying targets

Testing

snapshot build

Release Notes

N/A

Copy link
Member

Choose a reason for hiding this comment

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

Please align file-naming. It should be *.ios.kt now (on AOSP it's enforced by tooling)


companion object {

const val DEFAULT = "DEFAULT"
Copy link
Member

Choose a reason for hiding this comment

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

What's default actually means here?

tasks.register("testUIKit") {
val suffix = if (System.getProperty("os.arch") == "aarch64") "SimArm64Test" else "X64Test"
val uikitTestSubtaskName = "uikit$suffix"
tasks.register("testIos") {
Copy link
Member

Choose a reason for hiding this comment

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

Probably requires CI update to correctly run tests

ComposeComponent(
":compose:ui:ui-uikit",
supportedPlatforms = ComposePlatforms.UI_KIT
supportedPlatforms = ComposePlatforms.IOS
Copy link
Member

Choose a reason for hiding this comment

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

Is it compatiable change? Will transitive dependencies pickup new name?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Theoretically it should be compatible as Gradle only looks for the target type, not name. But we should check that.

@shishkin-pavel, we should check if it is compatible on:

  • the wizard project
  • the wizard project + a library which has ios target with -ios* suffix
  • the wizard project + a library which has ios target with -uikit* suffix

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.

4 participants