The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.0KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 6 technical preview.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. You may use this code under the terms of the GPL v3
  6. (see www.gnu.org/licenses).
  7. For this technical preview, this file is not subject to commercial licensing.
  8. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  9. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  10. DISCLAIMED.
  11. ==============================================================================
  12. */
  13. #ifdef JUCE_PRODUCT_UNLOCKING_H_INCLUDED
  14. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  15. already included any other headers - just put it inside a file on its own, possibly with your config
  16. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  17. header files that the compiler may be using.
  18. */
  19. #error "Incorrect use of JUCE cpp file"
  20. #endif
  21. #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
  22. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  23. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  24. // Set this flag to 1 to use test servers on iOS
  25. #ifndef JUCE_IN_APP_PURCHASES_USE_SANDBOX_ENVIRONMENT
  26. #define JUCE_IN_APP_PURCHASES_USE_SANDBOX_ENVIRONMENT 0
  27. #endif
  28. #include "juce_product_unlocking.h"
  29. #if JUCE_IOS || JUCE_MAC
  30. #import <StoreKit/StoreKit.h>
  31. #endif
  32. #if JUCE_IN_APP_PURCHASES
  33. #if JUCE_ANDROID
  34. #include "native/juce_android_InAppPurchases.cpp"
  35. #elif JUCE_IOS || JUCE_MAC
  36. #include "native/juce_ios_InAppPurchases.cpp"
  37. #endif
  38. #include "in_app_purchases/juce_InAppPurchases.cpp"
  39. #endif
  40. #include "marketplace/juce_OnlineUnlockStatus.cpp"
  41. #if JUCE_MODULE_AVAILABLE_juce_data_structures
  42. #include "marketplace/juce_TracktionMarketplaceStatus.cpp"
  43. #endif
  44. #if JUCE_MODULE_AVAILABLE_juce_gui_extra
  45. #include "marketplace/juce_OnlineUnlockForm.cpp"
  46. #endif