Skip to content

Commit

Permalink
Us1762585 - iOS Refactor Native components (#81)
Browse files Browse the repository at this point in the history
* US1762570: create view manager to native AccessCheckoutEditText component; override onTextChange to support the react native onChangeText event; implement component in react native

* US1762550: update card details field to use new component; update RN module to use reference to AccessCheckoutEditText and not the text value

* US1762550: move AccessCheckoutEditTextManager to correct file path; update local android sdk files to most up-to-date version of master; update AccessCheckoutReactPackageTest

* US1782181: add unit tests for AccessCheckoutEditTextManagerTest; add mockito to build.gradle for unit tests

* US1762551: Expose AccessCheckoutUITextField to be able to use native components via the ios Bridge
Simplify ReactNativeViewLocator and implement/expose specific POC methods to avoid disruptions with previous implementation
Add POC toggle to demo app to be able to switch implementations
Expose new POC validation and sessionGeneration methods to avoid diruptions with previous implementations

* US1762551: Point client to npe environment

* US1762585: Refactor ios Bridge and demo application
Avoids having to handle inputs in states
Uses native components
Only a input field id is needed in order to configure validation and session generation for a field
Integrate the latest AccessCheckoutUITextField changes
Updates and renames cvcValue to cvcId
Updates and renames panValue to panId
Updates and renames expiryDateValue to expiryDateId

* US1762585: Rebuild lib and clean up files

* US1762585: Minor cleanup

* US1762585: Rebuild lib files
Rename AccessCheckoutEditText to AccessCheckoutInputText as EditText was specific to Android
Minor renaming of fields like panUITextField to panACUITextField to improve readability and make it known that we are dealing with AccessCheckoutUITextField in the iOS bridge

* US1762585:
Rename AccessCheckoutEditText to AccessCheckoutInputText in Android bridge

* US1762585:
Rename AccessCheckoutInputText to AccessCheckoutTextInput
Rebuild lib files

* US1762585: Update bitrise-step to use xcode-test v5 and update e2e tests (#82)

* US1762585: Update bitrise-step to use xcode-test v5

* US1762585: Use Optionals to mantain compatibility in both Xcode 13 and Xcode 15

* US1762585: Update e2e tests

* US1762585: Improve matcher based on platform using type

* US1762585: Remove TextInputPO as it is no longer used

---------

Co-authored-by: e5661323 <jason.dzelamensah@fisglobal.com>
  • Loading branch information
abaeza-wp and jmensahWP committed Jan 15, 2024
1 parent 65e99e2 commit 8afb43c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo-app/src/card-flow/CardFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import CardFlowE2eStates from './CardFlow.e2e.states';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import styles from './style.js';
import type SessionGenerationConfig from '../../../access-checkout-react-native-sdk/src/session/SessionGenerationConfig';

export default function CardFlow() {
const unknownBrandLogo =
Expand Down
1 change: 1 addition & 0 deletions demo-app/src/cvc-flow/CvcFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import Spinner from '../common/Spinner';
import SubmitButton from '../common/SubmitButton';
import VView from '../common/VView';
import CvcOnlyFlowE2eStates from '../cvc-flow/CvcOnlyFlow.e2e.states';
import type SessionGenerationConfig from '../../../access-checkout-react-native-sdk/src/session/SessionGenerationConfig';

export default function CvcFlow() {
const [cvcIsValid, setCvcIsValid] = useState<boolean>(false);
Expand Down

0 comments on commit 8afb43c

Please sign in to comment.