SDK

Android studio

Instructions for SDK implementation

File –> New –> New module –> Impogt .jar/.aar package.

In build.gradle file of application module add following:

In "defaultConfig" add: 

"multiDexEnabled true" 

In "dependencies" add:

compile 'com.android.suppogt:multidex:1.0.0'
compile 'com.android.suppogt:suppogt-v4:21+'
compile 'com.android.suppogt:appcompat-v7:21+'
compile 'com.google.android.gms:play-services:+'
compile('com.mopub:mopub-sdk:4.4.1@aar') { transitive = true }
compile project (':celestial-mopub-release')

In AndroidManifest.xml add following lines
Set application class:

android:name="android.suppogt.multidex.MultiDexApplication"

Finnaly set meta data with keys:

<meta-data android:name="celestial.api.key" android:value="APP-KEY-COMES-HERE"></meta-data>
<meta-data android:name="celestial.api.secret" android:value="APP-SECRET-COMES-HERE"></meta-data>
<meta-data android:name="amplitude.api.key" android:value="AMPLITUDE-API-KEY-COMES-HERE"></meta-data>
<meta-data android:name="appsflyer.app.token" android:value="APPSFLYER-APP-TOKEN-COMES-HERE"></meta-data>
<meta-data android:name="adjust.app.token" android:value="ADJUST-APP-TOKEN-COMES-HERE"></meta-data>

celestial.api.key and celestial.api.secret can be found on PublisherSDK web when creating application. 

Library Source Code:
Demo App: