Skip to content

Conversation

rom14514
Copy link
Collaborator

Description

PR to add a new Kotlin sample "Show mobile map package expiration date" in Maps category.

Links and Data

Sample Epic: runtime/kotlin/issues/ISSUE_NUMBER

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.

@rom14514 rom14514 self-assigned this Sep 29, 2025
@rom14514 rom14514 added the New sample New Kotlin sample using ArcGIS Maps SDK label Sep 29, 2025
@eri9000 eri9000 self-requested a review September 30, 2025 22:18
Copy link
Collaborator

@eri9000 eri9000 left a comment

Choose a reason for hiding this comment

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

Good sample additions @rom14514 , see my comments

@@ -0,0 +1,18 @@
package com.esri.arcgismaps.sample.showmobilemappackageexpirationdate
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing copyright block


// Display expiration information overlay if the mobile map package is expired
if (mapViewModel.isExpired) {
Surface(
Copy link
Collaborator

Choose a reason for hiding this comment

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

you can use a Card here instead of a Surface

Comment on lines 48 to 51
var expirationMessage by mutableStateOf<String?>(null)
private set

var expirationDateText by mutableStateOf<String?>(null)
Copy link
Collaborator

Choose a reason for hiding this comment

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

These don't have to be nullable, You can set them to empty or N/A as you are already doing

rom14514 and others added 8 commits October 2, 2025 12:27
…com/esri/arcgismaps/sample/showmobilemappackageexpirationdate/screens/ShowMobileMapPackageExpirationDateScreen.kt

Co-authored-by: Erick Lopez Solis <[email protected]>
…com/esri/arcgismaps/sample/showmobilemappackageexpirationdate/screens/ShowMobileMapPackageExpirationDateScreen.kt

Co-authored-by: Erick Lopez Solis <[email protected]>
…com/esri/arcgismaps/sample/showmobilemappackageexpirationdate/screens/ShowMobileMapPackageExpirationDateScreen.kt

Co-authored-by: Erick Lopez Solis <[email protected]>
…com/esri/arcgismaps/sample/showmobilemappackageexpirationdate/components/ShowMobileMapPackageExpirationDateViewModel.kt

Co-authored-by: Erick Lopez Solis <[email protected]>
…-expiration-date' into rom14514/show-mobile-map-package-expiration-date
@rom14514
Copy link
Collaborator Author

rom14514 commented Oct 2, 2025

Thanks @eri9000! I addressed your comments, please take another look.
Note: I added missing copyright block to two other samples as part of this pr.

@rom14514 rom14514 requested a review from eri9000 October 2, 2025 12:05
Copy link
Collaborator

@eri9000 eri9000 left a comment

Choose a reason for hiding this comment

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

Looks good 👍🏼

Copy link
Collaborator

@shubham7109 shubham7109 left a comment

Choose a reason for hiding this comment

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

@rom14514 Sample works well, looks good to me. Added a comment below to help build the string path.

Happy to approve this as I may be ooo.

rom14514 and others added 2 commits October 6, 2025 11:50
…com/esri/arcgismaps/sample/showmobilemappackageexpirationdate/components/ShowMobileMapPackageExpirationDateViewModel.kt

Co-authored-by: Shubham Sharma <[email protected]>
…com/esri/arcgismaps/sample/showmobilemappackageexpirationdate/components/ShowMobileMapPackageExpirationDateViewModel.kt

Co-authored-by: Shubham Sharma <[email protected]>
@rom14514 rom14514 merged commit ab3ed8b into v.next Oct 6, 2025
1 check passed
@rom14514 rom14514 deleted the rom14514/show-mobile-map-package-expiration-date branch October 6, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New sample New Kotlin sample using ArcGIS Maps SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants