Alium's Android SDK.
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'}
}
}
dependencies {
implementation 'com.github.yusera-at-dwao:aliumsdk:test-1.0.2'
}
defaultConfig {
....
minSdkVersion 21
}
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.
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));
Alium.loadAliumSurvey(this, new SurveyParameters("firstscreen", new HashMap()));