Use long instead of int for object id in Android java wrapper
Using int for 64-bit values might cause issues with objects not found in ObjectDB when the id is truncated.
This commit is contained in:
parent
07ada02cb4
commit
39f59786fa
4 changed files with 11 additions and 11 deletions
|
|
@ -48,7 +48,7 @@ import org.json.JSONException;
|
|||
import org.json.JSONObject;
|
||||
|
||||
public class GodotPayment extends GodotPlugin {
|
||||
private Integer purchaseCallbackId = 0;
|
||||
private Long purchaseCallbackId = 0L;
|
||||
private String accessToken;
|
||||
private String purchaseValidationUrlPrefix;
|
||||
private String transactionId;
|
||||
|
|
@ -129,11 +129,11 @@ public class GodotPayment extends GodotPlugin {
|
|||
GodotLib.calldeferred(purchaseCallbackId, "purchase_owned", new Object[] { sku });
|
||||
}
|
||||
|
||||
public int getPurchaseCallbackId() {
|
||||
public long getPurchaseCallbackId() {
|
||||
return purchaseCallbackId;
|
||||
}
|
||||
|
||||
public void setPurchaseCallbackId(int purchaseCallbackId) {
|
||||
public void setPurchaseCallbackId(long purchaseCallbackId) {
|
||||
this.purchaseCallbackId = purchaseCallbackId;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue