Skip to content

Commit e7281a5

Browse files
fixed billing
1 parent 5b487f9 commit e7281a5

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

libraries/payme/src/main/java/com/github/jberkel/pay/me/IabHelper.java

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -51,31 +51,8 @@
5151

5252
import static android.app.Activity.RESULT_CANCELED;
5353
import static android.app.Activity.RESULT_OK;
54-
import static com.github.jberkel.pay.me.IabConsts.API_VERSION;
55-
import static com.github.jberkel.pay.me.IabConsts.GET_SKU_DETAILS_ITEM_LIST;
56-
import static com.github.jberkel.pay.me.IabConsts.INAPP_CONTINUATION_TOKEN;
57-
import static com.github.jberkel.pay.me.IabConsts.RESPONSE_BUY_INTENT;
58-
import static com.github.jberkel.pay.me.IabConsts.RESPONSE_CODE;
59-
import static com.github.jberkel.pay.me.IabConsts.RESPONSE_GET_SKU_DETAILS_LIST;
60-
import static com.github.jberkel.pay.me.IabConsts.RESPONSE_INAPP_ITEM_LIST;
61-
import static com.github.jberkel.pay.me.IabConsts.RESPONSE_INAPP_PURCHASE_DATA;
62-
import static com.github.jberkel.pay.me.IabConsts.RESPONSE_INAPP_PURCHASE_DATA_LIST;
63-
import static com.github.jberkel.pay.me.IabConsts.RESPONSE_INAPP_SIGNATURE;
64-
import static com.github.jberkel.pay.me.IabConsts.RESPONSE_INAPP_SIGNATURE_LIST;
65-
import static com.github.jberkel.pay.me.Response.BILLING_UNAVAILABLE;
66-
import static com.github.jberkel.pay.me.Response.ERROR;
67-
import static com.github.jberkel.pay.me.Response.IABHELPER_BAD_RESPONSE;
68-
import static com.github.jberkel.pay.me.Response.IABHELPER_DISPOSED;
69-
import static com.github.jberkel.pay.me.Response.IABHELPER_INVALID_CONSUMPTION;
70-
import static com.github.jberkel.pay.me.Response.IABHELPER_MISSING_TOKEN;
71-
import static com.github.jberkel.pay.me.Response.IABHELPER_REMOTE_EXCEPTION;
72-
import static com.github.jberkel.pay.me.Response.IABHELPER_SEND_INTENT_FAILED;
73-
import static com.github.jberkel.pay.me.Response.IABHELPER_SUBSCRIPTIONS_NOT_AVAILABLE;
74-
import static com.github.jberkel.pay.me.Response.IABHELPER_UNKNOWN_ERROR;
75-
import static com.github.jberkel.pay.me.Response.IABHELPER_UNKNOWN_PURCHASE_RESPONSE;
76-
import static com.github.jberkel.pay.me.Response.IABHELPER_VERIFICATION_FAILED;
77-
import static com.github.jberkel.pay.me.Response.OK;
78-
import static com.github.jberkel.pay.me.Response.getDescription;
54+
import static com.github.jberkel.pay.me.IabConsts.*;
55+
import static com.github.jberkel.pay.me.Response.*;
7956
import static com.github.jberkel.pay.me.model.ItemType.INAPP;
8057
import static com.github.jberkel.pay.me.model.ItemType.SUBS;
8158

@@ -112,7 +89,7 @@
11289
* @author Jan Berkel
11390
*/
11491
public class IabHelper {
115-
/* package */ static final Intent BIND_BILLING_SERVICE = new Intent("com.android.vending.billing.InAppBillingService.BIND");
92+
static final Intent BIND_BILLING_SERVICE = new Intent("com.android.vending.billing.InAppBillingService.BIND");
11693

11794
private Context mContext;
11895
private IInAppBillingService mService;

0 commit comments

Comments
 (0)