Skip to content

Commit

Permalink
release v.0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
iAgentur committed Sep 3, 2021
1 parent 0974e5c commit 3e2a4b0
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,7 @@ <h1 class="cover"><span>Ringier</span><wbr></wbr><span>Config</span></h1>
<div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Types">Types</button><button class="section-tab" data-togglable="Properties">Properties</button></div>
<div class="tabs-section-body">
<h2 class="">Types</h2>
<div class="table" data-togglable="Types"><a data-name="1059995965%2FClasslikes%2F371966268" anchor-label="CustomParameters" id="1059995965%2FClasslikes%2F371966268" data-filterable-set=":app:ringieradsdk:dokkaHtml/release"></a>
<div class="table-row" data-filterable-current=":app:ringieradsdk:dokkaHtml/release" data-filterable-set=":app:ringieradsdk:dokkaHtml/release">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-custom-parameters/index.html">CustomParameters</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1059995965%2FClasslikes%2F371966268"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title"><div class="divergent-group" data-filterable-current=":app:ringieradsdk:dokkaHtml/release" data-filterable-set=":app:ringieradsdk:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":app:ringieradsdk:dokkaHtml/release"><div class="symbol monospace">object <a href="-custom-parameters/index.html">CustomParameters</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<a data-name="2020060437%2FClasslikes%2F371966268" anchor-label="Slots" id="2020060437%2FClasslikes%2F371966268" data-filterable-set=":app:ringieradsdk:dokkaHtml/release"></a>
<div class="table" data-togglable="Types"><a data-name="2020060437%2FClasslikes%2F371966268" anchor-label="Slots" id="2020060437%2FClasslikes%2F371966268" data-filterable-set=":app:ringieradsdk:dokkaHtml/release"></a>
<div class="table-row" data-filterable-current=":app:ringieradsdk:dokkaHtml/release" data-filterable-set=":app:ringieradsdk:dokkaHtml/release">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-slots/index.html">Slots</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="2020060437%2FClasslikes%2F371966268"></span>
Expand Down
2 changes: 0 additions & 2 deletions DokkaDocs/dokka/html/ringieradsdk/package-list
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ $dokka.location:ch.iagentur.ringieradsdk.external/AdControllerListener.AdRefresh
$dokka.location:ch.iagentur.ringieradsdk.external/AdControllerListener.AdRefreshListener/onRefreshAdView/#/PointingToDeclaration/ringieradsdk/ch.iagentur.ringieradsdk.external/-ad-controller-listener/-ad-refresh-listener/on-refresh-ad-view.html
$dokka.location:ch.iagentur.ringieradsdk.external/AdControllerListener///PointingToDeclaration/ringieradsdk/ch.iagentur.ringieradsdk.external/-ad-controller-listener/index.html
$dokka.location:ch.iagentur.ringieradsdk.external/AdControllerListener/onAdRefreshListener/#/PointingToDeclaration/ringieradsdk/ch.iagentur.ringieradsdk.external/-ad-controller-listener/on-ad-refresh-listener.html
$dokka.location:ch.iagentur.ringieradsdk.external/RingierConfig.CustomParameters///PointingToDeclaration/ringieradsdk/ch.iagentur.ringieradsdk.external/-ringier-config/-custom-parameters/index.html
$dokka.location:ch.iagentur.ringieradsdk.external/RingierConfig.CustomParameters/ADMFORCE/#/PointingToDeclaration/ringieradsdk/ch.iagentur.ringieradsdk.external/-ringier-config/-custom-parameters/-a-d-m-f-o-r-c-e.html
$dokka.location:ch.iagentur.ringieradsdk.external/RingierConfig.Slots///PointingToDeclaration/ringieradsdk/ch.iagentur.ringieradsdk.external/-ringier-config/-slots/index.html
$dokka.location:ch.iagentur.ringieradsdk.external/RingierConfig.Slots/MODULE_ADMOB/#/PointingToDeclaration/ringieradsdk/ch.iagentur.ringieradsdk.external/-ringier-config/-slots/-m-o-d-u-l-e_-a-d-m-o-b.html
$dokka.location:ch.iagentur.ringieradsdk.external/RingierConfig.Slots/MODULE_XANDR/#/PointingToDeclaration/ringieradsdk/ch.iagentur.ringieradsdk.external/-ringier-config/-slots/-m-o-d-u-l-e_-x-a-n-d-r.html
Expand Down
2 changes: 1 addition & 1 deletion DokkaDocs/dokka/html/scripts/pages.json

Large diffs are not rendered by default.

