Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
deprecation in storekit.mm — Gideros Forum

deprecation in storekit.mm

nat12nat12 Member
edited May 2012 in Bugs and issues
Hello,
compiling an exported iOs project we see 2 warnings in the plugin storekit.mm saying that
'paymentWithProductIdentifier:' is deprecated, can this be a real problem for our app?

Comments

  • Once IOS doesn't support that call anymore, it will be a problem. But that will take a while and for sure, then the plugin needs to be updated. I just got my app approved for IOS and I got that warning too. But I don't use IAP in it.
  • atilimatilim Maintainer
    edited May 2012
    It won't be any problem. But if you want, it's better to replace the function:
    	void purchase(NSString* productIdentifier, int quantity)
    	{
    		SKMutablePayment *payment = [SKMutablePayment paymentWithProductIdentifier:productIdentifier];
    		payment.quantity = quantity;
    		[[SKPaymentQueue defaultQueue] addPayment:payment];
    	}
    with
    	void purchase(NSString *productIdentifier, int quantity)
    	{
    		SKMutablePayment *payment = [[[SKMutablePayment alloc] init] autorelease];
    		payment.productIdentifier = productIdentifier;
    		payment.quantity = quantity;
    		[[SKPaymentQueue defaultQueue] addPayment:payment];
    	}
    I've also updated the official gamekit.mm as this.

    Likes: phongtt

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.