Splunk MINT SDK for Android (Legacy)

Splunk MINT SDK for Android Developer Guide

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.

Use ProGuard with Splunk MINT

Use the following guidelines when using Saikoa ProGuard with Splunk MINT.

  • To exclude Splunk MINT from being obfuscated, add the following line to your ProGuard configuration file:
  • -keep class com.splunk.** { *; }
    -libraryjars libs/mint-5.2.1.jar
  • Use the following suggested ProGuard settings:
  • -optimizationpasses 25
    -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
    -printmapping out.map
    -renamesourcefileattribute SourceFile
    -keepattributes SourceFile,LineNumberTable
    -keep class com.splunk.** { *; }
    -keep public class * extends android.app.Activity
    -keep public class * extends android.app.Application
    -keep public class * extends android.app.Service
    -keep public class * extends android.content.BroadcastReceiver
    -keep public class * extends android.content.ContentProvider
    -keep public class * extends android.app.backup.BackupAgentHelper
    -keep public class * extends android.preference.Preference
    -keep public class com.android.vending.licensing.ILicensingService
    -keepclasseswithmembernames class * {
        native <methods>;
    -keepclasseswithmembers class * {
        public <init>(android.content.Context, android.util.AttributeSet);
    -keepclasseswithmembers class * {
        public <init>(android.content.Context, android.util.AttributeSet, int);
    -keepclassmembers class * extends android.app.Activity {
       public void *(android.view.View);
    -keepclassmembers enum * {
        public static **[] values();
        public static ** valueOf(java.lang.String);
    -keep class * implements android.os.Parcelable {
      public static final android.os.Parcelable$Creator *;

Upload ProGuard mappings files in the Project settings page in the MINT Management Console.

Last modified on 28 January, 2019
Verify the SDK is integrated   Customize session handling

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

Was this topic useful?

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