mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-08 21:18:14 -05:00
* chore(INJI-195): upgrade react native version and dependencies * chore(INJI-195): upgrade expo version and dependencies * chore(INJI-195): modify associated files on version upgrade * chore(INJI-295): fixed react native flipper and patch packages * chore(INJI-195): fix for expo prebuild * chore(INJI-195): expo linked to android/ios projects * chore(INJI-195): update metro config * chore(INJI-195): fix ios build with mmkv storage patch * chore(INJI-195): gradle version modified * chore(INJI-195): fixed rn version 0.71.8 due to mmkv library issue * chore(INJI-195): removed files in android * chore(INJI-195): fix 0.71.8 for iOS project through pods with expo linking * chore(INJI-195): fix for custom fonts added through pods due to rn linkage * chore(INJI-195): fix for removing assets.car generated from pods * Modify Node version in pipeline (#806) * chore(INJI-195): fix for android splash screen not shown up * chore(INJI-195): upgraded to node 18 in pipeline * chore(INJI-195): add the pod install twice to remove duplicates via script workaround (#807) Signed-off-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com> * INJI-195 Set the signing team for iOS (#810) * chore(INJI-195): add the pod install twice to remove duplicates via script workaround * chore(INJI-195): set the signing team for ios build --------- Signed-off-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com> * Modify github runner to self hosted runner (#811) * chore(INJI-195): add the pod install twice to remove duplicates via script workaround * chore(INJI-195): set the signing team for ios build * chore(INJI-195): set the self hosted runner for ios build --------- Signed-off-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com> * Modify self hosted runner to github hosted runner (#813) * chore(INJI-195): add the pod install twice to remove duplicates via script workaround * chore(INJI-195): set the signing team for ios build * chore(INJI-195): set the self hosted runner for ios build * chore(INJI-195): modify the self hosted to github hosted runner --------- Signed-off-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com> * chore(INJI-195): modify the self hosted to github hosted runner * chore(INJI-195): set the code signing identity for ios build * chore(INJI-195): assigned app icon files to asset --------- Signed-off-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com> Signed-off-by: Swati Goel <meet2swati@gmail.com> Co-authored-by: Swati Goel <meet2swati@gmail.com>
85 lines
2.1 KiB
TypeScript
85 lines
2.1 KiB
TypeScript
import {StateFrom} from 'xstate';
|
|
import {scanMachine} from './scanMachine';
|
|
|
|
type State = StateFrom<typeof scanMachine>;
|
|
|
|
export function selectReceiverInfo(state: State) {
|
|
return state.context.receiverInfo;
|
|
}
|
|
|
|
export function selectReason(state: State) {
|
|
return state.context.reason;
|
|
}
|
|
|
|
export function selectVcName(state: State) {
|
|
return state.context.vcName;
|
|
}
|
|
|
|
export function selectSelectedVc(state: State) {
|
|
return state.context.selectedVc;
|
|
}
|
|
|
|
export function selectQrLoginRef(state: State) {
|
|
return state.context.QrLoginRef;
|
|
}
|
|
|
|
export function selectStayInProgress(state: State) {
|
|
return state.context.stayInProgress;
|
|
}
|
|
|
|
export function selectIsScanning(state: State) {
|
|
return state.matches('findingConnection');
|
|
}
|
|
|
|
export function selectIsConnecting(state: State) {
|
|
return state.matches('connecting.inProgress');
|
|
}
|
|
|
|
export function selectIsConnectingTimeout(state: State) {
|
|
return state.matches('connecting.timeout');
|
|
}
|
|
|
|
export function selectIsSelectingVc(state: State) {
|
|
return state.matches('reviewing.selectingVc');
|
|
}
|
|
|
|
export function selectIsSendingVc(state: State) {
|
|
return state.matches('reviewing.sendingVc.inProgress');
|
|
}
|
|
|
|
export function selectIsSendingVcTimeout(state: State) {
|
|
return state.matches('reviewing.sendingVc.timeout');
|
|
}
|
|
|
|
export function selectIsSent(state: State) {
|
|
return state.matches('reviewing.sendingVc.sent');
|
|
}
|
|
|
|
export function selectIsInvalid(state: State) {
|
|
return state.matches('invalid');
|
|
}
|
|
|
|
export function selectIsLocationDenied(state: State) {
|
|
return state.matches('checkingLocationService.denied');
|
|
}
|
|
|
|
export function selectIsLocationDisabled(state: State) {
|
|
return state.matches('checkingLocationService.disabled');
|
|
}
|
|
|
|
export function selectIsShowQrLogin(state: State) {
|
|
return state.matches('showQrLogin');
|
|
}
|
|
|
|
export function selectIsQrLoginDone(state: State) {
|
|
return state.matches('showQrLogin.navigatingToHistory');
|
|
}
|
|
|
|
export function selectIsQrLoginStoring(state: State) {
|
|
return state.matches('showQrLogin.storing');
|
|
}
|
|
|
|
export function selectIsDone(state: State) {
|
|
return state.matches('reviewing.navigatingToHome');
|
|
}
|