Skip to main content

V6.9.1-Support

  • 更新三方SDK

混淆配置#

# TradPlus必须配置
-keep public class com.tradplus.** { *; }
-keep class com.tradplus.ads.** { *; }
# 聚合Helium 需要配置
-keep class org.greenrobot.** { *; }
# 聚合Youdao 需要配置
-libraryjars libs/youdaosdk_4.1.6.aar
-libraryjars libs/msa_mdid_1.0.13.aar
# 聚合Baidu 需要配置
-ignorewarnings
-dontwarn com.baidu.mobads.sdk.api.**
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class com.baidu.mobads.sdk.api.** { *; }
-keep class com.baidu.mobads.** { *; }
-keep class com.baidu.mobad.** { *; }
-keep class com.bun.miitmdid.core.** {*;}
-ignorewarnings
-keep class com.style.widget.** {*;}
-keep class com.component.** {*;}
-keep class com.baidu.ad.magic.flute.** {*;}
-keep class com.baidu.mobstat.forbes.** {*;}

TradPlus Maven#

repositories {
google ()
mavenCentral () // TradPlus
jcenter ()
}
dependencies {
//TradPlus
implementation 'com.tradplusad:tradplus:6.9.1'
}

海外源配置#

repositories {
google ()
mavenCentral ()
jcenter ()
//IronSource
maven { url 'https://android-sdk.is.com/' }
//Mopub
maven { url "https://s3.amazonaws.com/moat-sdk-builds" }
//Tapjoy
maven {
name "Tapjoy's maven repo"
url "https://sdk.tapjoy.com/"
}
//Maio
maven{ url "https://imobile-maio.github.io/maven" }
//Ogury
maven { url 'https://maven.ogury.co' }
flatDir {
dirs 'libs'
}
}
android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
dependencies {
//必须添加
//GDPR,项目没有gson,引入
// implementation 'com.google.android.ads.consent:consent-library:1.0.6'
//GDPR:预防 'gson' 冲突, 如果项目添加了gson,引入
implementation ('com.google.android.ads.consent:consent-library:1.0.6'){
exclude module: 'gson'
}
//补充Support v7插件的引入,否则会集成失败
//noinspection GradleCompatible
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//TradPlus
implementation 'com.tradplusad:tradplus:6.9.1'
//Admob
implementation 'com.google.android.gms:play-services-ads:17.2.1'
implementation 'com.tradplusad:tradplus-google:2.6.9.1'
//Facebook
implementation 'com.facebook.android:audience-network-sdk:6.5.1'
implementation 'com.tradplusad:tradplus-facebook:1.6.9.1'
//MoPub
implementation 'com.tradplusad:tradplus-mopub:3.6.9.1'
//For banners
implementation ('com.mopub:mopub-sdk-banner:5.8.0') {
transitive = true
}
//For interstitials
implementation ('com.mopub:mopub-sdk-interstitial:5.8.0') {
transitive = true
}
//For rewarded videos. This will automatically also include interstitials
implementation ('com.mopub:mopub-sdk-rewardedvideo:5.8.0') {
transitive = true
}
//For native static (images).
implementation ('com.mopub:mopub-sdk-native-static:5.8.0') {
transitive = true
}
//For native video. This will automatically also include native static
implementation ('com.mopub:mopub-sdk-native-video:5.8.0') {
transitive = true
}
//AppLovin
implementation 'com.applovin:applovin-sdk:10.3.1'
implementation 'com.tradplusad:tradplus-applovin:9.6.9.1'
//IronSource
implementation 'com.ironsource.sdk:mediationsdk:7.1.7'
implementation 'com.tradplusad:tradplus-ironsource:10.6.9.1'
//Tapjoy
implementation 'com.tapjoy:tapjoy-android-sdk:12.8.0@aar'
implementation 'com.tradplusad:tradplus-tapjoy:6.6.9.1'
//Adcolony
implementation 'com.adcolony:sdk:4.5.0'
implementation 'com.tradplusad:tradplus-adcolony:4.6.9.1'
//Vungle 6.5.3
implementation 'com.tradplusad:tradplus-vungle:7.6.9.1'
implementation 'com.google.android.gms:play-services-basement:16.0.0'
implementation 'com.google.android.gms:play-services-ads-identifier:16.0.0'
//Required Third-party Dependencies
implementation files('libs/converter-gson-2.5.0.jar')
implementation files('libs/gson-2.8.2.jar')
implementation files('libs/logging-interceptor-3.12.0.jar')
implementation files('libs/okhttp-3.12.0.jar')
implementation files('libs/okio-1.15.0.jar')
implementation files('libs/retrofit-2.5.0.jar')
//Pangle
implementation 'com.tradplusad:tradplus-pangle:19.6.9.1'
implementation(name: 'open_ad_sdk_V3.9.0.0', ext:'aar')
//UnityAds
implementation 'com.tradplusad:tradplus-unity:5.6.9.1'
implementation(name: 'unity-ads-3.7.2', ext: 'aar')
//fyber
implementation 'com.fyber.vamp:core-sdk:7.8.3'
implementation 'com.fyber.vamp:video-kit:7.8.3'
implementation 'com.fyber.vamp:mraid-kit:7.8.3'
implementation 'com.google.android.gms:play-services-ads-identifier:16.0.0'
implementation 'com.tradplusad:tradplus-fyber:24.6.9.1'
//Maio
implementation 'com.google.android.gms:play-services-ads:17.2.1'
implementation 'com.tradplusad:tradplus-maio:31.6.9.1'
implementation(name: 'maio_1.1.13', ext: 'aar')
//Ogury
implementation 'co.ogury:ogury-sdk:5.0.5'
implementation 'com.tradplusad:tradplus-ogury:34.6.9.1'
//Kidzo
implementation 'com.tradplusad:tradplus-kidoz:37.6.9.1'
implementation 'org.greenrobot:eventbus:3.2.0'
implementation 'com.kidoz.sdk:KidozSDK:8.9.0@aar'
implementation 'com.android.support:support-v4:28.0.0'
}

国内源配置#

repositories {
google ()
mavenCentral () // TradPlus
jcenter ()
//MTG (Support 国内)
maven {
url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_support/"
}
flatDir {
dirs 'libs'
}
}
android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
dependencies {
//必须添加
//GDPR,项目没有gson,引入
// implementation 'com.google.android.ads.consent:consent-library:1.0.6'
//GDPR:预防 'gson' 冲突, 如果项目添加了gson,引入
implementation ('com.google.android.ads.consent:consent-library:1.0.6'){
exclude module: 'gson'
}
//补充Support v7插件的引入,否则会集成失败
//noinspection GradleCompatible
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//TradPlus
implementation 'com.tradplusad:tradplus:6.9.1'
//Admob
implementation 'com.google.android.gms:play-services-ads:17.2.1'
implementation 'com.tradplusad:tradplus-google:2.6.9.1'
//Toutiao
implementation 'com.tradplusad:tradplus-toutiao:17.6.9.1'
implementation(name: 'open_ad_sdk_cn_V3.8.0.0', ext: 'aar')
//Kuaishou
implementation 'com.tradplusad:tradplus-kwad:20.6.9.1'
implementation(name: 'kssdk-ad-3.3.13', ext: 'aar')
//Sigmob
implementation 'com.tradplusad:tradplus-sigmob:21.6.9.1'
implementation(name: 'windAd-3.2.0', ext: 'aar')
//Youdao
implementation 'com.tradplusad:tradplus-youdao:25.6.9.1'
implementation(name: 'youdaosdk_4.1.6', ext: 'aar')
implementation(name: 'msa_mdid_1.0.13', ext: 'aar')
//腾讯
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.6.5.2@aar'
implementation 'com.tradplusad:tradplus-txadnet:16.6.9.1'
implementation(name: 'GDTSDK.unionNormal.4.373.1243', ext: 'aar')
//百度
implementation 'com.tradplusad:tradplus-baidu:43.6.9.1'
implementation files ('libs/android-query-full.0.26.7.jar')
implementation(name:'Baidu_MobAds_SDK-release_v9.12',ext:'aar')
//该引用与Youdao的msa_mdid_1.0.13相冲突,两个源都接入选择oaid_sdk_1.0.22一个引用即可。
implementation(name:'oaid_sdk_1.0.22',ext:'aar')
//MTG国内
implementation 'com.tradplusad:tradplus-mintegral:18.6.9.1'
implementation 'com.mbridge.msdk.support:videojs:15.6.07'
implementation 'com.mbridge.msdk.support:mbjscommon:15.6.07'
implementation 'com.mbridge.msdk.support:playercommon:15.6.07'
implementation 'com.mbridge.msdk.support:reward:15.6.07'
implementation 'com.mbridge.msdk.support:videocommon:15.6.07'
implementation 'com.mbridge.msdk.support:chinasame:15.6.07'
implementation 'com.mbridge.msdk.support:mbnativeadvanced:15.6.07'
implementation 'com.mbridge.msdk.support:mbbanner:15.6.07'
implementation 'com.mbridge.msdk.support:interactiveads:15.6.07'
implementation 'com.mbridge.msdk.support:mbsplash:15.6.07'
implementation 'com.mbridge.msdk.support:interstitialvideo:15.6.07'
implementation 'com.mbridge.msdk.support:mbnative:15.6.07'
implementation 'com.mbridge.msdk.support:nativeex:15.6.07'
implementation 'com.mbridge.msdk.support:interstitial:15.6.07'
implementation 'com.mbridge.msdk.support:mbbid:15.6.07'
}

交叉推广#

implementation 'com.tradplusad:tradplus-crosspromotion:27.6.9.1'

使用交叉推广并且在国内发布,同时需要引入

implementation 'com.tradplusad:tradplus-china_plugin:6.9.1'