Splunk MINT SDK for Android (Legacy)

Splunk MINT SDK for Android Developer Guide

Acrobat logo Download manual as PDF


Splunk MINT is no longer available for purchase as of January 29, 2021. Customers who have already been paying to ingest and process MINT data in Splunk Enterprise will continue to receive support until December 31, 2021, which is End of Life for all MINT products: App, Web Service (Management Console), SDK and Add-On.
This documentation does not apply to the most recent version of Splunk MINT SDK for Android (Legacy). For documentation on the most recent version, go to the latest release.
Acrobat logo Download topic as PDF

Requirements and installation for Android

Requirements

We recommend adding the following values to your AndroidManifest.xml file:

  • android:minSdkVersion="7"
  • android:targetSdkVersion="22" or the latest version

For more, see the <uses-sdk> page on the Android Developers website.

Install the SDK JAR file

You can get the Splunk MINT SDK for Android by downloading the Java package file (mint-4.4.0.jar) and adding the JAR file to your project build path.

You can also download:

Install the SDK plugin using Maven

If you use Apache Maven (version 3.0.5 and later), get the SDK plugin by doing the following:

  1. Add the following dependency to your pom.xml file:
  2. <dependencies>
    
        <!-- other dependencies here -->
    
        <dependency>
            <groupId>com.splunk.mint</groupId>
            <artifactId>mint</artifactId>
            <version>4.4.0</version>
        </dependency>
    
    </dependencies>
    
  3. Add the repository details to the pom.xml file:
  4. <repositories>
    
        <!-- other repositories here -->
    
        <repository>
            <id>Splunk MINT repo</id>
            <name>The Splunk MINT Repository</name>
            <url>https://mint.splunk.com/maven/</url>
        </repository>
    </repositories>
    

Install the SDK plugin using Gradle

You can use the Gradle plugin for Android to add the Splunk MINT repository to your project. We recommend using Gradle version 1.10 for best results. Add the dependency to your build.gradle file, which is located in the root folder of your project, as follows:

apply plugin: 'android'

repositories {
    maven {
        url "https://mint.splunk.com/gradle/"
    }
}

dependencies {
    compile "com.splunk.mint:mint:4.4.0"
}

For more information about Gradle, see the Gradle Plugin User Guide on the Android Tools Project Site.

Note The https://mint.splunk.com/gradle/ URL is a base URL. The full path to the repository is completed by the plugin.
Last modified on 04 February, 2016
PREVIOUS
MINT Documentation
  NEXT
Add Splunk MINT to your Android project

This documentation applies to the following versions of Splunk MINT SDK for Android (Legacy): 4.4.x


Was this documentation topic helpful?


You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters