此文档将不再维护,请移步新文档:https://nativesupport.dcloud.net.cn
uni-AD广告联盟配置
此功能需要 HBuilderX 2.5.4-20200108-alpha 之后发布的离线包才能用。
添加360广告相关配置
注: Linker Flags、framework添加方法参考该文档
- 依次添加下列Linker Flags: -lUniAD,-lUniAd-360
- 添加下列framework:"libz.tbd","QHADSDK.framework","CoreLocation.framework", "CoreTelephony.framework", "WebKit.framework", "Security.framework", "SystemConfiguration.framework", "AdSupport.framework"
- 把离线包里Bundles文件夹里的 QHADVideoPlayer.bundle 引入到工程中
添加广点通广告相关配置
注: Linker Flags、framework添加方法参考该文档
- 依次添加下列Linker Flags: -lUniAD, -lUniAd-Gdt , -lGDTMobSDK
- 添加下列framework:"AdSupport.framework",
"CoreLocation.framework",
"QuartzCore.framework",
"SystemConfiguration.framework",
"CoreTelephony.framework",
"Security.framework",
"StoreKit.framework",
"AVFoundation.framework",
"WebKit.framework",
"libz.tbd",
"libxml2.tbd"
添加穿山甲广告相关配置
注: Linker Flags、framework添加方法参考该文档
- 依次添加下列Linker Flags: -lUniAD, -lUniAd-Csj, -lSDWebImage
- 添加下列framework:"BUAdSDK.framework","BUFoundation.framework","StoreKit.framework", "MobileCoreServices.framework", "WebKit.framework", "MediaPlayer.framework", "CoreMedia.framework", "CoreLocation.framework",
"AVFoundation.framework",
"CoreTelephony.framework",
"SystemConfiguration.framework",
"AdSupport.framework",
"CoreMotion.framework",
"Accelerate.framework",
"libresolv.9.tbd",
"libc++.tbd",
"libz.tbd",
"libsqlite3.tbd"
3.把离线包里Bundles文件夹里的 BUAdSDK.bundle 引入到工程中
1 个评论
要回复文章请先登录或注册
米友文