-
Notifications
You must be signed in to change notification settings - Fork 1
CCIStoreAssets
CCIStoreAssets
is the interface that represents your application-specific information. android-store needs you to implement this interface with your own class and initialize CCStoreController with it.
-
public int getVersion()
This value will determine if the saved data in the database will be deleted or not. Bump the version every time you want to delete the old data in the DB. If you don't bump this value, you won't be able to see changes you've made to the objects in this file.
NOTE: You can NOT bump this value and just delete the app from your device to see changes. You can't do this after you publish your application on the market.
For example: If you previously created a CCVirtualGood with name "Hat" and you published your application, the name "Hat will be saved in any of your users' databases. If you want to change the name to "Green Hat" than you'll also have to bump the version (from 0 to 1). Now the new "Green Hat" name will replace the old one.
-
public CCVirtualCurrency[] getVirtualCurrencies()
Create an instance of all your desired _CCVirtualCurrency_s. For every currency, you'll have to provide: name, description and itemId.
-
public CCVirtualGood[] getVirtualGoods()
android-store requires that you provide a list of CCVirtualGoods. This needs to be an exact representation of your game's virtual goods.
-
public CCVirtualCurrencyPack[] getVirtualCurrencyPacks()
You're also required to provide android-store with a list of your CCVirtualCurrencyPacks. The virtual currency packs are representations of currency packs that the user can purchase from Google Play.
-
CCVirtualCategory[] getVirtualCategories()
We believe that CCVirtualGoods are always categorised. If you don't categorize your CCVirtualGoods, just add one 'GENERAL' CCVirtualCategory as we do in our MuffinRush example.
-
CCMarketItem[] getNonConsumableItems()
Do you have MANAGED items you want to sell on Google Play or iTunes Connect? This is where you define them. MANAGED items can be anything you want to sell you your user just ONCE. For example: you might want to provide them with a "No Ads" feature that they can buy and have for eternity!
In case you're using SOOMLA's storefront, The order in which you put the above objects MATTERS. This is the order they will show up in the UI.
All the model objects above are described in Economy Model Objects.
See MuffinRushAssets