We are creating an Android library with an internal interface. The problem we are facing is that the method parameter names are not saved for the interface class in the aar release release aar file. Although the .aar file works fine, this creates a problem in the editor when using autocomplete, implementation methods, etc. Please note that proguard is disabled.
public class Test {
public interface TestInterface {
void testCallback(int ordernumber, int vendorid);
}
public boolean init(Context context);
}
In the debug assembly, the class is saved perfectly. However, in the release assembly, the parameter names of the interface methods are not saved. Interestingly, it saves the parameter names of class methods. I checked this with a decompiler.
public class Test {
public interface TestInterface {
void testCallback(int paramInt1, int paramInt2);
}
public boolean init(Context context);
}
I also tried setting the debuggable flag in buildconfig without any help.
Thanks any help.