Skip to content

chore: [ANDROSDK-2330] migrate map layer domain models to kotlin#2645

Merged
taridepaco merged 5 commits into
developfrom
ANDROSDK-2330
Jun 26, 2026
Merged

chore: [ANDROSDK-2330] migrate map layer domain models to kotlin#2645
taridepaco merged 5 commits into
developfrom
ANDROSDK-2330

Conversation

@taridepaco

@taridepaco taridepaco commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Migrate the map layer domain models (MapLayer, MapLayerImageryProvider and MapLayerImageryProviderArea) from Java AutoValue classes to Kotlin data classes using the @ModelBuilder annotation, as part of batch 12 of the domain model Kotlin migration.

As part of the migration the MapLayer.external property is tightened to non-null to match its API contract. This adds a migration in 181.sql that recreates the MapLayer table with external INTEGER NOT NULL (dropping rows where it was null) and adapts MapLayerDB accordingly.

Related task: ANDROSDK-2330

class Builder : MapLayerBuilder()

companion object {
const val IMAGERY_PROVIDERS = "imageryProviders"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think this property was intentionally public in the model class. It seems it is only used for the childrenAppender identification, so it could be moved to the companion object in the collectionRepository as the rest of children appenders

vgarciabnz
vgarciabnz previously approved these changes Jun 25, 2026
@sonarqubecloud

Copy link
Copy Markdown

@taridepaco taridepaco merged commit 1948c30 into develop Jun 26, 2026
11 checks passed
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