Skip to content

Commit

Permalink
Umeng SDK 升级
Browse files Browse the repository at this point in the history
  • Loading branch information
ccclll1990 committed Jun 21, 2022
1 parent 76659e9 commit feb8ee5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 69 deletions.
20 changes: 3 additions & 17 deletions ysumenglibs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 30
versionCode 153
versionName "1.5.3"
versionCode 156
versionName "1.5.6"
consumerProguardFiles 'consumer-rules.pro'
}

Expand Down Expand Up @@ -36,30 +36,16 @@ dependencies {
// 友盟统计SDK
api 'com.umeng.umsdk:asms:1.6.3' //必选
// 友盟错误分析 start
api 'com.umeng.umsdk:apm:1.6.4' //// 错误分析升级为独立SDK,看crash数据请一定集成,可选
api 'com.umeng.umsdk:apm:1.6.4' // 错误分析升级为独立SDK,看crash数据请一定集成,可选
//友盟Push相关依赖(必须)
api 'com.umeng.umsdk:push:6.5.2'
api 'com.umeng.umsdk:union:1.4.1'
// api 'com.umeng.umsdk:alicloud-httpdns:1.3.2.3'
// api 'com.umeng.umsdk:alicloud-utils:2.0.0'
// api 'com.umeng.umsdk:alicloud_beacon:1.0.5'
// api 'com.umeng.umsdk:agoo-accs:3.4.2.7'
// api 'com.umeng.umsdk:agoo_aranger:1.0.6'
// api 'com.umeng.umsdk:agoo_networksdk:3.5.8'
// api 'com.umeng.umsdk:agoo_tnet4android:3.1.14.10'

// 友盟分享 已在lib内添加
// 微信QQ在分享7.1.4SDK及以上适配方案 https://developer.umeng.com/docs/128606/detail/200753
//https://developer.umeng.com/docs/128606/detail/193911 更新指南(在这查看最新版 版本号)
// api 'com.tencent.tauth:qqopensdk:3.53.0'
api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0'

// https://developer.umeng.com/docs/128606/detail/193879
// 近期由于新浪线上服务器不稳定的原因,在线集成新浪微博依赖库implementation ‘com.sina.weibo.sdk:core:10.10.0:openDefaultRelease@aar’ 方式容易失败,
// 新浪微博官方已经发了公告:https://github.com/sinaweibosdk/weibo_android_sdk。
// 建议您先下载本地aar: https://counsel.umeng.com/api/activity/download?fileName=activity/67/openDefault-10.10.0.aar
// 后上传到自己公司服务器,后续新浪微博官方会支持在线集成功能。
// api 'com.sina.weibo.sdk:core:10.10.0:openDefaultRelease@aar'//新浪微博官方SDK依赖

// ps : 由于直接 引入和添加aar jitpack 都编译不通过, 所以自行在工程里添加 aar文件 多么心疼我自己 白搞了好几个小时.. 垃圾新浪
}
55 changes: 3 additions & 52 deletions ysumenglibs/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<package android:name="com.sina.weibo" /> <!-- //指定微博包名-->
<package android:name="com.qzone" /> <!-- //指定QQ空间包名-->
</queries>

<application android:usesCleartextTraffic="true">
<uses-library
android:name="org.apache.http.legacy"
Expand All @@ -21,44 +21,6 @@
android:permission="android.permission.BIND_JOB_SERVICE"
android:process=":channel" />

<receiver
android:name="com.umeng.message.NotificationProxyBroadcastReceiver"
android:exported="false" />

<service
android:name="com.umeng.message.UmengMessageCallbackHandlerService"
android:exported="false"
android:permission="android.permission.BIND_JOB_SERVICE">
<intent-filter>
<action android:name="com.umeng.messge.registercallback.action" />
</intent-filter>
<intent-filter>
<action android:name="com.umeng.message.enablecallback.action" />
</intent-filter>
<intent-filter>
<action android:name="com.umeng.message.disablecallback.action" />
</intent-filter>
<intent-filter>
<action android:name="com.umeng.message.message.handler.action" />
</intent-filter>
<intent-filter>
<action android:name="com.umeng.message.message.sendmessage.action" />
</intent-filter>
</service>

<service
android:name="com.umeng.message.UmengDownloadResourceService"
android:exported="false"
android:permission="android.permission.BIND_JOB_SERVICE" />

<provider
android:name="com.umeng.message.provider.MessageProvider"
android:authorities="${applicationId}.umeng.message"
android:exported="false">
<grant-uri-permission android:pathPattern=".*" />
</provider>


<service
android:name="com.taobao.accs.ChannelService"
android:exported="false"
Expand All @@ -81,23 +43,12 @@
android:name="org.android.agoo.accs.AgooService"
android:exported="false"
tools:replace="android:exported" />
<service
android:name="com.umeng.message.UmengIntentService"
android:exported="false"
tools:replace="android:exported" />
<service
android:name="com.umeng.message.XiaomiIntentService"
android:exported="false"
tools:replace="android:exported" />

<receiver
android:name="com.taobao.agoo.AgooCommondReceiver"
android:exported="false"
tools:replace="android:exported" />
<service
android:name="com.umeng.message.UmengMessageIntentReceiverService"
android:exported="false"
tools:replace="android:exported" />


</application>

Expand All @@ -107,7 +58,7 @@

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />-->
<!-- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
Expand Down

0 comments on commit feb8ee5

Please sign in to comment.