@expensify/react-native-wallet 0.1.35 → 0.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,8 +48,11 @@ class WalletModule internal constructor(context: ReactApplicationContext) :
48
48
  const val E_INVALID_DATA = "E_INVALID_DATA"
49
49
  }
50
50
 
51
- private val activity = reactApplicationContext.currentActivity ?: throw ActivityNotFoundException()
52
- private val tapAndPayClient: TapAndPayClient = TapAndPay.getClient(activity)
51
+ private val activity: Activity
52
+ get() = reactApplicationContext.currentActivity ?: throw ActivityNotFoundException()
53
+
54
+ private val tapAndPayClient: TapAndPayClient
55
+ get() = TapAndPay.getClient(activity)
53
56
  private var pendingCreateWalletPromise: Promise? = null
54
57
  private var pendingPushTokenizePromise: Promise? = null
55
58
  private val moduleScope = CoroutineScope(SupervisorJob() + Dispatchers.Main)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensify/react-native-wallet",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "A React Native module designed for seamless integration of Card Push Provisioning into Apple Wallet and Google Wallet, enabling easy and secure addition of payment cards directly from your application.",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "lib/commonjs/index",