Skip to content

Removing native targets did not cause API check to fail #234

@JakeWharton

Description

@JakeWharton

I removed a bunch of multiplatform targets in cashapp/redwood#2070 but made no actual API changes.

There were three types of removals:

  1. Module with ios (arm/x86/simulator) and macos (arm/x86) were changed to be ios-only.
  2. Module with ios, macos, jvm, and js was changed to jvm and js only.
  3. Module with android and jvm were changed to be jvm only.

In all three cases the apiCheck task did not fail despite running apiDump producing significant changes to the API files (as seen in cashapp/redwood#2077).

Points 1 and 2 are similar, both being cases of the targets in the API file being now incorrect. Point 3 is interesting because the API files in android/ and jvm/ were now dead and the API file in the root was missing.

I would have hoped all three cases to be detected, fail the build, and require an apiDump to update the files.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingklib

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions