A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Esri/arcgis-maps-sdk-kotlin-samples/wiki/Developer-Instructions below:

Developer Instructions · Esri/arcgis-maps-sdk-kotlin-samples Wiki · GitHub

The ArcGIS Maps SDK for Kotlin Samples are Gradle based Android projects which can be directly cloned and imported into Android Studio.

If you haven't already, fork the this repo.

Once you have forked the repo, you need to create a local copy, or clone. You can do this directly in Android Studio, from a terminal prompt, or a GUI Client.

Clone the ArcGIS Maps SDK for Kotlin Samples in Android Studio:

  1. Choose VCS > Checkout from Version Control > GitHub on the main menu.
  2. From the Repository drop-down list, select the source repository to clone the data from.
  3. In the Folder text box, specify the directory where the local repository for cloned sources will be set up.
  4. Click the Clone button to start cloning the sources from the specified remote repository.

Clone the ArcGIS Maps SDK for Kotlin Samples

Open your terminal, navigate to your working directory, use git clone to get a copy of the repo.

# Clones your fork of the repository into the current directory in terminal
$ git clone https://github.com/YOUR-USERNAME/arcgis-maps-sdk-kotlin-samples.git
Configure remote upstream for your fork

To sync changes you make in a fork with this repository, you must configure a remote that points to the upstream repository in Git.

$ git remote -v
origin  https://github.com/YOUR_USERNAME/arcgis-maps-sdk-kotlin-samples.git (fetch)
origin  https://github.com/YOUR_USERNAME/arcgis-maps-sdk-kotlin-samples.git (push)
$ git remote add upstream https://github.com/Esri/arcgis-maps-sdk-kotlin-samples.git
$ git remote -v
origin  https://github.com/YOUR_USERNAME/arcgis-maps-sdk-kotlin-samples.git (fetch)
origin  https://github.com/YOUR_USERNAME/arcgis-maps-sdk-kotlin-samples.git (push)
upstream https://github.com/Esri/arcgis-maps-sdk-kotlin-samples.git (fetch)
upstream https://github.com/Esri/arcgis-maps-sdk-kotlin-samples.git (push)

Once you have set up a remote upstream you can keep your fork up to date with our samples repository by syncing your fork.

$ git merge upstream/main
Import Gradle Sample project into Android Studio

Once the project is cloned to disk you can import into Android Studio:

ArcGIS Maps SDK dependency

The latest ArcGIS Maps SDK compile dependency is defined for all sample modules in the root project build.gradle. This is the only place where you need to define the dependency to the ArcGIS Maps SDK for Kotlin.

subprojects {
    afterEvaluate { project ->
        if (project.hasProperty("dependencies")) {
            dependencies {
                compile 'com.esri:arcgis-maps-kotlin:200.1.0'
            }
        }
    }
}

Our SDK is hosted in our public maven repository hosted by JFrog. Our repository url is added to the projects root build.gradle file.

repositories {
    mavenCentral()
    maven {
        url 'https://esri.jfrog.io/artifactory/arcgis'
    }
}

You should now be able to run any of the included samples. We will use the display-map sample as an example.

Wiki Home


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4