Skip to content

Commit 5b9ce9d

Browse files
authored
upgrade honor push to 7.0.41 (#244)
1 parent 846fb6a commit 5b9ce9d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

android-sdk/mixpush-android/src/main/java/cn/leancloud/LCMixPushManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,11 @@ public static void turnOffHonorPush(LCCallback<Void> callback) {
139139

140140
/**
141141
* 校验当前系统是否支持 Honor PUSH
142+
* @param app application
142143
* @return true or false.
143144
*/
144-
public static boolean isSupportHonorPush() {
145-
return cn.leancloud.honor.LCMixPushManager.isSupportHonorPush();
145+
public static boolean isSupportHonorPush(Context app) {
146+
return cn.leancloud.honor.LCMixPushManager.isSupportHonorPush(app);
146147
}
147148

148149
/**

android-sdk/mixpush-honor/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ dependencies {
6464

6565
implementation("cn.leancloud:realtime-core:${rootProject.ext.sdkVersion}")
6666

67-
implementation 'com.hihonor.mcs:push:7.0.39.303'
67+
implementation 'com.hihonor.mcs:push:7.0.41.301'
6868

6969
testImplementation 'junit:junit:4.13.2'
7070
androidTestImplementation 'androidx.test.ext:junit:1.1.5'

android-sdk/mixpush-honor/src/main/java/cn/leancloud/honor/LCMixPushManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public void onFailure(int i, String s) {
9191
* 校验当前系统是否支持 PUSH
9292
* @return true or false.
9393
*/
94-
public static boolean isSupportHonorPush() {
95-
return HonorPushClient.getInstance().checkSupportHonorPush();
94+
public static boolean isSupportHonorPush(Context application) {
95+
return HonorPushClient.getInstance().checkSupportHonorPush(application);
9696
}
9797

9898
/**

0 commit comments

Comments
 (0)