Skip to content

yusera-at-dwao/aliumsdk

Repository files navigation

AliumAndroidSDK

Alium's Android SDK.

Install Via Gradle

for gradle 6.5 and above add the following code to your settings.gradle

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven{url 'https://jitpack.io'}
    }
}

for Gradle below 6.5, add the code to your project's build.gradle

allprojects{
	repositories{
        google()
        jcenter()
        maven{url 'https://jitpack.io'}
    }
}

Add the dependency to your app's build.gradle

dependencies {
	        implementation 'com.github.yusera-at-dwao:aliumsdk:test-1.0.2'
	}

In your app's build.gradle update minSdkVersion to 21

defaultConfig {
				....
				minSdkVersion 21
    }

Usage

Configure the SDK with Configure()

import the alium package.

import com.dwao.alium.survey.Alium;

Call configure method in MainApplication.java.

  AliumSdk.configure("your_project_url");

This method should be the first method called when initializing the Alium SDK. It sets the project key or URL and must be invoked as soon as possible in your application's lifecycle.

Trigger Surveys

Use AliumSdk.loadAliumSurvey() with the screen name to display surveys.

Create an instnace SurveyParameters to pass the screen name and parameters.

 Alium.loadAliumSurvey(this, new SurveyParameters("firstscreen", null));

Passing custom parameters to survey

   Alium.loadAliumSurvey(this, new SurveyParameters("firstscreen", new HashMap()));

About

Alium SDK for Android

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages