diff --git a/forage-android/src/main/java/com/joinforage/forage/android/LDManager.kt b/forage-android/src/main/java/com/joinforage/forage/android/LDManager.kt index 2534429c..0703da37 100644 --- a/forage-android/src/main/java/com/joinforage/forage/android/LDManager.kt +++ b/forage-android/src/main/java/com/joinforage/forage/android/LDManager.kt @@ -49,7 +49,7 @@ internal object LDManager { internal fun initialize(app: Application, ldConfig: LDConfig) { val contextKind = ContextKind.of(LDContextKind.SERVICE) val context = LDContext.create(contextKind, LDContexts.ANDROID_CONTEXT) - client = LDClient.init(app, ldConfig, context, 0) + client = LDClient.init(app, ldConfig, context, 1) } internal fun getVaultProvider(logger: Log = Log.getSilentInstance()): VaultType { diff --git a/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/tokenize/FlowTokenizeFragment.kt b/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/tokenize/FlowTokenizeFragment.kt index c5925074..4fd6e1fd 100644 --- a/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/tokenize/FlowTokenizeFragment.kt +++ b/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/tokenize/FlowTokenizeFragment.kt @@ -60,6 +60,7 @@ class FlowTokenizeFragment : Fragment() { val isComplete: TextView = binding.isComplete val isEmpty: TextView = binding.isEmpty val isValid: TextView = binding.isValid + val usState: TextView = binding.usState fun setState() { val state = foragePanEditText.getElementState() @@ -67,6 +68,7 @@ class FlowTokenizeFragment : Fragment() { isComplete.text = "isComplete: ${state.isComplete}" isEmpty.text = "isEmpty: ${state.isEmpty}" isValid.text = "isValid: ${state.isValid}" + usState.text = "usState: ${state.derivedCardInfo.usState?.abbreviation}" } foragePanEditText.setOnFocusEventListener { setState() } @@ -77,6 +79,7 @@ class FlowTokenizeFragment : Fragment() { isComplete.text = "isComplete: ${state.isComplete}" isEmpty.text = "isEmpty: ${state.isEmpty}" isValid.text = "isValid: ${state.isValid}" + usState.text = "usState: ${state.derivedCardInfo.usState?.abbreviation}" viewModel.paymentMethod.observe(viewLifecycleOwner) { when (it == null) { diff --git a/sample-app/src/main/res/layout/fragment_flow_tokenize.xml b/sample-app/src/main/res/layout/fragment_flow_tokenize.xml index 1dc779a4..32768291 100644 --- a/sample-app/src/main/res/layout/fragment_flow_tokenize.xml +++ b/sample-app/src/main/res/layout/fragment_flow_tokenize.xml @@ -132,6 +132,21 @@ app:layout_constraintVertical_bias="0.0" tools:text="isValid: false" /> + +