RSMoneyMaker-Core - RSMoneyMaker-UI -
此项目仅在 iOS 上进行过测试。
RSMoneyMaker 通过 CocoaPods 提供。要安装它,简单地在您的 Podfile 中添加以下行
pod "RSMoneyMaker"
IAPProduct *weatherProduct = [IAPProduct new];
weatherProduct.iapIdentifier = WeatherProductIdentifier;
weatherProduct.defaults = @{ @"weather_location_type": @"currentLocation",
@"show_weather": @YES };
[IAPManager initializeStoreWithProducts:@[weatherProduct] withSharedSecret:@"..."];
IAPManager *manager = [IAPManager sharedManager];
[manager purchaseProduct:[IAPProducts productForIdentifier:self.productIdentifier].storeKitProduct withCompletion:^(NSError *error) {
...
}];
Venkat S. Rao, [email protected]
RSStoreKit 在 MIT 许可证下提供。有关更多信息,请参阅 LICENSE 文件。