BTVenmoDriver_Internal.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #if __has_include(<Braintree/BraintreeVenmo.h>)
  2. #import <Braintree/BTVenmoDriver.h>
  3. #else
  4. #import <BraintreeVenmo/BTVenmoDriver.h>
  5. #endif
  6. @interface BTVenmoDriver ()
  7. /**
  8. Defaults to [UIApplication sharedApplication], but exposed for unit tests to inject test doubles
  9. to prevent calls to openURL. Its type is `id` and not `UIApplication` because trying to subclass
  10. UIApplication is not possible, since it enforces that only one instance can ever exist
  11. */
  12. @property (nonatomic, strong) id application;
  13. /**
  14. Defaults to [NSBundle mainBundle], but exposed for unit tests to inject test doubles to stub values in infoDictionary
  15. */
  16. @property (nonatomic, strong) NSBundle *bundle;
  17. /**
  18. Defaults to [UIDevice currentDevice], but exposed for unit tests to inject different devices
  19. */
  20. @property (nonatomic, strong) UIDevice *device;
  21. /**
  22. Defaults to use [BTAppContextSwitchDriver sharedInstance].returnURLScheme, but exposed for unit tests to stub returnURLScheme.
  23. */
  24. @property (nonatomic, copy) NSString *returnURLScheme;
  25. /**
  26. Exposed for testing to get the instance of BTAPIClient
  27. */
  28. @property (nonatomic, strong) BTAPIClient *apiClient;
  29. /**
  30. Stored property used to determine whether a venmo account nonce should be vaulted after an app switch return
  31. */
  32. @property (nonatomic, assign) BOOL shouldVault;
  33. @end