-
Notifications
You must be signed in to change notification settings - Fork 42
Sample - Show mobile map package expiration date #437
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
Sample - Show mobile map package expiration date #437
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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
...ample/showmobilemappackageexpirationdate/screens/ShowMobileMapPackageExpirationDateScreen.kt
Outdated
Show resolved
Hide resolved
...ample/showmobilemappackageexpirationdate/screens/ShowMobileMapPackageExpirationDateScreen.kt
Outdated
Show resolved
Hide resolved
...ample/showmobilemappackageexpirationdate/screens/ShowMobileMapPackageExpirationDateScreen.kt
Outdated
Show resolved
Hide resolved
var expirationMessage by mutableStateOf<String?>(null) | ||
private set | ||
|
||
var expirationDateText by mutableStateOf<String?>(null) |
There was a problem hiding this comment.
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
...showmobilemappackageexpirationdate/components/ShowMobileMapPackageExpirationDateViewModel.kt
Outdated
Show resolved
Hide resolved
…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
Thanks @eri9000! I addressed your comments, please take another look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍🏼
...ample/showmobilemappackageexpirationdate/screens/ShowMobileMapPackageExpirationDateScreen.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
...showmobilemappackageexpirationdate/components/ShowMobileMapPackageExpirationDateViewModel.kt
Outdated
Show resolved
Hide resolved
...showmobilemappackageexpirationdate/components/ShowMobileMapPackageExpirationDateViewModel.kt
Outdated
Show resolved
Hide resolved
…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]>
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
README.md
andREADME.metadata.json
filesHow to Test
Run the sample on the sample viewer or the repo.