This causes a NoSuchMethodError at runtime:
var helper = new OuyaEncryptionHelper();
helper.DecryptReceiptResponse(jsonObject, publicKey);
The reason seems to be a signature mismatch: OuyaEncryptionHelper.DecryptReceiptResponse is defined with the first parameter being a org.json.JSONObject but this is overridden to become a java.lang.Object. This was done in f6e8084, in lines 49-50 of Metadata.xml:
<attr path= "//parameter[@type='org.json.JSONObject']" name="type">java.lang.Object</attr>
<attr path= "//parameter[@type='org.json.JSONArray']" name="type">java.lang.Object</attr>
The comment suggests it's only a temporary workaround. Could you explain why you had to override the JSON types?
This causes a NoSuchMethodError at runtime:
The reason seems to be a signature mismatch: OuyaEncryptionHelper.DecryptReceiptResponse is defined with the first parameter being a
org.json.JSONObjectbut this is overridden to become ajava.lang.Object. This was done in f6e8084, in lines 49-50 of Metadata.xml:The comment suggests it's only a temporary workaround. Could you explain why you had to override the JSON types?