Binary file modified demoApp/app/libs/ringieradsdk-release.aar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class BannerActivity : ViewBindingBaseActivity<ActivityBannerBinding>() {
mapOfSizes.remove(0)
}
mapOfSizes[0] = sizes
abBannerOneInfo.visibility = View.VISIBLE
abBannerOneInfo.beVisible()
}
}
abBannerTwo.adSizeListener = object : RingierAd.AdSizeListener {
Expand All @@ -53,7 +53,7 @@ class BannerActivity : ViewBindingBaseActivity<ActivityBannerBinding>() {
mapOfSizes.remove(1)
}
mapOfSizes[1] = sizes
abBannerTwoInfo.visibility = View.VISIBLE
abBannerTwoInfo.beVisible()
}
}
abBannerThree.adSizeListener = object : RingierAd.AdSizeListener {
Expand All @@ -65,7 +65,7 @@ class BannerActivity : ViewBindingBaseActivity<ActivityBannerBinding>() {
mapOfSizes.remove(2)
}
mapOfSizes[2] = sizes
abBannerThreeInfo.visibility = View.VISIBLE
abBannerThreeInfo.beVisible()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package ch.iagentur.ringieradsdk.demo.ui.activities
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.MenuItem
import androidx.recyclerview.widget.GridLayoutManager
import ch.iagentur.ringieradsdk.demo.DemoAppConfig
import ch.iagentur.ringieradsdk.demo.R
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
package ch.iagentur.ringieradsdk.demo.ui.models

data class RecyclerItemModel(val text: String, val image: Int? = null)
data class RecyclerItemModel(
val text: String,
val image: Int? = null
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package ch.iagentur.ringieradsdk.demo.ui.models

data class RingierAdItemModel(
val placeholderIds: String,
val screenIds: String
val slotId: String,
val channelId: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package ch.iagentur.ringieradsdk.demo.ui.viewholders

import androidx.recyclerview.widget.RecyclerView
import ch.iagentur.ringieradsdk.demo.databinding.ItemRecyclerviewBinding
import ch.iagentur.ringieradsdk.demo.databinding.RowRingieradBinding

class RecyclerViewHolder(private val binding: ItemRecyclerviewBinding) :
RecyclerView.ViewHolder(binding.root) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ch.iagentur.ringieradsdk.demo.databinding.RowRingieradBinding
import ch.iagentur.ringieradsdk.demo.extensions.beInvisible
import ch.iagentur.ringieradsdk.demo.extensions.beVisible
import ch.iagentur.ringieradsdk.demo.extensions.showAlertDialog
import ch.iagentur.ringieradsdk.demo.extensions.toStringWithNewLine
import ch.iagentur.ringieradsdk.demo.ui.models.RingierAdItemModel
import ch.iagentur.ringieradsdk.external.ad.RingierAd
import ch.iagentur.ringieradsdk.external.error.RingierAdError
Expand All @@ -24,15 +25,15 @@ class RingierAdViewHolder(private val binding: RowRingieradBinding) :
binding.apply {
//If the banner has an advertisement, it won't send a "Load Ad" request.
if (rrBannerAdView.childCount == 0) {
rrBannerAdView.loadAd(ringierAdItemModel.placeholderIds, ringierAdItemModel.screenIds)
rrBannerAdView.loadAd(ringierAdItemModel.slotId, ringierAdItemModel.channelId)
}
itemView.setOnClickListener {
clickListener?.invoke()
}
rrButtonInfoImageView.setOnClickListener {
itemView.context.showAlertDialog(
"${ringierAdItemModel.placeholderIds} settings: ",
size.toString(),
"${ringierAdItemModel.slotId} settings: ",
sizes.toStringWithNewLine(),
"OK"
) {}
}
Expand All @@ -44,10 +45,10 @@ class RingierAdViewHolder(private val binding: RowRingieradBinding) :
override fun adFailed(error: RingierAdError) {
rrButtonInfoImageView.beInvisible()
Timber.tag(TAG)
.d("${ringierAdItemModel.placeholderIds}, error = ${error.message}")
.d("${ringierAdItemModel.slotId}, error = ${error.message}")
if (error.throwable != null) {
Timber.tag(TAG)
.e(error.throwable, "${ringierAdItemModel.placeholderIds} adFailed")
.e(error.throwable, "${ringierAdItemModel.slotId} adFailed")
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package ch.iagentur.ringieradsdk.demo.ui.viewholders

import android.view.View
import androidx.recyclerview.widget.RecyclerView
import ch.iagentur.ringieradsdk.demo.databinding.ItemSettingsRecyclerviewBinding
import ch.iagentur.ringieradsdk.demo.extensions.beGone
import ch.iagentur.ringieradsdk.external.models.RingierAdUrlModel

class SettingsViewHolder(private val binding: ItemSettingsRecyclerviewBinding) :
Expand All @@ -14,7 +14,7 @@ class SettingsViewHolder(private val binding: ItemSettingsRecyclerviewBinding) :
fun bindView(urlModel: RingierAdUrlModel) {
binding.apply {
if (!urlModel.isRemovable) {
isrRemoveImageView.visibility = View.GONE
isrRemoveImageView.beGone()
}
isrSwitchCompat.isChecked = urlModel.isActivated
isrUrlTextView.text = urlModel.url
Expand Down

0 comments on commit 3e2a4b0

Please sign in to comment.