Skip to main content

React Native

React Native Android

Update your Project-Level build.gradle and add the following repositories in allprojects section.

allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url =
uri("https://artifact.bytedance.com/repository/pangle/") }
maven { url = uri("https://android-sdk.is.com") }
maven { url =
uri("https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea") }
maven {
url = uri("https://artifactory.bidmachine.io/bidmachine")
}
}
}

Once done update your app-level build.gradle to add the following dependencies.

implementation("com.yodo1.mas:full:4.13.1")
implementation("com.google.android.gms:play-services-ads:23.1.0")
implementation("com.google.ads.mediation:pangle:6.0.0.3.0")
implementation("io.bidmachine:ads:2.7.0")

React Native iOS

To add iOS SDK to your project, open the Podfile file of your project using Xcode or in any code editor.

Add the following lines to your Podfile.

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/Yodo1Games/MAS-Spec.git'

pod 'Yodo1MasFull', '4.13.1'

use_frameworks! :linkage => :static

Then execute the following command in terminal to install the pods:

pod install --repo-update
info

To ensure your build is compatible with artifacts that contain Swift, set Build Settings Always Embed Swift Standard Libraries to YES.

Next Steps