Squaby Demo
import QtQuick 2.0
import Felgo 4.0
LevelStore {
version: 1
secret: ""
androidPublicKey: ""
property alias noAdsGood : noAdsGood
property alias money5Pack: money5Pack
property alias money10Pack: money10Pack
property alias money50Pack: money50Pack
goods: [
LifetimeGood {
id: noAdsGood
itemId: "no_ads_id_sq"
name: "No Ads"
description: "Remove the ads"
purchaseType: StorePurchase { id: noAdsPurchase; productId: noAdsGood.itemId; price: 0.89; }
}
]
currencies: [
Currency { id: moneyCurrency; itemId: "currency_money_id"; name: "money"; }
]
currencyPacks: [
CurrencyPack {
id: money5Pack
itemId: "money_pack_5_id_sq"
name: "5 Credits"
description: "05 credits"
currencyId: moneyCurrency.itemId
currencyAmount: 5
purchaseType: StorePurchase { id: money2Purchase; productId: money5Pack.itemId; price: 0.89;}
},
CurrencyPack {
id: money10Pack
itemId: "money_pack_10_id_sq"
name: "10 Credits"
description: "10 credits"
currencyId: moneyCurrency.itemId
currencyAmount: 10
purchaseType: StorePurchase { id: money10Purchase; productId: money10Pack.itemId; price: 1.79; }
},
CurrencyPack {
id: money50Pack
itemId: "money_pack_50_id_sq"
name: "50 Credits"
description: "50 credits"
currencyId: moneyCurrency.itemId
currencyAmount: 50
purchaseType: StorePurchase { id: money50Purchase; productId: money50Pack.itemId; price: 2.69; }
}
]
onInsufficientFundsError: {
flurry.logEvent("Store.Purchase","InsufficientFunds")
console.debug("SquabyLevelStore: insufficientFunds")
}
onStorePurchased: {
flurry.logEvent("Store.Purchase","Purchased")
}
onStorePurchaseCancelled: {
flurry.logEvent("Store.Purchase","Cancelled")
}
onStorePurchaseStarted: {