Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Deprecated labels for xiaomi methods #553

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ public static void changeCredentials(String accountID, String token, String prox
* @param xiaomiAppID Xiaomi App Id
* @param xiaomiAppKey Xiaomi App Key
*/
@Deprecated
public static void changeXiaomiCredentials(String xiaomiAppID, String xiaomiAppKey) {
ManifestInfo.changeXiaomiCredentials(xiaomiAppID, xiaomiAppKey);
}
Expand Down Expand Up @@ -2395,6 +2396,7 @@ public void pushProfile(final Map<String, Object> profile) {
* and false to not receive any messages from CleverTap.
*/
@SuppressWarnings("unused")
@Deprecated
public void pushXiaomiRegistrationId(String regId,@NonNull String region, boolean register) {
if(TextUtils.isEmpty(region)){
Logger.d("CleverTapApi : region must not be null or empty , use MiPushClient.getAppRegion(context) to provide appropriate region");
Expand Down Expand Up @@ -3166,6 +3168,7 @@ public void renderPushNotificationOnCallerThread(@NonNull INotificationRenderer
* 2. {@link PushConstants#XIAOMI_MIUI_DEVICES} (int value = 2)<br>
* 3. {@link PushConstants#NO_DEVICES} (int value = 3)<br>
*/
@Deprecated
public static void enableXiaomiPushOn(@XiaomiPush int xpsRunningDevices) {
PushType.XPS.setRunningDevices(xpsRunningDevices);
}
Expand All @@ -3177,6 +3180,7 @@ public static void enableXiaomiPushOn(@XiaomiPush int xpsRunningDevices) {
* 2. {@link XiaomiPush#XIAOMI_MIUI_DEVICES} (int value = 2)<br>
* 3. {@link XiaomiPush#NO_DEVICES} (int value = 3)<br>
*/
@Deprecated
public static @XiaomiPush int getEnableXiaomiPushOn() {
return PushType.XPS.getRunningDevices();
}
Expand Down