在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:soomla/ios-store开源软件地址:https://github.com/soomla/ios-store开源编程语言:Objective-C 99.8%开源软件介绍:Looking for great devs who want maintain and moderate this project !![email protected]If you want to take over... contact us atThis project is a part of The SOOMLA Framework which is a series of open source initiatives with a joint goal to help mobile game developers do more together. SOOMLA encourages better game design, economy modeling, social engagement, and faster development. Haven't you ever wanted an in-app purchase one liner that looks like this ?! [StoreInventory buyItemWithItemId:@"[itemId]"] ios-storeSOOMLA's Store Module for iOS March 31st, 2014: SoomlaStore will automatically try to fetch prices for PurchasableItems that has a purchase type of PurchaseWithMarket. The product ids that'll be found in the App Store will update the associated 'AppStoreItem' in special fields: appStorePrice, appStoreLocale, appStoreTitle, appStoreDescription. September 29th, 2013: Server Side Verification is now implemented into ios-store. The server is a complimentary server provided by SOOMLA to help you get your in-game purchases a bit more secured. This feature is not enabled by default. In order to enable Server Side verification go to StoreConfig.m and set VERIFY_PURCHASES = YES. Want to learn more about modelV3? Try these: ios-store is the iOS flavor of SOOMLA's Store Module. Check out our [Wiki] (https://github.com/soomla/ios-store/wiki) for more information about the project and how to use it better. DownloadPre baked libraries:From sources:
Getting StartedWE USE ARC !Before doing anything, SOOMLA recommends that you go through Selling with In-App Purchase.
And that's it ! You have Storage and in-app purchasing capabilities... ALL-IN-ONE. What's next? In App Purchasing.When we implemented modelV3, we were thinking about ways people buy things inside apps. We figured many ways you can let your users purchase stuff in your game and we designed the new modelV3 to support 2 of them: PurchaseWithMarket and PurchaseWithVirtualItem. PurchaseWithMarket is a PurchaseType that allows users to purchase a VirtualItem with the App Store. In order to define the way your various virtual items (Goods, Coins ...) are purchased, you'll need to create your implementation of IStoreAsset (the same one from step 4 in the "Getting Started" above). Here is an example: Lets say you have a VirtualCurrencyPack you call VirtualCurrencyPack* TEN_COINS_PACK = [[VirtualCurrencyPack alloc] initWithName:@"10 Coins"
andDescription:@"A pack of 10 coins"
andItemId:@"10_coins"
andCurrencyAmount:10
andCurrency:COIN_CURRENCY_ITEM_ID
andPurchaseType:[[PurchaseWithMarket alloc] initWithProductId:TEN_COINS_PACK_PRODUCT_ID andPrice:1.99]]; Now you can use StoreInventory to buy your new VirtualCurrencyPack: [StoreInventory buyItemWithItemId:TEN_COINS_PACK.itemId]; And that's it! iOS-store knows how to contact the App Store for you and redirect the user to their purchasing system to complete the transaction. Don't forget to subscribe to events of successful or failed purchases (see Event Handling). Storage & Meta-DataWhen you initialize SoomlaStore, it automatically initializes two other classes: StorageManager and StoreInfo. StorageManager is the father of all storage related instances in your game. Use it to access the balances of virtual currencies and virtual goods (usually, using their itemIds). StoreInfo is the mother of all meta data information about your specific game. It is initialized with your implementation of The on-device storage is encrypted and kept in a SQLite database. SOOMLA is preparing a cloud-based storage service that will allow this SQLite to be synced to a cloud-based repository that you'll define. Stay tuned... this is just one of the goodies we prepare for you. Example Usages
SecurityIf you want to protect your application from 'bad people' (and who doesn't?!), you might want to follow some guidelines:
Event HandlingSOOMLA lets you get notifications on various events and implement your own application specific behavior.
In order to observe store events you need to import EventHandling.h and then you can add a notification to NSNotificationCenter:
OR, you can observe all events with the same selector by calling:
Our way of saying "Thanks !"Other open-source projects that we use: ContributionSOOMLA appreciates code contributions! You are more than welcome to extend the capabilities of SOOMLA. Fork -> Clone -> Implement -> Add documentation -> Test -> Pull-Request. IMPORTANT: If you would like to contribute, please follow our Documentation Guidelines. Clear, consistent comments will make our code easy to understand. SOOMLA, Elsewhere ...LicenseApache License. Copyright (c) 2012-2014 SOOMLA. http://project.soom.la |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论