|
51 | 51 |
|
52 | 52 | import static android.app.Activity.RESULT_CANCELED; |
53 | 53 | 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.*; |
79 | 56 | import static com.github.jberkel.pay.me.model.ItemType.INAPP; |
80 | 57 | import static com.github.jberkel.pay.me.model.ItemType.SUBS; |
81 | 58 |
|
|
112 | 89 | * @author Jan Berkel |
113 | 90 | */ |
114 | 91 | 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"); |
116 | 93 |
|
117 | 94 | private Context mContext; |
118 | 95 | private IInAppBillingService mService; |
|
0 commit comments