Fix build on other platforms
This commit is contained in:
parent
839df0ee5a
commit
a883d3d50d
2 changed files with 3 additions and 1 deletions
|
@ -51,6 +51,7 @@ namespace atom {
|
||||||
|
|
||||||
namespace api {
|
namespace api {
|
||||||
|
|
||||||
|
#if defined(OS_MACOSX)
|
||||||
// static
|
// static
|
||||||
mate::Handle<InAppPurchase> InAppPurchase::Create(v8::Isolate* isolate) {
|
mate::Handle<InAppPurchase> InAppPurchase::Create(v8::Isolate* isolate) {
|
||||||
return mate::CreateHandle(isolate, new InAppPurchase(isolate));
|
return mate::CreateHandle(isolate, new InAppPurchase(isolate));
|
||||||
|
@ -86,6 +87,7 @@ void InAppPurchase::OnTransactionsUpdated(
|
||||||
const std::vector<in_app_purchase::Transaction>& transactions) {
|
const std::vector<in_app_purchase::Transaction>& transactions) {
|
||||||
Emit("transactions-updated", transactions);
|
Emit("transactions-updated", transactions);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
} // namespace api
|
} // namespace api
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ using InAppTransactionCallback =
|
||||||
*
|
*
|
||||||
* @param transaction - The transaction to pass to the callback.
|
* @param transaction - The transaction to pass to the callback.
|
||||||
*/
|
*/
|
||||||
- (void)runCallback:(NSArray<SKPaymentTransaction*>*)transactions {
|
- (void)runCallback:(NSArray*)transactions {
|
||||||
// Convert the transaction.
|
// Convert the transaction.
|
||||||
std::vector<in_app_purchase::Transaction> converted;
|
std::vector<in_app_purchase::Transaction> converted;
|
||||||
converted.reserve([transactions count]);
|
converted.reserve([transactions count]);
|
||||||
|
|
Loading…
Reference in a new issue