Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_fiveworld
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_fiveworld
Commits
354e22b7
Commit
354e22b7
authored
Oct 18, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换初始化方式
parent
750aac64
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
95 additions
and
47 deletions
+95
-47
merger.xml
...ermediates/incremental/mergeDebugJniLibFolders/merger.xml
+1
-1
merger.xml
...ld/intermediates/incremental/mergeDebugShaders/merger.xml
+1
-1
merger.xml
...d/intermediates/incremental/packageDebugAssets/merger.xml
+1
-1
compile-file-map.properties
...emental/packageDebugResources/compile-file-map.properties
+1
-1
merger.xml
...ntermediates/incremental/packageDebugResources/merger.xml
+2
-2
manifest-merger-blame-debug-report.txt
...e_blame_file/debug/manifest-merger-blame-debug-report.txt
+2
-2
manifest-merger-debug-report.txt
...brary/build/outputs/logs/manifest-merger-debug-report.txt
+18
-18
build.gradle
app/build.gradle
+1
-1
TTGroMoreAdManagerHolder.java
.../mints/fiveworld/manager/ad/TTGroMoreAdManagerHolder.java
+68
-20
No files found.
animlibrary/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml
View file @
354e22b7
<?xml version="1.0" encoding="utf-8"?>
<merger
version=
"3"
><dataSet
config=
"main"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\jniLibs"
/></dataSet><dataSet
config=
"debug"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\debug\jniLibs"
/></dataSet></merger>
\ No newline at end of file
<merger
version=
"3"
><dataSet
config=
"main"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/jniLibs"
/></dataSet><dataSet
config=
"debug"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/debug/jniLibs"
/></dataSet></merger>
\ No newline at end of file
animlibrary/build/intermediates/incremental/mergeDebugShaders/merger.xml
View file @
354e22b7
<?xml version="1.0" encoding="utf-8"?>
<merger
version=
"3"
><dataSet
config=
"main"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\shaders"
/></dataSet><dataSet
config=
"debug"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\debug\shaders"
/></dataSet></merger>
\ No newline at end of file
<merger
version=
"3"
><dataSet
config=
"main"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/shaders"
/></dataSet><dataSet
config=
"debug"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/debug/shaders"
/></dataSet></merger>
\ No newline at end of file
animlibrary/build/intermediates/incremental/packageDebugAssets/merger.xml
View file @
354e22b7
<?xml version="1.0" encoding="utf-8"?>
<merger
version=
"3"
><dataSet
config=
"main"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\assets"
/><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\build\intermediates\shader_assets\debug\out"
/></dataSet><dataSet
config=
"debug"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\debug\assets"
/></dataSet></merger>
\ No newline at end of file
<merger
version=
"3"
><dataSet
config=
"main"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/assets"
/><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/build/intermediates/shader_assets/debug/out"
/></dataSet><dataSet
config=
"debug"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/debug/assets"
/></dataSet></merger>
\ No newline at end of file
animlibrary/build/intermediates/incremental/packageDebugResources/compile-file-map.properties
View file @
354e22b7
#
Wed Oct 13 18:59:07
CST 2021
#
Mon Oct 18 13:40:43
CST 2021
animlibrary/build/intermediates/incremental/packageDebugResources/merger.xml
View file @
354e22b7
<?xml version="1.0" encoding="utf-8"?>
<merger
version=
"3"
><dataSet
aapt-namespace=
"http://schemas.android.com/apk/res-auto"
config=
"main$Generated"
generated=
"true"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\res"
/><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\build\generated\res\rs\debug"
/><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\build\generated\res\resValues\debug"
/></dataSet><dataSet
aapt-namespace=
"http://schemas.android.com/apk/res-auto"
config=
"main"
generated-set=
"main$Generated"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\res"
><file
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\res\values\
attrs.xml"
qualifiers=
""
><declare-styleable
name=
"AnimatedSvgView"
>
<merger
version=
"3"
><dataSet
aapt-namespace=
"http://schemas.android.com/apk/res-auto"
config=
"main$Generated"
generated=
"true"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/res"
/><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/build/generated/res/rs/debug"
/><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/build/generated/res/resValues/debug"
/></dataSet><dataSet
aapt-namespace=
"http://schemas.android.com/apk/res-auto"
config=
"main"
generated-set=
"main$Generated"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/res"
><file
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/res/values/
attrs.xml"
qualifiers=
""
><declare-styleable
name=
"AnimatedSvgView"
>
<attr
format=
"integer"
name=
"animatedSvgImageSizeX"
/>
<attr
format=
"integer"
name=
"animatedSvgImageSizeY"
/>
<attr
format=
"string"
name=
"animatedSvgTraceTime"
/>
...
...
@@ -11,7 +11,7 @@
<attr
format=
"reference"
name=
"animatedSvgTraceResidueColors"
/>
<attr
format=
"integer"
name=
"animatedSvgTraceMarkerLength"
/>
<attr
format=
"reference"
name=
"animatedSvgFillColors"
/>
</declare-styleable></file></source><source
path=
"
D:\android_space\My5GWorld\android_fiveworld\animlibrary\build\generated\res\rs\debug"
/><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\build\generated\res\resValues\debug"
/></dataSet><dataSet
aapt-namespace=
"http://schemas.android.com/apk/res-auto"
config=
"debug$Generated"
generated=
"true"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\debug\res"
/></dataSet><dataSet
aapt-namespace=
"http://schemas.android.com/apk/res-auto"
config=
"debug"
generated-set=
"debug$Generated"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\debug\
res"
/></dataSet><mergedItems><configuration
qualifiers=
""
><declare-styleable
name=
"AnimatedSvgView"
>
</declare-styleable></file></source><source
path=
"
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/build/generated/res/rs/debug"
/><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/build/generated/res/resValues/debug"
/></dataSet><dataSet
aapt-namespace=
"http://schemas.android.com/apk/res-auto"
config=
"debug$Generated"
generated=
"true"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/debug/res"
/></dataSet><dataSet
aapt-namespace=
"http://schemas.android.com/apk/res-auto"
config=
"debug"
generated-set=
"debug$Generated"
ignore_pattern=
"!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
><source
path=
"/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/debug/
res"
/></dataSet><mergedItems><configuration
qualifiers=
""
><declare-styleable
name=
"AnimatedSvgView"
>
<attr
format=
"integer"
name=
"animatedSvgImageSizeX"
/>
<attr
format=
"integer"
name=
"animatedSvgImageSizeY"
/>
<attr
format=
"string"
name=
"animatedSvgTraceTime"
/>
...
...
animlibrary/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt
View file @
354e22b7
...
...
@@ -4,8 +4,8 @@
4
5 <uses-sdk
6 android:minSdkVersion="14"
6-->
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
6-->
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
7 android:targetSdkVersion="28" />
7-->
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
7-->
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
8
9</manifest>
animlibrary/build/outputs/logs/manifest-merger-debug-report.txt
View file @
354e22b7
-- Merging decision tree log ---
manifest
ADDED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml:1:1-63
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml:1:1-63
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml:1:1-63
ADDED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml:1:1-63
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml:1:1-63
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml:1:1-63
package
ADDED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml:1:11-61
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
ADDED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml:1:11-61
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
xmlns:android
ADDED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml:1:1-63
ADDED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml:1:1-63
uses-sdk
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml reason: use-sdk injection requested
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml reason: use-sdk injection requested
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
android:targetSdkVersion
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
ADDED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
ADDED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
android:minSdkVersion
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
ADDED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
INJECTED from
D:\android_space\My5GWorld\android_fiveworld\animlibrary\src\main\
AndroidManifest.xml
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
ADDED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
INJECTED from
/Users/mcg/Documents/worker/androidspace/My5GWorld/animlibrary/src/main/
AndroidManifest.xml
app/build.gradle
View file @
354e22b7
...
...
@@ -13,7 +13,7 @@ android {
applicationId
rootProject
.
APPLICATION_ID
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
13
versionCode
20211018
versionName
"1.1.2"
flavorDimensions
"default"
...
...
app/src/main/java/com/mints/fiveworld/manager/ad/TTGroMoreAdManagerHolder.java
View file @
354e22b7
...
...
@@ -9,6 +9,12 @@ import com.bytedance.msdk.api.TTAdConfig;
import
com.bytedance.msdk.api.TTAdConstant
;
import
com.bytedance.msdk.api.TTMediationAdSdk
;
import
com.bytedance.msdk.api.UserInfoForSegment
;
import
com.bytedance.msdk.api.v2.GMAdConfig
;
import
com.bytedance.msdk.api.v2.GMAdConstant
;
import
com.bytedance.msdk.api.v2.GMConfigUserInfoForSegment
;
import
com.bytedance.msdk.api.v2.GMMediationAdSdk
;
import
com.bytedance.msdk.api.v2.GMPangleOption
;
import
com.bytedance.msdk.api.v2.GMPrivacyConfig
;
import
com.mints.fiveworld.BuildConfig
;
import
com.mints.fiveworld.MintsApplication
;
import
com.mints.fiveworld.common.Constant
;
...
...
@@ -43,13 +49,47 @@ public class TTGroMoreAdManagerHolder {
CURRENT_USE_APPID
=
CsjGroMoreManager
.
INSTANCE
.
getServerTTAdId
();
TTMediationAdSdk
.
initialize
(
context
,
buildConfig
(
context
));
// TTMediationAdSdk.initialize(context, buildConfig(context));
GMMediationAdSdk
.
initialize
(
context
,
buildV2Config
(
context
));
sInit
=
true
;
}
}
private
static
TTAdConfig
buildConfig
(
Context
context
)
{
UserInfoForSegment
userInfo
=
new
UserInfoForSegment
();
// private static TTAdConfig buildConfig(Context context) {
// UserInfoForSegment userInfo = new UserInfoForSegment();
// if (!TextUtils.isEmpty(UserManager.getInstance().getUserID())) {
// userInfo.setUserId(UserManager.getInstance().getUserID());
// }
// userInfo.setGender(UserInfoForSegment.GENDER_UNKNOWN);
// userInfo.setChannel(CommonUtils.getAppMetaData(MintsApplication.getContext(), "CHANNEL_NAME"));
// userInfo.setSubChannel(HumeSDK.getChannel(MintsApplication.getContext()));
// userInfo.setAge(999);
// userInfo.setUserValueGroup("msdk demo user value group");
//
// Map<String, String> customInfos = new HashMap<>();
//// customInfos.put("aaaa", "test111");
//// customInfos.put("bbbb", "test222");
// userInfo.setCustomInfos(customInfos);
//
// return new TTAdConfig.Builder()
// .appId(CURRENT_USE_APPID) //必填 ,不能为空
// .appName(TT_AD_NAME) //必填,不能为空
// .openAdnTest(false)//开启第三方ADN测试时需要设置为true,会每次重新拉去最新配置,release 包情况下必须关闭.默认false
// .isPanglePaid(false)//是否为费用户
// .setPublisherDid(getAndroidId(context)) //用户自定义device_id
// .openDebugLog(BuildConfig.DEBUG) //测试阶段打开,可以通过日志排查问题,上线时去除该调用
// .usePangleTextureView(true) //使用TextureView控件播放视频,默认为SurfaceView,当有SurfaceView冲突的场景,可以使用TextureView
// .setPangleTitleBarTheme(TTAdConstant.TITLE_BAR_THEME_DARK)
// .allowPangleShowNotify(true) //是否允许sdk展示通知栏提示
// .allowPangleShowPageWhenScreenLock(true) //是否在锁屏场景支持展示广告落地页
// .setPangleDirectDownloadNetworkType(TTAdConstant.NETWORK_STATE_WIFI, TTAdConstant.NETWORK_STATE_3G) //允许直接下载的网络状态集合
// .needPangleClearTaskReset()//特殊机型过滤,部分机型出现包解析失败问题(大部分是三星)。参数取android.os.Build.MODEL
// .setUserInfoForSegment(userInfo) // 设置流量分组的信息
// .build();
// }
public
static
GMAdConfig
buildV2Config
(
Context
context
)
{
GMConfigUserInfoForSegment
userInfo
=
new
GMConfigUserInfoForSegment
();
if
(!
TextUtils
.
isEmpty
(
UserManager
.
getInstance
().
getUserID
()))
{
userInfo
.
setUserId
(
UserManager
.
getInstance
().
getUserID
());
}
...
...
@@ -60,24 +100,32 @@ public class TTGroMoreAdManagerHolder {
userInfo
.
setUserValueGroup
(
"msdk demo user value group"
);
Map
<
String
,
String
>
customInfos
=
new
HashMap
<>();
// customInfos.put("aaaa", "test111");
// customInfos.put("bbbb", "test222");
userInfo
.
setCustomInfos
(
customInfos
);
return
new
TTAdConfig
.
Builder
()
.
appId
(
CURRENT_USE_APPID
)
//必填 ,不能为空
.
appName
(
TT_AD_NAME
)
//必填,不能为空
.
openAdnTest
(
false
)
//开启第三方ADN测试时需要设置为true,会每次重新拉去最新配置,release 包情况下必须关闭.默认false
.
isPanglePaid
(
false
)
//是否为费用户
.
setPublisherDid
(
getAndroidId
(
context
))
//用户自定义device_id
.
openDebugLog
(
BuildConfig
.
DEBUG
)
//测试阶段打开,可以通过日志排查问题,上线时去除该调用
.
usePangleTextureView
(
true
)
//使用TextureView控件播放视频,默认为SurfaceView,当有SurfaceView冲突的场景,可以使用TextureView
.
setPangleTitleBarTheme
(
TTAdConstant
.
TITLE_BAR_THEME_DARK
)
.
allowPangleShowNotify
(
true
)
//是否允许sdk展示通知栏提示
.
allowPangleShowPageWhenScreenLock
(
true
)
//是否在锁屏场景支持展示广告落地页
.
setPangleDirectDownloadNetworkType
(
TTAdConstant
.
NETWORK_STATE_WIFI
,
TTAdConstant
.
NETWORK_STATE_3G
)
//允许直接下载的网络状态集合
.
needPangleClearTaskReset
()
//特殊机型过滤,部分机型出现包解析失败问题(大部分是三星)。参数取android.os.Build.MODEL
.
setUserInfoForSegment
(
userInfo
)
// 设置流量分组的信息
return
new
GMAdConfig
.
Builder
()
.
setAppId
(
CURRENT_USE_APPID
)
.
setAppName
(
TT_AD_NAME
)
.
setDebug
(
BuildConfig
.
DEBUG
)
//默认false,测试阶段打开,可以通过日志排查问题
.
setPublisherDid
(
getAndroidId
(
context
))
.
setOpenAdnTest
(
BuildConfig
.
DEBUG
)
//开启第三方ADN测试时需要设置为true,会每次重新拉去最新配置,release 包情况下必须关闭.默认false
.
setConfigUserInfoForSegment
(
userInfo
)
.
setPangleOption
(
new
GMPangleOption
.
Builder
()
.
setIsPaid
(
false
)
.
setTitleBarTheme
(
GMAdConstant
.
TITLE_BAR_THEME_DARK
)
.
setAllowShowNotify
(
true
)
.
setAllowShowPageWhenScreenLock
(
false
)
.
setDirectDownloadNetworkType
(
GMAdConstant
.
NETWORK_STATE_WIFI
,
GMAdConstant
.
NETWORK_STATE_3G
)
.
setIsUseTextureView
(
false
)
.
setNeedClearTaskReset
()
.
setKeywords
(
""
)
.
build
())
.
setPrivacyConfig
(
new
GMPrivacyConfig
()
{
// 重写相应的函数,设置需要设置的权限开关,不重写的将采用默认值
// 例如,重写isCanUsePhoneState函数返回true,表示允许使用ReadPhoneState权限。
@Override
public
boolean
isCanUsePhoneState
()
{
return
true
;
}
})
.
build
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment