Skip to content

Commit

Permalink
Update CrossInAppBilling.shared.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno authored Oct 18, 2024
1 parent 0db0246 commit f4aba4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Plugin.InAppBilling/CrossInAppBilling.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ public static IInAppBilling Current
}
}

#if ANDROID || IOS || MACCATALYST || MACOS || WINDOWS
static IInAppBilling CreateInAppBilling() => new InAppBillingImplementation();
#else
static IInAppBilling CreateInAppBilling() => null;
#endif

internal static Exception NotImplementedInReferenceAssembly() =>
new NotImplementedException("This functionality is not implemented in the portable version of this assembly. You should reference the NuGet package from your main application project in order to reference the platform-specific implementation.");
Expand Down

0 comments on commit f4aba4c

Please sign in to comment.