Skip to content

Evntaly/evntaly-android

Repository files navigation

Evntaly Android SDK

Configuration

1. Add Dependencies

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

Add the following to build.gradle

dependencies {
    implementation 'com.github.evntaly:evntaly-android:Tag'
}

2. Intialize the SDK

EvntalySDK.init("token", "developersecret");

to enable sdk debug logs

EvntalySDK.init("token", "developersecret", true);

3. Send an Event

Evnt.Builder()
    .title("Test Event")
    .description("Test description")
    .build();

4. Identify User

EvntalySDK.identifyUser(
        EvntalyUser.Builder()
            .setId("0f6934fd-99c0-41ca-3333")
            .setEmail("Alameer@evntaly.com")
            .setFullName("Alameer Ashraf")
            .setOrganization("Evntaly")
            .setData(mapOf(
                "Location" to "Egypt",
                "timezone" to "Africa/Cairo"
            ))
            .build();
)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors