소스 검색

1.升级部分sdk。

石慧云 4 년 전
부모
커밋
3758840aca
2개의 변경된 파일27개의 추가작업 그리고 15개의 파일을 삭제
  1. 1 1
      app/build.gradle
  2. 26 14
      jpush/src/main/AndroidManifest.xml

+ 1 - 1
app/build.gradle

@@ -132,7 +132,7 @@ dependencies {
     implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.5.9'
 
     //高仿微信朋友圈图片展示效果 ImageWatcher
-    implementation 'com.github.iielse:ImageWatcher:1.1.5'
+    implementation 'com.github.iielse:ImageWatcher:2.1.2'
     //各种图标折线图
     implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
 

+ 26 - 14
jpush/src/main/AndroidManifest.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.quansu.jpush" >
+    package="com.quansu.jpush">
 
     <uses-permission android:name="com.example.jpushdemo.permission.JPUSH_MESSAGE" />
     <uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" />
@@ -23,31 +23,43 @@
     <!-- 这里com.xiaomi.mipushdemo改成app的包名 -->
     <uses-permission android:name="${applicationId}.permission.JPUSH_MESSAGE" />
 
-  <application
+    <application
         android:allowBackup="true"
         android:label="@string/app_name"
-        android:supportsRtl="true" >
+        android:supportsRtl="true">
         <!--        极光-->
         <!-- 替换原生极光推送接收器 -->
 
-        <receiver android:name=".PushMessageReceiver" >
-            <intent-filter >
+        <receiver android:name=".PushMessageReceiver">
+            <intent-filter>
                 <action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />
-                <category android:name="${applicationId}" ></category >
-            </intent-filter >
-        </receiver >
+                <category android:name="${applicationId}"></category>
+            </intent-filter>
+        </receiver>
 
         <!-- since 3.3.0 Required SDK 核心功能-->
         <!-- 可配置android:process参数将PushService放在其他进程中 -->
         <!--User defined.  For test only 继承自cn.jpush.android.service.JCommonService-->
         <service
             android:name=".PushService"
-            android:process=":pushcore" >
-            <intent-filter >
+            android:process=":pushcore">
+            <intent-filter>
                 <action android:name="cn.jiguang.user.service.action" />
-            </intent-filter >
-        </service >
+            </intent-filter>
+        </service>
 
-    </application >
+        <!--      &lt;!&ndash; since 1.8.0 option 可选项。用于同一设备中不同应用的JPush服务相互拉起的功能。 &ndash;&gt;-->
+        <!--      &lt;!&ndash; 若不启用该功能可删除该组件,将不拉起其他应用也不能被其他应用拉起 &ndash;&gt;-->
+<!--        <service-->
+<!--            android:name="cn.jpush.android.service.DaemonService"-->
+<!--            android:enabled="true"-->
+<!--            android:exported="true">-->
+<!--            <intent-filter>-->
+<!--                <action android:name="cn.jpush.android.intent.DaemonService" />-->
+<!--                <category android:name="${applicationId}" />-->
+<!--            </intent-filter>-->
+<!--        </service>-->
 
-</manifest >
+    </application>
+
+</manifest>