Dash SDK: Getting Started

The Dash SDK allows developers to easily implement essential mobile protections in your Android and iOS apps. Dash requires minimal implementation and offers a variety of protections to address some of the largest mobile security needs.

Dash SDK Requirements

Android

Requires Android 2.3.3 and up

Requires INTERNET permission

Built around Android Studio
& the Gradle build system

Android SDK Installation

In your Gradle configuration, add the Dash SDK as a dependency.

dependencies {
    compile 'com.dashsdk:dash-core:(latest version)'
}

If you do not already request the INTERNET permission, please add it to your AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET"/>
              

API Key Configuration

In your MainActivity, import the Dash SDK package and set your API key.

import com.dashsdk.Dash; //Import the Dash SDK
Dash.setProjectKey("oida8fdf783gf317gerbnidat872e9u");

Initialize Dash Services

Dash provides one method that is called for all initialization, partitioning, and key exchange events. This method is placed right after your existing user authentication, and allows Dash to services to seamlessly integrate into your app.

Below is an example how Dash may be added to an existing login/registration system:

import com.dashsdk.Dash; //Import the Dash SDK

boolean userIsValid = authUser("username", "password"); //Your authentication code
  if(userIsValid)
    Dash.initialize("username", "password"); //Initialize user partitions for authenticated users