Skip to content

Commit

Permalink
fix(mobile): fix migration using biometry (#762)
Browse files Browse the repository at this point in the history
* fix(mobile): fix migration using biometry

* bump(mobile): 4.0.1
  • Loading branch information
voloshinskii authored Mar 12, 2024
1 parent fab7c6e commit e5a889c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/mobile/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 433
versionName "4.0.0"
versionName "4.0.1"
missingDimensionStrategy 'react-native-camera', 'general'
missingDimensionStrategy 'store', 'play'
}
Expand Down
4 changes: 2 additions & 2 deletions packages/mobile/ios/ton_keeper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 4.0.0;
MARKETING_VERSION = 4.0.1;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down Expand Up @@ -1328,7 +1328,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 4.0.0;
MARKETING_VERSION = 4.0.1;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down
6 changes: 1 addition & 5 deletions packages/mobile/src/hooks/useMigration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ export const useMigration = () => {
if (isNewSecurityFlow) {
const keychainService = await AsyncStorage.getItem('keychainService');

if (!keychainService) {
throw new Error();
}

jsonstr = await SecureStore.getItemAsync('biometry_' + keychainItemName, {
keychainService,
keychainService: keychainService || 'TKProtected',
});
} else {
jsonstr = await EncryptedStorage.getItem(keychainItemName);
Expand Down

0 comments on commit e5a889c

Please sign in to comment.