-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: In order to clean up the in-app purchase auto-logging code and adhere to best coding practices, we should create an interface that both billing client wrappers implement. We can now use this interface to call a generic billing client in ```InAppPurchaseAutoLogger``` or anywhere else in the FBSDK for that matter. Reviewed By: jjiang10 Differential Revision: D62037255 fbshipit-source-id: 126e57dec5f2d9156f77d9b09678a5c2d2ed4ba0
- Loading branch information
1 parent
ba13aba
commit f598208
Showing
5 changed files
with
52 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
facebook-core/src/main/java/com/facebook/appevents/iap/InAppPurchaseBillingClientWrapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.facebook.appevents.iap | ||
|
||
interface InAppPurchaseBillingClientWrapper { | ||
val billingClient: Any | ||
fun queryPurchases(productType: InAppPurchaseUtils.IAPProductType, runnable: Runnable) | ||
fun queryPurchaseHistory(productType: InAppPurchaseUtils.IAPProductType, runnable: Runnable) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters