Skip to content

Commit 5477c2b

Browse files
committed
ONE-7733: iOS NFC HCE
1 parent 80f8115 commit 5477c2b

File tree

18 files changed

+73
-137
lines changed

18 files changed

+73
-137
lines changed

app/config/flavors/procivis/config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,4 @@ import { commonConfig } from '../common/config';
44
export const config: Omit<Configuration, 'walletProvider'> = {
55
...commonConfig,
66
appName: 'Procivis One Wallet',
7-
backendConfig: {
8-
endpoints: {
9-
onboardingInvitation: '/api/v1/onboarding/invitation',
10-
},
11-
host: 'TODO',
12-
},
137
};

app/config/flavors/procivis/demo/config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import { config as procivisConfig } from '../config';
55

66
export const config: Configuration = {
77
...procivisConfig,
8-
backendConfig: {
9-
endpoints: procivisConfig.backendConfig.endpoints,
10-
host: 'TODO',
11-
},
128
walletProvider: {
139
type: WalletProviderTypeEnum.PROCIVIS_ONE,
1410
url: 'https://core.demo.procivis-one.com',

app/config/flavors/procivis/dev/config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import { config as procivisConfig } from '../config';
55

66
export const config: Configuration = {
77
...procivisConfig,
8-
backendConfig: {
9-
endpoints: procivisConfig.backendConfig.endpoints,
10-
host: 'TODO',
11-
},
128
walletProvider: {
139
type: WalletProviderTypeEnum.PROCIVIS_ONE,
1410
url: 'https://core.dev.procivis-one.com',

app/config/flavors/procivis/test/config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import { config as procivisConfig } from '../config';
55

66
export const config: Configuration = {
77
...procivisConfig,
8-
backendConfig: {
9-
endpoints: procivisConfig.backendConfig.endpoints,
10-
host: 'TODO',
11-
},
128
walletProvider: {
139
type: WalletProviderTypeEnum.PROCIVIS_ONE,
1410
url: 'https://core.test.procivis-one.com',

app/config/flavors/procivis/trial/config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { WalletProviderTypeEnum } from '@procivis/react-native-one-core';
2+
import { Platform } from 'react-native';
23

34
import { Configuration } from '../../../../models/config/config';
45
import { config as procivisConfig } from '../config';
56

67
export const config: Configuration = {
78
...procivisConfig,
8-
backendConfig: {
9-
endpoints: procivisConfig.backendConfig.endpoints,
10-
host: 'TODO',
9+
featureFlags: {
10+
...procivisConfig.featureFlags,
11+
nfcEnabled: Platform.OS === 'android',
1112
},
1213
walletProvider: {
1314
type: WalletProviderTypeEnum.PROCIVIS_ONE,

app/models/backend-config-store/backend-config-store.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/models/backend-config-store/setup-backend-config-store.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

app/models/config/config.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
import { WalletProviderTypeEnum } from '@procivis/react-native-one-core';
22

3-
export interface EndpointsConfiguration {
4-
onboardingInvitation: string;
5-
}
6-
7-
export interface BackendConfiguration {
8-
endpoints: EndpointsConfiguration;
9-
host: string;
10-
}
11-
123
export interface WalletProviderConfiguration {
134
type: WalletProviderTypeEnum;
145
url: string;
@@ -26,7 +17,7 @@ export interface FeatureFlags {
2617
localization: boolean;
2718
/** MQTT transport enabled */
2819
mqttTransportEnabled: boolean;
29-
/** NFC support enabled */
20+
/** NFC (HCE) support enabled */
3021
nfcEnabled: boolean;
3122
/** create request credential enabled */
3223
requestCredentialEnabled: boolean;
@@ -36,7 +27,6 @@ export interface FeatureFlags {
3627

3728
export interface Configuration {
3829
appName: string;
39-
backendConfig: BackendConfiguration;
4030
customOpenIdUrlScheme?: string;
4131
featureFlags: FeatureFlags;
4232
requestCredentialRedirectUri?: string;

app/models/root-store/root-store.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Instance, SnapshotOut, types } from 'mobx-state-tree';
22

3-
import { BackendConfigStoreModel } from '../backend-config-store/backend-config-store';
43
import { LocaleStoreModel } from '../locale-store/locale-store';
54
import { UserSettingsStoreModel } from '../user-settings-store/user-settings-store';
65
import { WalletStoreModel } from '../wallet-store/wallet-store';
@@ -10,7 +9,6 @@ import { WalletStoreModel } from '../wallet-store/wallet-store';
109
*/
1110
// prettier-ignore
1211
export const RootStoreModel = types.model("RootStore", {
13-
backendConfigStore: BackendConfigStoreModel,
1412
locale: LocaleStoreModel,
1513
userSettings: UserSettingsStoreModel,
1614
walletStore: WalletStoreModel,

app/models/root-store/setup-root-store.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { setupBackendConfigStore } from '../backend-config-store/setup-backend-config-store';
21
import { Environment } from '../environment';
32
import { setupLocaleStore } from '../locale-store/setup-locale-store';
43
import { setupUserSettingsStore } from '../user-settings-store/setup-user-settings-store';
@@ -26,7 +25,6 @@ export async function setupRootStore() {
2625
const env = await createEnvironment();
2726

2827
const rootStoreData = {
29-
backendConfigStore: await setupBackendConfigStore(env),
3028
locale: await setupLocaleStore(env),
3129
userSettings: await setupUserSettingsStore(env),
3230
walletStore: await setupWalletStore(env),

0 commit comments

Comments
 (0)