Commit 294f804b authored by mengcuiguang2's avatar mengcuiguang2

test

parent 28107323
package com.mints.street.ad;
import android.app.Activity;
import android.content.Context;
import android.provider.Settings;
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.mints.street.common.Constant;
import com.mints.street.BuildConfig;
import java.util.HashMap;
import java.util.Map;
/**
* 可以用一个单例来保存TTAdManager实例,在需要初始化sdk的时候调用
*/
public class TTGroMoreAdManagerHolder {
public static final String TT_AD_APPID = "12345";
public static final String TT_AD_NAME = Constant.MINTS_APP_NAME;
private static boolean sInit;
public static void init(Context context) {
doInit(context);
}
public static void initUnitySdkBanner(Activity activity) {
TTMediationAdSdk.initUnityForBanner(activity);
}
//step1:接入网盟广告sdk的初始化操作,详情见接入文档和穿山甲平台说明
private static void doInit(Context context) {
if (!sInit) {
TTMediationAdSdk.initialize(context, buildConfig(context));
sInit = true;
}
}
private static TTAdConfig buildConfig(Context context) {
UserInfoForSegment userInfo = new UserInfoForSegment();
Map<String, String> customInfos = new HashMap<>();
// customInfos.put("aaaa", "test111");
// customInfos.put("bbbb", "test222");
userInfo.setCustomInfos(customInfos);
return new TTAdConfig.Builder()
.appId(TT_AD_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 String getAndroidId(Context context) {
String androidId = null;
try {
androidId = Settings.System.getString(context.getContentResolver(), Settings.System.ANDROID_ID);
} catch (Exception e) {
e.printStackTrace();
}
return androidId;
}
}
<<<<<<< Updated upstream
#Thu Jul 08 18:09:58 CST 2021 #Thu Jul 08 18:09:58 CST 2021
VERSION_BUILD=2597 VERSION_BUILD=2597
=======
#Thu Jul 08 20:11:55 CST 2021
VERSION_BUILD=2633
>>>>>>> Stashed changes
/**
* Automatically generated file. DO NOT MODIFY
*/
package cn.sharesdk.lib;
public final class BuildConfig {
public static final boolean DEBUG = false;
public static final String LIBRARY_PACKAGE_NAME = "cn.sharesdk.lib";
public static final String BUILD_TYPE = "release";
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cn.sharesdk.lib" > <!-- <uses-sdk -->
<!-- android:minSdkVersion="14" -->
<!-- android:targetSdkVersion="21" /> -->
<uses-sdk
android:minSdkVersion="21"
android:targetSdkVersion="30" />
</manifest>
\ No newline at end of file
{
"version": 2,
"artifactType": {
"type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
"kind": "Directory"
},
"applicationId": "cn.sharesdk.lib",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"outputFile": "AndroidManifest.xml"
}
]
}
\ No newline at end of file
int array smssdk_country_group_a 0x0
int array smssdk_country_group_b 0x0
int array smssdk_country_group_c 0x0
int array smssdk_country_group_d 0x0
int array smssdk_country_group_e 0x0
int array smssdk_country_group_f 0x0
int array smssdk_country_group_g 0x0
int array smssdk_country_group_h 0x0
int array smssdk_country_group_i 0x0
int array smssdk_country_group_j 0x0
int array smssdk_country_group_k 0x0
int array smssdk_country_group_l 0x0
int array smssdk_country_group_m 0x0
int array smssdk_country_group_n 0x0
int array smssdk_country_group_o 0x0
int array smssdk_country_group_p 0x0
int array smssdk_country_group_q 0x0
int array smssdk_country_group_r 0x0
int array smssdk_country_group_s 0x0
int array smssdk_country_group_t 0x0
int array smssdk_country_group_u 0x0
int array smssdk_country_group_v 0x0
int array smssdk_country_group_w 0x0
int array smssdk_country_group_x 0x0
int array smssdk_country_group_y 0x0
int array smssdk_country_group_z 0x0
int drawable ssdk_auth_title_back 0x0
int drawable ssdk_back_arr 0x0
int drawable ssdk_country_back_arrow 0x0
int drawable ssdk_country_cl_divider 0x0
int drawable ssdk_country_clear_search 0x0
int drawable ssdk_country_search_icon 0x0
int drawable ssdk_country_sharesdk_icon 0x0
int drawable ssdk_input_bg_focus 0x0
int drawable ssdk_logo 0x0
int drawable ssdk_oks_classic_alipay 0x0
int drawable ssdk_oks_classic_alipaymoments 0x0
int drawable ssdk_oks_classic_bluetooth 0x0
int drawable ssdk_oks_classic_check_checked 0x0
int drawable ssdk_oks_classic_check_default 0x0
int drawable ssdk_oks_classic_dingding 0x0
int drawable ssdk_oks_classic_douban 0x0
int drawable ssdk_oks_classic_dropbox 0x0
int drawable ssdk_oks_classic_email 0x0
int drawable ssdk_oks_classic_evernote 0x0
int drawable ssdk_oks_classic_facebook 0x0
int drawable ssdk_oks_classic_facebookmessenger 0x0
int drawable ssdk_oks_classic_flickr 0x0
int drawable ssdk_oks_classic_foursquare 0x0
int drawable ssdk_oks_classic_googleplus 0x0
int drawable ssdk_oks_classic_instagram 0x0
int drawable ssdk_oks_classic_instapaper 0x0
int drawable ssdk_oks_classic_kaixin 0x0
int drawable ssdk_oks_classic_kakaostory 0x0
int drawable ssdk_oks_classic_kakaotalk 0x0
int drawable ssdk_oks_classic_laiwang 0x0
int drawable ssdk_oks_classic_laiwangmoments 0x0
int drawable ssdk_oks_classic_line 0x0
int drawable ssdk_oks_classic_linkedin 0x0
int drawable ssdk_oks_classic_meipai 0x0
int drawable ssdk_oks_classic_mingdao 0x0
int drawable ssdk_oks_classic_pinterest 0x0
int drawable ssdk_oks_classic_platform_cell_back 0x0
int drawable ssdk_oks_classic_platfrom_cell_back_nor 0x0
int drawable ssdk_oks_classic_platfrom_cell_back_sel 0x0
int drawable ssdk_oks_classic_pocket 0x0
int drawable ssdk_oks_classic_progressbar 0x0
int drawable ssdk_oks_classic_qq 0x0
int drawable ssdk_oks_classic_qzone 0x0
int drawable ssdk_oks_classic_renren 0x0
int drawable ssdk_oks_classic_shortmessage 0x0
int drawable ssdk_oks_classic_sinaweibo 0x0
int drawable ssdk_oks_classic_telegram 0x0
int drawable ssdk_oks_classic_tencentweibo 0x0
int drawable ssdk_oks_classic_tumblr 0x0
int drawable ssdk_oks_classic_twitter 0x0
int drawable ssdk_oks_classic_vkontakte 0x0
int drawable ssdk_oks_classic_wechat 0x0
int drawable ssdk_oks_classic_wechatfavorite 0x0
int drawable ssdk_oks_classic_wechatmoments 0x0
int drawable ssdk_oks_classic_whatsapp 0x0
int drawable ssdk_oks_classic_yixin 0x0
int drawable ssdk_oks_classic_yixinmoments 0x0
int drawable ssdk_oks_classic_youdao 0x0
int drawable ssdk_oks_classic_youtube 0x0
int drawable ssdk_oks_ptr_ptr 0x0
int drawable ssdk_title_div 0x0
int drawable ssdk_weibo_common_shadow_top 0x0
int drawable ssdk_weibo_empty_failed 0x0
int id ssdk_sina_web_title_id 0x0
int id ssdk_sms_id_clCountry 0x0
int id ssdk_sms_id_et_put_identify 0x0
int id ssdk_sms_id_ivSearch 0x0
int id ssdk_sms_id_iv_clear 0x0
int id ssdk_sms_id_llSearch 0x0
int id ssdk_sms_id_llTitle 0x0
int id ssdk_sms_id_ll_back 0x0
int id ssdk_sms_id_tv_title 0x0
int string ssdk_alipay 0x0
int string ssdk_alipay_client_inavailable 0x0
int string ssdk_alipaymoments 0x0
int string ssdk_bluetooth 0x0
int string ssdk_dingding 0x0
int string ssdk_dont_keep_activitys_client 0x0
int string ssdk_douban 0x0
int string ssdk_dropbox 0x0
int string ssdk_email 0x0
int string ssdk_evernote 0x0
int string ssdk_facebook 0x0
int string ssdk_facebookmessenger 0x0
int string ssdk_facebookmessenger_client_inavailable 0x0
int string ssdk_flickr 0x0
int string ssdk_foursquare 0x0
int string ssdk_gender_female 0x0
int string ssdk_gender_male 0x0
int string ssdk_google_plus_client_inavailable 0x0
int string ssdk_googleplus 0x0
int string ssdk_instagram 0x0
int string ssdk_instagram_client_inavailable 0x0
int string ssdk_instapager_email_or_password_incorrect 0x0
int string ssdk_instapager_login_html 0x0
int string ssdk_instapaper 0x0
int string ssdk_instapaper_email 0x0
int string ssdk_instapaper_login 0x0
int string ssdk_instapaper_logining 0x0
int string ssdk_instapaper_pwd 0x0
int string ssdk_kaixin 0x0
int string ssdk_kakaostory 0x0
int string ssdk_kakaostory_client_inavailable 0x0
int string ssdk_kakaotalk 0x0
int string ssdk_kakaotalk_client_inavailable 0x0
int string ssdk_laiwang 0x0
int string ssdk_laiwang_client_inavailable 0x0
int string ssdk_laiwangmoments 0x0
int string ssdk_line 0x0
int string ssdk_line_client_inavailable 0x0
int string ssdk_linkedin 0x0
int string ssdk_meipai 0x0
int string ssdk_mingdao 0x0
int string ssdk_mingdao_share_content 0x0
int string ssdk_neteasemicroblog 0x0
int string ssdk_oks_cancel 0x0
int string ssdk_oks_confirm 0x0
int string ssdk_oks_contacts 0x0
int string ssdk_oks_multi_share 0x0
int string ssdk_oks_pull_to_refresh 0x0
int string ssdk_oks_refreshing 0x0
int string ssdk_oks_release_to_refresh 0x0
int string ssdk_oks_share 0x0
int string ssdk_oks_share_canceled 0x0
int string ssdk_oks_share_completed 0x0
int string ssdk_oks_share_failed 0x0
int string ssdk_oks_sharing 0x0
int string ssdk_pinterest 0x0
int string ssdk_pinterest_client_inavailable 0x0
int string ssdk_plurk 0x0
int string ssdk_pocket 0x0
int string ssdk_qq 0x0
int string ssdk_qq_client_inavailable 0x0
int string ssdk_qzone 0x0
int string ssdk_renren 0x0
int string ssdk_share_to_facebook 0x0
int string ssdk_share_to_googleplus 0x0
int string ssdk_share_to_mingdao 0x0
int string ssdk_share_to_qq 0x0
int string ssdk_share_to_qzone 0x0
int string ssdk_share_to_qzone_default 0x0
int string ssdk_share_to_youtube 0x0
int string ssdk_shortmessage 0x0
int string ssdk_sina_web_close 0x0
int string ssdk_sina_web_login_title 0x0
int string ssdk_sina_web_net_error 0x0
int string ssdk_sina_web_refresh 0x0
int string ssdk_sina_web_title 0x0
int string ssdk_sinaweibo 0x0
int string ssdk_sms_btn_next 0x0
int string ssdk_sms_btn_sende_voice 0x0
int string ssdk_sms_btn_submit 0x0
int string ssdk_sms_china 0x0
int string ssdk_sms_choose_country 0x0
int string ssdk_sms_code 0x0
int string ssdk_sms_country_search 0x0
int string ssdk_sms_dialog_btn_back 0x0
int string ssdk_sms_dialog_btn_cancel 0x0
int string ssdk_sms_dialog_btn_login 0x0
int string ssdk_sms_dialog_btn_ok 0x0
int string ssdk_sms_dialog_btn_sure 0x0
int string ssdk_sms_dialog_btn_wait 0x0
int string ssdk_sms_dialog_close_identify_page 0x0
int string ssdk_sms_dialog_confirm_des 0x0
int string ssdk_sms_dialog_confirm_title 0x0
int string ssdk_sms_dialog_error_code 0x0
int string ssdk_sms_dialog_error_des 0x0
int string ssdk_sms_dialog_error_desc_100 0x0
int string ssdk_sms_dialog_error_desc_101 0x0
int string ssdk_sms_dialog_error_desc_102 0x0
int string ssdk_sms_dialog_error_desc_103 0x0
int string ssdk_sms_dialog_error_desc_104 0x0
int string ssdk_sms_dialog_error_desc_105 0x0
int string ssdk_sms_dialog_error_desc_106 0x0
int string ssdk_sms_dialog_error_desc_107 0x0
int string ssdk_sms_dialog_error_desc_108 0x0
int string ssdk_sms_dialog_error_desc_109 0x0
int string ssdk_sms_dialog_error_title 0x0
int string ssdk_sms_dialog_login_success 0x0
int string ssdk_sms_dialog_net_error 0x0
int string ssdk_sms_dialog_send_success 0x0
int string ssdk_sms_dialog_smart_dec 0x0
int string ssdk_sms_dialog_smart_title 0x0
int string ssdk_sms_dialog_system_error 0x0
int string ssdk_sms_dialog_voice_text 0x0
int string ssdk_sms_input_code_hint 0x0
int string ssdk_sms_input_phone_hint 0x0
int string ssdk_sms_input_voice_code 0x0
int string ssdk_sms_login 0x0
int string ssdk_sms_phone 0x0
int string ssdk_sms_send_again 0x0
int string ssdk_sms_top_identify_text 0x0
int string ssdk_sms_top_text 0x0
int string ssdk_sms_zone 0x0
int string ssdk_sohumicroblog 0x0
int string ssdk_sohusuishenkan 0x0
int string ssdk_symbol_ellipsis 0x0
int string ssdk_telegram 0x0
int string ssdk_telegram_client_inavailable 0x0
int string ssdk_tencentweibo 0x0
int string ssdk_tumblr 0x0
int string ssdk_twitter 0x0
int string ssdk_use_login_button 0x0
int string ssdk_vkontakte 0x0
int string ssdk_website 0x0
int string ssdk_wechat 0x0
int string ssdk_wechat_client_inavailable 0x0
int string ssdk_wechatfavorite 0x0
int string ssdk_wechatmoments 0x0
int string ssdk_weibo_oauth_regiseter 0x0
int string ssdk_weibo_upload_content 0x0
int string ssdk_whatsapp 0x0
int string ssdk_whatsapp_client_inavailable 0x0
int string ssdk_yixin 0x0
int string ssdk_yixin_client_inavailable 0x0
int string ssdk_yixinmoments 0x0
int string ssdk_youdao 0x0
int string ssdk_youtube 0x0
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\android_space\MyStreet\shareSdkLib\src\main\jniLibs"/></dataSet><dataSet config="release" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\android_space\MyStreet\shareSdkLib\src\release\jniLibs"/></dataSet></merger>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\android_space\MyStreet\shareSdkLib\src\main\shaders"/></dataSet><dataSet config="release" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\android_space\MyStreet\shareSdkLib\src\release\shaders"/></dataSet></merger>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment