Skip to content

Commit

Permalink
Merge pull request #116 from dailymotion/GLUE-815-iab-sdk-final-version
Browse files Browse the repository at this point in the history
GLUE-815-iab-sdk-final-version
  • Loading branch information
michgauz authored Oct 8, 2021
2 parents 0571b19 + b8156d6 commit 561947d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,11 @@ class PlayerWebView : WebView {
fun getEmbedderProperties() = Gson().toJson(
mapOf(
"sdk" to BuildConfig.SDK_VERSION,
"capabilities" to mapOf("omsdk" to OMHelper.getVersion())
"capabilities" to mapOf(
"omsdk" to OMHelper.getVersion(),
"ompartner" to OMHelper.PARTNER_NAME,
"omversion" to OMHelper.PARTNER_VERSION
)
)
).toString()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.dailymotion.android.player.sdk.iab

import android.content.Context
import com.dailymotion.android.BuildConfig
import com.dailymotion.android.player.sdk.PlayerWebView
import com.dailymotion.android.player.sdk.events.*
import com.iab.omid.library.dailymotion.Omid
Expand All @@ -14,7 +13,9 @@ import java.util.regex.Pattern

object OMHelper {

private const val PARTNER_NAME = "dailymotion"
const val PARTNER_NAME = "Dailymotion"
/** This represents the version of our SDK that has been validated by IAB */
const val PARTNER_VERSION = "0.2.8"

private var omidSession: AdSession? = null
private var omidAdEvents: AdEvents? = null
Expand Down Expand Up @@ -242,7 +243,7 @@ object OMHelper {
}

val partner = try {
Partner.createPartner(PARTNER_NAME, BuildConfig.SDK_VERSION)
Partner.createPartner(PARTNER_NAME, PARTNER_VERSION)
} catch (e: java.lang.IllegalArgumentException) {
logError("Error while creating partner", e)
return
Expand Down

0 comments on commit 561947d

Please sign in to comment.