Skip to content

Commit 5d8664b

Browse files
committed
refactor: cleanup
Signed-off-by: Jason C. Leach <[email protected]>
1 parent 751c11d commit 5d8664b

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@ app/vendor/bundle/**
6868
bifold/
6969
aries-oca-bundles/
7070
credo-ts/
71+
app/vendor/

app/App.tsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717
MainContainer,
1818
ActivityProvider,
1919
OpenIDCredentialRecordProvider,
20-
PersistentStorage,
2120
} from '@hyperledger/aries-bifold-core'
2221
import messaging from '@react-native-firebase/messaging'
2322
import { useNavigation } from '@react-navigation/native'
@@ -30,8 +29,7 @@ import SplashScreen from 'react-native-splash-screen'
3029
import Toast from 'react-native-toast-message'
3130
import { container } from 'tsyringe'
3231

33-
// TODO:(JL) Cleanup AppState since it is not really used?
34-
import { AppContainer, AppState } from './container-imp'
32+
import { AppContainer } from './container-imp'
3533
import bcwallet from './src'
3634
import tours from './src/components/tours'
3735
import { surveyMonkeyUrl, surveyMonkeyExitUrl } from './src/constants'
@@ -52,8 +50,7 @@ const App = () => {
5250
const { t } = useTranslation()
5351
const { navigate } = useNavigation()
5452
const bifoldContainer = new MainContainer(container.createChildContainer()).init()
55-
const storage = new PersistentStorage()
56-
const bcwContainer = new AppContainer(bifoldContainer, t, navigate, storage).init()
53+
const bcwContainer = new AppContainer(bifoldContainer, t, navigate).init()
5754

5855
if (!isTablet()) {
5956
Orientation.lockToPortrait()
@@ -64,6 +61,8 @@ const App = () => {
6461
}, [])
6562

6663
useEffect(() => {
64+
// Hide the native splash / loading screen so
65+
// that our RN version can be displayed.
6766
SplashScreen.hide()
6867
}, [])
6968

app/container-imp.ts

-7
Original file line numberDiff line numberDiff line change
@@ -74,24 +74,17 @@ import { generateOnboardingWorkflowSteps } from './src/onboarding'
7474
const attestationCredDefIds = allCredDefIds(AttestationRestrictions)
7575
const helpLink = 'https://www2.gov.bc.ca/gov/content/governments/government-id/bc-wallet/help'
7676

77-
export interface AppState {
78-
showSurvey: boolean
79-
}
80-
8177
export class AppContainer implements Container {
8278
private _container: DependencyContainer
8379
private log?: BifoldLogger
8480
private t: TFunction<'translation', undefined>
8581
private navigate: (stack: never, params: never) => void
86-
// private setAppState: React.Dispatch<React.SetStateAction<AppState>>
87-
// private appState: AppState
8882
private storage: PersistentStorage<PersistentState>
8983

9084
public constructor(
9185
bifoldContainer: Container,
9286
t: TFunction<'translation', undefined>,
9387
navigate: (stack: never, params: never) => void,
94-
storage: PersistentStorage<PersistentState>,
9588
log?: BifoldLogger
9689
) {
9790
this._container = bifoldContainer.container.createChildContainer()

app/ios/.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.8

0 commit comments

Comments
 (0)