| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #if __has_include(<Braintree/BraintreeVenmo.h>)
- #import <Braintree/BTVenmoDriver.h>
- #else
- #import <BraintreeVenmo/BTVenmoDriver.h>
- #endif
- @interface BTVenmoDriver ()
- /**
- Defaults to [UIApplication sharedApplication], but exposed for unit tests to inject test doubles
- to prevent calls to openURL. Its type is `id` and not `UIApplication` because trying to subclass
- UIApplication is not possible, since it enforces that only one instance can ever exist
- */
- @property (nonatomic, strong) id application;
- /**
- Defaults to [NSBundle mainBundle], but exposed for unit tests to inject test doubles to stub values in infoDictionary
- */
- @property (nonatomic, strong) NSBundle *bundle;
- /**
- Defaults to [UIDevice currentDevice], but exposed for unit tests to inject different devices
- */
- @property (nonatomic, strong) UIDevice *device;
- /**
- Defaults to use [BTAppContextSwitchDriver sharedInstance].returnURLScheme, but exposed for unit tests to stub returnURLScheme.
- */
- @property (nonatomic, copy) NSString *returnURLScheme;
- /**
- Exposed for testing to get the instance of BTAPIClient
- */
- @property (nonatomic, strong) BTAPIClient *apiClient;
- /**
- Stored property used to determine whether a venmo account nonce should be vaulted after an app switch return
- */
- @property (nonatomic, assign) BOOL shouldVault;
- @end
|