Skip to content

bidapphub/bidapp-kotlin-multiplatform-plugin

Repository files navigation

Logo


Bidapp ads kotlin multiplatform demo

Bidapp ads kotlin multiplatform demo for Android and IOS

Documentation

Complete integration instructions and usage guide for the Bidapp Ads Kotlin Multiplatform library can be found here.

Integrate Bidapp KMP library

To use Bidapp multiplatform, implement the library in the build.gradle.kts file within the commonMain section:

// Latest version 0.3.0
    sourceSets {
        commonMain.dependencies {
            implementation("io.bidapp:kmp:+")
         }
    }

On iOS, you also have to add the Bidapp pod to your Podfile:

target 'iosApp' do
    pod 'bidapp/SDK'
end 

For detailed usage of the library, please follow the link provided in the documentation.

Demo APP

Logo Logo


The demo directory contains a shared module and test applications for Android and iOS

Setting up advertising display in the demo

  • Go to the Bidapp dashboard, add a new application, and connect advertising networks.
    For this demo, a test App ID for AdMob is set in the AndroidManifest for Android and in the Info.plist for iOS.

  • In the build.gradle.kts file of the shared module, you can configure the adapters according to the settings of the advertising networks on the Bidapp dashboard.

Example for Android:

plugins {
 android {
    //...
    dependencies {
        implementation ("io.bidapp.networks:unity:latest")
        implementation ("io.bidapp.networks:liftoff:latest")
        implementation ("io.bidapp.networks:admob:latest")
    }
  }
}

Example for IOS:

plugins {
 cocoapods {
        //...
        pod("bidapp/AdMob")
        pod("bidapp/Unity")
        pod("bidapp/Liftoff")
        //...
    }
}
  • Set in the Settings file located in the shared module the pubId for Android and iOS. Additionally, you can enable or disable:

Test mode, Logging

const val pubId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

const val isEnableTestMode = true
const val isEnableLogging = true

IOS

interstitialios rewardedios mrecios bannerios

Android

interstitialandroid rewardedandroid mrecandroid bannerandroid

Contact Us

Email: support@bidapp.io

About

Bidapp Ads plugin for kotlin-multiplatform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages