Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cut geometry sample #302

Merged
merged 19 commits into from
Jan 29, 2025
Merged

Cut geometry sample #302

merged 19 commits into from
Jan 29, 2025

Conversation

darryl-lynch
Copy link
Collaborator

Description

Migrate the cut geometry sample from XML to Compose

Links and Data

Issue: https://devtopia.esri.com/runtime/kotlin/issues/4974
vTest: https://runtime-kotlin.esri.com/view/all/job/vtest/job/sampleviewer/70/

What To Review

  • Review the code to make sure it is easy to follow like other samples on Android
  • README.md and README.metadata.json files

How to Test

Run the sample on the sample viewer or the repo.

@darryl-lynch darryl-lynch force-pushed the cut_geometry_sample branch 2 times, most recently from 583a944 to ab9bc97 Compare January 10, 2025 20:05
Copy link
Collaborator

@01smito01 01smito01 left a comment

Choose a reason for hiding this comment

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

Sample works quite nicely @darryl-lynch. Just a few suggestions & considerations.

Copy link
Collaborator

@01smito01 01smito01 left a comment

Choose a reason for hiding this comment

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

LGTM, only a few quibbles.

}.toGeometry()
}
// get a polygon corresponding to Lake Superior
private val lakeSuperiorPolygon = makeLakeSuperior()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not 100% sure on the function name here, but I've not got an immediate suggestion.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I see where you're coming from

darryl-lynch and others added 4 commits January 15, 2025 15:23
Co-authored-by: Oliver Smith <67012037+01smito01@users.noreply.github.com>
Co-authored-by: Oliver Smith <67012037+01smito01@users.noreply.github.com>
Co-authored-by: Oliver Smith <67012037+01smito01@users.noreply.github.com>
Co-authored-by: Oliver Smith <67012037+01smito01@users.noreply.github.com>
@alan-edi alan-edi self-requested a review January 21, 2025 09:18
Copy link
Collaborator

@alan-edi alan-edi left a comment

Choose a reason for hiding this comment

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

@darryl-lynch Looks good. A couple of minor quibbles to consider.

Also, a couple of things re the screenshot:

  • The Contribution Guide says Screenshots should not contain the "Licensed for developers" watermark and points at some license keys that can be used to achieve that.
  • Personally I'd prefer our screenshots to include significant UI components, in this case the 2 buttons. Here's what I did for one I worked on recently. That said, I'm not sure others have done that consistently.

Fix one method level comment being unaligned

Add full stop to the end of sentences
@darryl-lynch
Copy link
Collaborator Author

Also, a couple of things re the screenshot:

  • The Contribution Guide says Screenshots should not contain the "Licensed for developers" watermark and points at some license keys that can be used to achieve that.
  • Personally I'd prefer our screenshots to include significant UI components, in this case the 2 buttons. Here's what I did for one I worked on recently. That said, I'm not sure others have done that consistently.

I've mostly just been reusing the old screenshots, which contain the watermark and don't have the buttons. There does seem to be inconsistency regarding inclusion of buttons even within the more recently migrated or created samples, though I agree the watermark is not ideal and the guidance is clear on it so I will get a new screenshot without it at least.

Copy link
Collaborator

@alan-edi alan-edi left a comment

Choose a reason for hiding this comment

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

@darryl-lynch I'm approving this so as not to delay merging when you're ready. I assume you'll create a screenshot without the watermark.

@darryl-lynch darryl-lynch merged commit 4390fa8 into v.next Jan 29, 2025
1 check passed
@darryl-lynch darryl-lynch deleted the cut_geometry_sample branch January 29, 2025 12:47
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.

3 participants