I am using Proguard in Android and I have added below rules for Backendless-
-dontwarn com.backendless.**
-dontwarn weborb.**
-keep class weborb.** {;}
-keep class com.backendless.** {;}
But while creating release apk, I am getting below warning-
Warning:com.repairservice.ActivationActivity$2$1: can’t find enclosing method ‘void handleResponse(com.backendless.messaging.MessageStatus)’ in program class com.ketan.repairservice.ActivationActivity$2
I’m having below code in my class-
AsyncCallback<List<ServiceOrder>> serviceOrderCallback = new AsyncCallback<List<ServiceOrder>>() { @Override
public void handleResponse(List<ServiceOrder> response) {
}
@Override
public void handleFault(BackendlessFault fault) {
}
};
if I do comment above code then the release apk is built successfully.
I do not understand where a reference to “void handleResponse(com.backendless.messaging.MessageStatus)” is coming from. Why does it refer to a callback with MessageStatus? Do you have any ideas?
I am able to run my app in debug mode but while creating release build it give the warning -
Warning:com.ketan.repairservice.ActivationActivity$2$1: can’t find enclosing method ‘void handleResponse(com.backendless.messaging.MessageStatus)’ in program class com.ketan.repairservice.ActivationActivity$2