-
Notifications
You must be signed in to change notification settings - Fork 35
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
update new module script to use geo-compose toolkit component #148
update new module script to use geo-compose toolkit component #148
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.
Few minor change requests. The script runs well, and the sample works using geo-compose.
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.
I like the new module created when the script is used, but I don't think it should require any sample changes. The DisplayComposableMapView
sample should be a basic implementation of the DisplayMap
sample, i.e. render a map with a basemap style.
The module script can spin up a sample with touch event implementation, but let's keep this sample similar to DisplayMap
with the geo-compose module.
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.
I am fine with this change. Although with the previous version of display-composable-mapview
sample, we did have the touch event implementation in addition to displaying the map with a particular basemap style. Not sure if there was any particular intention of doing it that way back then? But I too feel it should be similar to the display map sample.
@@ -45,4 +45,7 @@ dependencies { | |||
implementation "androidx.compose.ui:ui-tooling" | |||
implementation "androidx.compose.ui:ui-tooling-preview" | |||
implementation project(path: ':samples-lib') | |||
// Toolkit dependencies | |||
implementation(platform("com.esri:arcgis-maps-kotlin-toolkit-bom:200.3.0-1")) |
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.
Could you update this sample with the flag arcgisToolkitVersion
and update the versions.gradle
with the build tag of geo-compose:
implementation(platform("com.esri:arcgis-maps-kotlin-toolkit-bom:200.3.0-1")) | |
implementation(platform("com.esri:arcgis-maps-kotlin-toolkit-bom:$arcgisToolkitVersion")) |
@shubham7109 Thanks, please re-review? |
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.
One minor change request, PR looks good 👍
...le-mapview/src/main/java/com/esri/arcgismaps/sample/displaycomposablemapview/MainActivity.kt
Outdated
Show resolved
Hide resolved
…ample/displaycomposablemapview/MainActivity.kt Co-authored-by: Shubham Sharma <shubhamsharma@esri.com>
Could you update the |
@@ -2,7 +2,7 @@ ext { | |||
// ArcGIS Maps SDK for Kotlin version | |||
arcgisVersion = '200.3.0-4075' | |||
// ArcGIS Maps SDK for Kotlin Toolkit version | |||
arcgisToolkitVersion = '200.3.0-4075' | |||
arcgisToolkitVersion = '200.3.0-1' |
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.
shouldn't this be 200.3.0
?
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.
200.3.0-1
is the published toolkit version where the geo-compose MapView is available
https://devtopia.esri.com/runtime/kotlin/issues/3358#issuecomment-4463774
* Wraps the MapView in a Composable function. | ||
*/ | ||
@Composable | ||
fun ComposeMapView( |
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.
this sample showcoordinatesinmultipleformats
is still referring to this fun and has a compilation error because of this removal.
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.
got falsely committed, reverted.
@@ -111,9 +110,6 @@ private void createFilesAndFolders() { | |||
|
|||
File composeComponentsDir = new File(packageDirectory + "/components"); |
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.
should this be renamed to componentsDir
?
@puneet-pdx There might be some merge issues, as Shubham recently merged main into the feature-branch/geo-compose. I will merge my branch with the latest feature-branch/geo-compose, which should resolve some errors. |
@puneet-pdx thank you, a re-review? Once this PR is merged, I will merge the subsequent PR's I have open with the feature branch. |
Description
PR to update the new module script to spin up new samples using the
geo-compose
toolkit module by default.Links and Data
Sample Epic:
runtime/kotlin/issues/3370
What To Review
How to Test
java -jar tools/NewModuleScript.jar
The .jar file will prompt you to type in the name of the new sample.