Skip to content

Update permission

Macha requested to merge update-permission into master
  • Refactor the code to put function in terms of the game in MainGameExt
  • Review the flow of the In-app purchase :
  1. Request permission when the user want to purchase. If contact permission is:
  • Yes: go to 2.
  • No: nothing
  • Already got: go to 2.
  1. Get payload variable construct with Google service and a special I Love key. Callback after stuff with Google Play Service:
  • OK: go to 3
  • KO: nothing
  1. Set up In App purchase by initialise IabHelper, treatment of the listener OnIabSetupFinishedListener:
  • success: got to 4
  1. Query the inventory, treatment of the listener QueryInventoryFinishedListener:
  • Already got premium: update UI
  • No premium in inventory: launch purchase
  1. Launch purchase flow, treatment of the listener OnIabPurchaseFinishedListener:
  • got premium: update UI

Merge request reports