Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Make credential create work locally (#771)

Leendert de Borstd554f0f3cc5f
diff --git a/browser-extension/src/utils/SqliteClient.tsx b/browser-extension/src/utils/SqliteClient.tsx
index a290306a2..d0224c9f2 100644
--- a/browser-extension/src/utils/SqliteClient.tsx
+++ b/browser-extension/src/utils/SqliteClient.tsx
@@ -296,7 +296,7 @@ class SqliteClient {
*/
public getPasswordSettings(): PasswordSettings {
const settingsJson = this.getSetting('PasswordGenerationSettings');
-
+
// Default settings if none found or parsing fails
const defaultSettings: PasswordSettings = {
Length: 18,
@@ -306,7 +306,7 @@ class SqliteClient {
UseSpecialChars: true,
UseNonAmbiguousChars: false
};
-
+
try {
if (settingsJson) {
return { ...defaultSettings, ...JSON.parse(settingsJson) };
@@ -314,7 +314,7 @@ class SqliteClient {
} catch (error) {
console.warn('Failed to parse password settings:', error);
}
-
+
return defaultSettings;
}
@@ -350,7 +350,7 @@ class SqliteClient {
}
const serviceQuery = `
- INSERT INTO Services (Id, Name, Url, Logo, CreatedAt, UpdatedAt)
+ INSERT INTO Services (Id, Name, Url, Logo, CreatedAt, UpdatedAt, IsDeleted)
VALUES (?, ?, ?, ?, ?, ?)`;
const serviceId = crypto.randomUUID().toUpperCase();
const currentDateTime = new Date().toISOString()
@@ -363,13 +363,14 @@ class SqliteClient {
credential.ServiceUrl ?? null,
logoData,
currentDateTime,
- currentDateTime
+ currentDateTime,
+ 0
]);
// 2. Insert Alias
const aliasQuery = `
- INSERT INTO Aliases (Id, FirstName, LastName, NickName, BirthDate, Gender, Email, CreatedAt, UpdatedAt)
- VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`;
+ INSERT INTO Aliases (Id, FirstName, LastName, NickName, BirthDate, Gender, Email, CreatedAt, UpdatedAt, IsDeleted)
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`;
const aliasId = crypto.randomUUID().toUpperCase();
this.executeUpdate(aliasQuery, [
aliasId,
@@ -380,13 +381,14 @@ class SqliteClient {
credential.Alias.Gender ?? null,
credential.Alias.Email ?? null,
currentDateTime,
- currentDateTime
+ currentDateTime,
+ 0
]);
// 3. Insert Credential
const credentialQuery = `
- INSERT INTO Credentials (Id, Username, Notes, ServiceId, AliasId, CreatedAt, UpdatedAt)
- VALUES (?, ?, ?, ?, ?, ?, ?)`;
+ INSERT INTO Credentials (Id, Username, Notes, ServiceId, AliasId, CreatedAt, UpdatedAt, IsDeleted)
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?)`;
const credentialId = crypto.randomUUID().toUpperCase();
this.executeUpdate(credentialQuery, [
credentialId,
@@ -395,21 +397,23 @@ class SqliteClient {
serviceId,
aliasId,
currentDateTime,
- currentDateTime
+ currentDateTime,
+ 0
]);
// 4. Insert Password
if (credential.Password) {
const passwordQuery = `
- INSERT INTO Passwords (Id, Value, CredentialId, CreatedAt, UpdatedAt)
- VALUES (?, ?, ?, ?, ?)`;
+ INSERT INTO Passwords (Id, Value, CredentialId, CreatedAt, UpdatedAt, IsDeleted)
+ VALUES (?, ?, ?, ?, ?, ?)`;
const passwordId = crypto.randomUUID().toUpperCase();
this.executeUpdate(passwordQuery, [
passwordId,
credential.Password,
credentialId,
currentDateTime,
- currentDateTime
+ currentDateTime,
+ 0
]);
}
@@ -516,7 +520,7 @@ class SqliteClient {
}
} else {
return `data:image/x-icon;base64,${placeholderBase64}`;
- }
+ }
}
/**
diff --git a/docs/misc/dev/mobile-app-development.md b/docs/misc/dev/mobile-app-development.md
index 7e2ece095..51544487a 100644
--- a/docs/misc/dev/mobile-app-development.md
+++ b/docs/misc/dev/mobile-app-development.md
@@ -53,4 +53,14 @@ The iOS project contains unit tests that test the `VaultStore` native Swift impl
In order to test this query logic behavior the tests contain a static encrypted client vault (SQLite database) that is provided to the tests.
-This static encrypted database can be (re)generated by running the `src/Tests/AliasVault.E2ETests/Tests/Extensions/TestVaultGeneratorTests.cs` in the .NET solution. This E2E test generates a deterministic vault and saves it to a local temporary file. This file can then be used as the input for these unittests.
\ No newline at end of file
+This static encrypted database can be (re)generated by running the `src/Tests/AliasVault.E2ETests/Tests/Extensions/TestVaultGeneratorTests.cs` in the .NET solution. This E2E test generates a deterministic vault and saves it to a local temporary file. This file can then be used as the input for these unittests.
+
+## React Native Turbo Module VaultManager
+The AliasVault React Native app uses the Turbo Module method for implementing the native VaultManager functionality which allows the app to store the AliasVault vault and encryption key safely on the native level enabling the use of low-level keychain secure storage methods.
+
+In order to update the Native Turbo Module scheme, edit the specs file in: `specs/NativeVaultManager.ts`. Afterwards:
+- For iOS, run pod install (see instructions below). Then make sure to implement the new or changed methods in the actual NativeVaultManager implementation of which the files are located in the `ios/NativeVaultManager` directory.
+
+## Install/update Pods for iOS
+1. Go to root of mobile-app directory
+2. Run `npx pod-install` (don't run `pod install` directly from ios directory as this can cause errors)
\ No newline at end of file
diff --git a/mobile-app/app/(tabs)/(credentials)/_layout.tsx b/mobile-app/app/(tabs)/(credentials)/_layout.tsx
index cbf2a6742..751b0f578 100644
--- a/mobile-app/app/(tabs)/(credentials)/_layout.tsx
+++ b/mobile-app/app/(tabs)/(credentials)/_layout.tsx
@@ -1,5 +1,6 @@
import { useColors } from '@/hooks/useColorScheme';
import { Stack } from 'expo-router';
+import { Platform } from 'react-native';
export default function CredentialsLayout() {
const colors = useColors();
@@ -16,10 +17,12 @@ export default function CredentialsLayout() {
name="add-edit"
options={{
title: 'Add Credential',
+ presentation: Platform.OS === 'ios' ? 'modal' : 'card',
headerShown: true,
headerStyle: {
backgroundColor: colors.headerBackground,
},
+ gestureEnabled: true,
}}
/>
<Stack.Screen
diff --git a/mobile-app/app/(tabs)/(credentials)/add-edit.tsx b/mobile-app/app/(tabs)/(credentials)/add-edit.tsx
index 1ceae4b9c..81ab967c5 100644
--- a/mobile-app/app/(tabs)/(credentials)/add-edit.tsx
+++ b/mobile-app/app/(tabs)/(credentials)/add-edit.tsx
@@ -1,14 +1,12 @@
import { StyleSheet, View, TextInput, TouchableOpacity, ScrollView, Platform, Animated } from 'react-native';
-import { useState, useEffect, useRef } from 'react';
-import { useLocalSearchParams, useRouter } from 'expo-router';
+import { useState, useEffect } from 'react';
+import { useLocalSearchParams, useNavigation, useRouter } from 'expo-router';
import { ThemedText } from '@/components/ThemedText';
import { ThemedView } from '@/components/ThemedView';
import { ThemedSafeAreaView } from '@/components/ThemedSafeAreaView';
import { useColors } from '@/hooks/useColorScheme';
import { useDb } from '@/context/DbContext';
-import { Credential } from '@/utils/types/Credential';
-import { TitleContainer } from '@/components/TitleContainer';
-import { CollapsibleHeader } from '@/components/CollapsibleHeader';
+import { Credential, Alias } from '@/utils/types/Credential';
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
import Toast from 'react-native-toast-message';
import { Gender } from "../../../utils/generators/Identity/types/Gender";
@@ -22,7 +20,7 @@ export default function AddEditCredentialScreen() {
const dbContext = useDb();
const [mode, setMode] = useState<CredentialMode>('random');
const [isLoading, setIsLoading] = useState(false);
- const scrollY = useRef(new Animated.Value(0)).current;
+ const navigation = useNavigation();
const [credential, setCredential] = useState<Partial<Credential>>({
Id: "",
Username: "",
@@ -31,15 +29,43 @@ export default function AddEditCredentialScreen() {
ServiceUrl: "",
Notes: "",
Alias: {
- FirstName: "",
- LastName: "",
- NickName: "",
- BirthDate: "0001-01-01",
- Gender: Gender.Other,
- Email: ""
- }
+ FirstName: "",
+ LastName: "",
+ NickName: "",
+ BirthDate: "0001-01-01",
+ Gender: Gender.Other,
+ Email: ""
+ },
});
+ // Set navigation options
+ useEffect(() => {
+ navigation.setOptions({
+ headerLeft: () => (
+ <TouchableOpacity
+ onPress={() => router.back()}
+ style={{ padding: 10, paddingLeft: 0 }}
+ >
+ <ThemedText style={{ color: colors.primary }}>Cancel</ThemedText>
+ </TouchableOpacity>
+ ),
+ headerRight: () => (
+ <View style={{ flexDirection: 'row' }}>
+ <TouchableOpacity
+ onPress={handleSave}
+ style={{ padding: 10, paddingRight: 0 }}
+ >
+ <MaterialIcons
+ name="save"
+ size={24}
+ color={colors.primary}
+ />
+ </TouchableOpacity>
+ </View>
+ ),
+ });
+ }, [navigation, credential, mode]);
+
const isEditMode = !!id;
useEffect(() => {
@@ -71,31 +97,47 @@ export default function AddEditCredentialScreen() {
}
};
- const generateRandomValues = () => {
+ const generateRandomValues = () : Credential => {
// Placeholder for random generation - will be replaced with actual generators
const randomString = (length: number) => Math.random().toString(36).substring(2, length + 2);
- setCredential(prev => ({
- ...prev,
- Username: randomString(8),
- Password: randomString(12),
- Alias: {
- ...prev.Alias,
- Email: `${randomString(8)}@example.com`,
- FirstName: randomString(6),
- LastName: randomString(6),
- NickName: randomString(6),
- Gender: Math.random() > 0.5 ? Gender.Male : Gender.Female,
- BirthDate: '0001-01-01 00:00:00'
- }
- }));
+ // Get the current credential
+ const updatedCredential = credential;
+
+ // Assign random values to all fields
+ updatedCredential.Username = randomString(8);
+ updatedCredential.Password = randomString(12);
+
+ updatedCredential.Alias = {
+ ...(updatedCredential.Alias ?? {}),
+ Email: `${randomString(8)}@example.com`,
+ FirstName: randomString(6),
+ LastName: randomString(6),
+ NickName: randomString(6),
+ Gender: Math.random() > 0.5 ? Gender.Male : Gender.Female,
+ BirthDate: '0001-01-01 00:00:00',
+ };
+
+ setCredential(updatedCredential);
+
+ return updatedCredential as Credential;
};
const handleSave = async () => {
try {
setIsLoading(true);
+
+ let credentialToSave = credential as Credential;
+
+ // If mode is random, generate random values for all fields before saving.
+ // TODO: replace this with actual identity generator logic.
+ if (mode === 'random') {
+ console.log('Generating random values');
+ credentialToSave = generateRandomValues();
+ }
+
// Always use createCredential since updateCredentialById doesn't exist
- await dbContext.sqliteClient!.createCredential(credential as Credential);
+ await dbContext.sqliteClient!.createCredential(credentialToSave);
Toast.show({
type: 'success',
text1: 'Credential saved successfully',
@@ -126,12 +168,6 @@ export default function AddEditCredentialScreen() {
}));
};
- const headerButtons = [{
- icon: 'save' as const,
- position: 'right' as const,
- onPress: handleSave
- }];
-
const styles = StyleSheet.create({
container: {
flex: 1,
@@ -247,6 +283,9 @@ export default function AddEditCredentialScreen() {
placeholder="Service URL"
placeholderTextColor={colors.textMuted}
value={credential.ServiceUrl}
+ autoCapitalize="none"
+ autoComplete="off"
+ autoCorrect={false}
onChangeText={(text) => setCredential(prev => ({ ...prev, ServiceUrl: text }))}
/>
</View>
diff --git a/mobile-app/ios/NativeVaultManager/RCTNativeVaultManager.mm b/mobile-app/ios/NativeVaultManager/RCTNativeVaultManager.mm
index 452626b01..2bb9f7a8e 100644
--- a/mobile-app/ios/NativeVaultManager/RCTNativeVaultManager.mm
+++ b/mobile-app/ios/NativeVaultManager/RCTNativeVaultManager.mm
@@ -56,6 +56,18 @@
[vaultManager executeUpdate:query params:params resolver:resolve rejecter:reject];
}
+- (void)beginTransaction:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject {
+ [vaultManager beginTransaction:resolve rejecter:reject];
+}
+
+- (void)commitTransaction:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject {
+ [vaultManager commitTransaction:resolve rejecter:reject];
+}
+
+- (void)rollbackTransaction:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject {
+ [vaultManager rollbackTransaction:resolve rejecter:reject];
+}
+
- (void)getAuthMethods:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject {
[vaultManager getAuthMethods:resolve rejecter:reject];
}
diff --git a/mobile-app/ios/NativeVaultManager/VaultManager.swift b/mobile-app/ios/NativeVaultManager/VaultManager.swift
index a8fc24da9..03b773337 100644
--- a/mobile-app/ios/NativeVaultManager/VaultManager.swift
+++ b/mobile-app/ios/NativeVaultManager/VaultManager.swift
@@ -74,9 +74,21 @@ public class VaultManager: NSObject {
resolver resolve: @escaping RCTPromiseResolveBlock,
rejecter reject: @escaping RCTPromiseRejectBlock) {
do {
- // Convert all params to strings
+ // Parse all params to the correct type
let bindingParams = params.map { param -> Binding? in
- return String(describing: param)
+ if param is NSNull {
+ return nil
+ } else if let value = param as? String {
+ return value
+ } else if let value = param as? NSNumber {
+ return "\(value)"
+ } else if let value = param as? Bool {
+ return value ? "1" : "0"
+ } else if let value = param as? Data {
+ return value.base64EncodedString()
+ } else {
+ return String(describing: param)
+ }
}
// Execute the query through the vault store
@@ -93,9 +105,21 @@ public class VaultManager: NSObject {
resolver resolve: @escaping RCTPromiseResolveBlock,
rejecter reject: @escaping RCTPromiseRejectBlock) {
do {
- // Convert all params to strings
+ // Parse all params to the correct type
let bindingParams = params.map { param -> Binding? in
- return String(describing: param)
+ if param is NSNull {
+ return nil
+ } else if let value = param as? String {
+ return value
+ } else if let value = param as? NSNumber {
+ return "\(value)"
+ } else if let value = param as? Bool {
+ return value ? "1" : "0"
+ } else if let value = param as? Data {
+ return value.base64EncodedString()
+ } else {
+ return String(describing: param)
+ }
}
// Execute the update through the vault store
@@ -237,6 +261,39 @@ public class VaultManager: NSObject {
}
}
+ @objc
+ func beginTransaction(_ resolve: @escaping RCTPromiseResolveBlock,
+ rejecter reject: @escaping RCTPromiseRejectBlock) {
+ do {
+ try vaultStore.beginTransaction()
+ resolve(nil)
+ } catch {
+ reject("TRANSACTION_ERROR", "Failed to begin transaction: \(error.localizedDescription)", error)
+ }
+ }
+
+ @objc
+ func commitTransaction(_ resolve: @escaping RCTPromiseResolveBlock,
+ rejecter reject: @escaping RCTPromiseRejectBlock) {
+ do {
+ try vaultStore.commitTransaction()
+ resolve(nil)
+ } catch {
+ reject("TRANSACTION_ERROR", "Failed to commit transaction: \(error.localizedDescription)", error)
+ }
+ }
+
+ @objc
+ func rollbackTransaction(_ resolve: @escaping RCTPromiseResolveBlock,
+ rejecter reject: @escaping RCTPromiseRejectBlock) {
+ do {
+ try vaultStore.rollbackTransaction()
+ resolve(nil)
+ } catch {
+ reject("TRANSACTION_ERROR", "Failed to rollback transaction: \(error.localizedDescription)", error)
+ }
+ }
+
@objc
static func moduleName() -> String! {
return "VaultManager"
diff --git a/mobile-app/ios/Podfile.lock b/mobile-app/ios/Podfile.lock
index 0d73d344d..7a42d8bca 100644
--- a/mobile-app/ios/Podfile.lock
+++ b/mobile-app/ios/Podfile.lock
@@ -7,7 +7,7 @@ PODS:
- EXJSONUtils (0.14.0)
- EXManifests (0.15.8):
- ExpoModulesCore
- - Expo (52.0.44):
+ - Expo (52.0.46):
- ExpoModulesCore
- expo-dev-client (5.0.20):
- EXManifests
@@ -261,7 +261,7 @@ PODS:
- Yoga
- ExpoSharing (13.0.1):
- ExpoModulesCore
- - ExpoSplashScreen (0.29.22):
+ - ExpoSplashScreen (0.29.24):
- ExpoModulesCore
- ExpoSQLite (15.1.4):
- ExpoModulesCore
@@ -1951,7 +1951,7 @@ PODS:
- RNArgon2 (2.0.1):
- CatCrypto
- React-Core
- - RNCAsyncStorage (2.1.2):
+ - RNCAsyncStorage (1.23.1):
- DoubleConversion
- glog
- hermes-engine
@@ -2125,7 +2125,7 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- - RNSVG (15.11.2):
+ - RNSVG (15.8.0):
- DoubleConversion
- glog
- hermes-engine
@@ -2145,9 +2145,9 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- - RNSVG/common (= 15.11.2)
+ - RNSVG/common (= 15.8.0)
- Yoga
- - RNSVG/common (15.11.2):
+ - RNSVG/common (15.8.0):
- DoubleConversion
- glog
- hermes-engine
@@ -2505,7 +2505,7 @@ SPEC CHECKSUMS:
EXConstants: fcfc75800824ac2d5c592b5bc74130bad17b146b
EXJSONUtils: 01fc7492b66c234e395dcffdd5f53439c5c29c93
EXManifests: a19d50504b8826546a4782770317bc83fffec87d
- Expo: 75e002fc29a18a72aa3db967b41b29c2b206875d
+ Expo: a6ff273c618506b12129a0d06f2a08201bfbcf43
expo-dev-client: db44302cdbe0ec55b0ef1849c9a23a76dec6dbac
expo-dev-launcher: 792cd1c83fbec4a1a66fe91a0c283368dbad851c
expo-dev-menu: dd3197d2b0107ee036ffd85f95e75a950ab52ada
@@ -2522,7 +2522,7 @@ SPEC CHECKSUMS:
ExpoLocalAuthentication: eb2be9c7bcdc68e9434d4be4bb5aa5cf7943e816
ExpoModulesCore: c25d77625038b1968ea1afefc719862c0d8dd993
ExpoSharing: 849a5ce9985c22598c16ec027e32969be8062e8e
- ExpoSplashScreen: 0f281e3c2ded4757d2309276c682d023c6299c77
+ ExpoSplashScreen: 8261985ce9778f904abc7e31bed3538dce67ed4d
ExpoSQLite: 10fceac6748e9e8f010c70733e0e704fa67399ab
ExpoSymbols: f3002db15156cd4e505c77b6ea1df5c984db9965
ExpoSystemUI: b82a45cf0f6a4fa18d07c46deba8725dd27688b4
@@ -2598,11 +2598,11 @@ SPEC CHECKSUMS:
ReactCodegen: 2d0e7b1f3872ef06eccd1185362d465e03eb86fe
ReactCommon: 300d8d9c5cb1a6cd79a67cf5d8f91e4d477195f9
RNArgon2: 708e188b7a4d4ec8baf62463927c47abef453a94
- RNCAsyncStorage: ab0ad9a78ead8b9f143f0238a5aa535777b12e65
+ RNCAsyncStorage: 66991bb6672ed988a8c56289a08bf4fc3a29d4b3
RNGestureHandler: fffddeb8af59709c6d8de11b6461a6af63cad532
RNReanimated: 2e5069649cbab2c946652d3b97589b2ae0526220
RNScreens: 362f4c861dd155f898908d5035d97b07a3f1a9d1
- RNSVG: 3a1cce2e940268a7d3554e3cf2bbd2195871f4fe
+ RNSVG: b889dc9c1948eeea0576a16cc405c91c37a12c19
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
SQLite.swift: 2992550ebf3c5b268bf4352603e3df87d2a4ed72
SWXMLHash: dd733a457e9c4fe93b1538654057aefae4acb382
diff --git a/mobile-app/ios/VaultStoreKit/VaultStoreKit.swift b/mobile-app/ios/VaultStoreKit/VaultStoreKit.swift
index 0c3a5e28f..434cf6eee 100644
--- a/mobile-app/ios/VaultStoreKit/VaultStoreKit.swift
+++ b/mobile-app/ios/VaultStoreKit/VaultStoreKit.swift
@@ -634,6 +634,27 @@ public class VaultStore {
return results
}
+ public func beginTransaction() throws {
+ guard let db = db else {
+ throw NSError(domain: "VaultStore", code: 4, userInfo: [NSLocalizedDescriptionKey: "Database not initialized"])
+ }
+ try db.execute("BEGIN TRANSACTION")
+ }
+
+ public func commitTransaction() throws {
+ guard let db = db else {
+ throw NSError(domain: "VaultStore", code: 4, userInfo: [NSLocalizedDescriptionKey: "Database not initialized"])
+ }
+ try db.execute("COMMIT")
+ }
+
+ public func rollbackTransaction() throws {
+ guard let db = db else {
+ throw NSError(domain: "VaultStore", code: 4, userInfo: [NSLocalizedDescriptionKey: "Database not initialized"])
+ }
+ try db.execute("ROLLBACK")
+ }
+
public func executeUpdate(_ query: String, params: [Binding?]) throws -> Int {
guard let db = db else {
throw NSError(domain: "VaultStore", code: 4, userInfo: [NSLocalizedDescriptionKey: "Database not initialized"])
diff --git a/mobile-app/ios/aliasvault.xcodeproj/project.pbxproj b/mobile-app/ios/aliasvault.xcodeproj/project.pbxproj
index b60ddc9e0..d01cf4665 100644
--- a/mobile-app/ios/aliasvault.xcodeproj/project.pbxproj
+++ b/mobile-app/ios/aliasvault.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 70;
+ objectVersion = 60;
objects = {
/* Begin PBXBuildFile section */
@@ -208,7 +208,7 @@
/* End PBXFileReference section */
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
- CEE9098F2DA548C7008D568F /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {
+ CEE9098F2DA548C7008D568F /* Exceptions for "Autofill" folder in "Autofill" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Info.plist,
@@ -218,12 +218,73 @@
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
/* Begin PBXFileSystemSynchronizedRootGroup section */
- CEE480882DBE86DC00F4A367 /* VaultStoreKit */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = VaultStoreKit; sourceTree = "<group>"; };
- CEE480972DBE86DD00F4A367 /* VaultStoreKitTests */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = VaultStoreKitTests; sourceTree = "<group>"; };
- CEE4816B2DBE8AC800F4A367 /* VaultUI */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = VaultUI; sourceTree = "<group>"; };
- CEE4817A2DBE8AC800F4A367 /* VaultUITests */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = VaultUITests; sourceTree = "<group>"; };
- CEE482AB2DBE8EFE00F4A367 /* VaultModels */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = VaultModels; sourceTree = "<group>"; };
- CEE909812DA548C7008D568F /* Autofill */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (CEE9098F2DA548C7008D568F /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = Autofill; sourceTree = "<group>"; };
+ CEE480882DBE86DC00F4A367 /* VaultStoreKit */ = {
+ isa = PBXFileSystemSynchronizedRootGroup;
+ exceptions = (
+ );
+ explicitFileTypes = {
+ };
+ explicitFolders = (
+ );
+ path = VaultStoreKit;
+ sourceTree = "<group>";
+ };
+ CEE480972DBE86DD00F4A367 /* VaultStoreKitTests */ = {
+ isa = PBXFileSystemSynchronizedRootGroup;
+ exceptions = (
+ );
+ explicitFileTypes = {
+ };
+ explicitFolders = (
+ );
+ path = VaultStoreKitTests;
+ sourceTree = "<group>";
+ };
+ CEE4816B2DBE8AC800F4A367 /* VaultUI */ = {
+ isa = PBXFileSystemSynchronizedRootGroup;
+ exceptions = (
+ );
+ explicitFileTypes = {
+ };
+ explicitFolders = (
+ );
+ path = VaultUI;
+ sourceTree = "<group>";
+ };
+ CEE4817A2DBE8AC800F4A367 /* VaultUITests */ = {
+ isa = PBXFileSystemSynchronizedRootGroup;
+ exceptions = (
+ );
+ explicitFileTypes = {
+ };
+ explicitFolders = (
+ );
+ path = VaultUITests;
+ sourceTree = "<group>";
+ };
+ CEE482AB2DBE8EFE00F4A367 /* VaultModels */ = {
+ isa = PBXFileSystemSynchronizedRootGroup;
+ exceptions = (
+ );
+ explicitFileTypes = {
+ };
+ explicitFolders = (
+ );
+ path = VaultModels;
+ sourceTree = "<group>";
+ };
+ CEE909812DA548C7008D568F /* Autofill */ = {
+ isa = PBXFileSystemSynchronizedRootGroup;
+ exceptions = (
+ CEE9098F2DA548C7008D568F /* Exceptions for "Autofill" folder in "Autofill" target */,
+ );
+ explicitFileTypes = {
+ };
+ explicitFolders = (
+ );
+ path = Autofill;
+ sourceTree = "<group>";
+ };
/* End PBXFileSystemSynchronizedRootGroup section */
/* Begin PBXFrameworksBuildPhase section */
@@ -789,7 +850,6 @@
"${PODS_CONFIGURATION_BUILD_DIR}/ExpoSystemUI/ExpoSystemUI_privacy.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/RCT-Folly/RCT-Folly_privacy.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/RNCAsyncStorage/RNCAsyncStorage_resources.bundle",
- "${PODS_CONFIGURATION_BUILD_DIR}/RNSVG/RNSVGFilters.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/React-Core_privacy.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/React-cxxreact/React-cxxreact_privacy.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/boost/boost_privacy.bundle",
@@ -805,7 +865,6 @@
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoSystemUI_privacy.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCT-Folly_privacy.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RNCAsyncStorage_resources.bundle",
- "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RNSVGFilters.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-Core_privacy.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-cxxreact_privacy.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/boost_privacy.bundle",
@@ -1211,7 +1270,10 @@
LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\"";
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
- OTHER_LDFLAGS = "$(inherited) ";
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ " ",
+ );
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
@@ -1266,7 +1328,10 @@
);
LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\"";
MTL_ENABLE_DEBUG_INFO = NO;
- OTHER_LDFLAGS = "$(inherited) ";
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ " ",
+ );
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
@@ -1282,10 +1347,8 @@
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
@@ -1336,10 +1399,8 @@
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
@@ -1388,10 +1449,8 @@
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
@@ -1424,10 +1483,8 @@
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
@@ -1460,10 +1517,8 @@
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
@@ -1514,10 +1569,8 @@
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
@@ -1566,10 +1619,8 @@
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
@@ -1602,10 +1653,8 @@
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
@@ -1637,10 +1686,8 @@
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
@@ -1690,10 +1737,8 @@
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
@@ -1742,11 +1787,9 @@
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = autofill/autofill.entitlements;
CODE_SIGN_STYLE = Automatic;
@@ -1788,11 +1831,9 @@
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = autofill/autofill.entitlements;
CODE_SIGN_STYLE = Automatic;
diff --git a/mobile-app/package-lock.json b/mobile-app/package-lock.json
index 81b181485..109deda90 100644
--- a/mobile-app/package-lock.json
+++ b/mobile-app/package-lock.json
@@ -9,11 +9,11 @@
"version": "1.0.0",
"dependencies": {
"@expo/vector-icons": "^14.0.2",
- "@react-native-async-storage/async-storage": "^2.1.2",
+ "@react-native-async-storage/async-storage": "1.23.1",
"@react-navigation/bottom-tabs": "^7.2.0",
"@react-navigation/native": "^7.0.14",
"@types/jsrsasign": "^10.5.15",
- "expo": "~52.0.43",
+ "expo": "~52.0.46",
"expo-blur": "~14.0.3",
"expo-clipboard": "^7.0.1",
"expo-constants": "~17.0.8",
@@ -25,7 +25,7 @@
"expo-modules-core": "~2.2.3",
"expo-router": "~4.0.20",
"expo-sharing": "~13.0.1",
- "expo-splash-screen": "~0.29.22",
+ "expo-splash-screen": "~0.29.24",
"expo-sqlite": "~15.1.4",
"expo-status-bar": "~2.0.1",
"expo-symbols": "~0.2.2",
@@ -44,7 +44,7 @@
"react-native-reanimated": "~3.16.1",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "~4.4.0",
- "react-native-svg": "^15.11.2",
+ "react-native-svg": "15.8.0",
"react-native-toast-message": "^2.2.1",
"react-native-web": "~0.19.13",
"react-native-webview": "13.12.5",
@@ -2289,9 +2289,9 @@
}
},
"node_modules/@expo/cli": {
- "version": "0.22.24",
- "resolved": "https://registry.npmjs.org/@expo/cli/-/cli-0.22.24.tgz",
- "integrity": "sha512-lhdenxBC8/x/vL39j79eXE09mOaqNNLmiSDdY/PblnI+UNzGgsQ48hBTYa/MQhd0ioXXVKurZL2941dLKwcxJw==",
+ "version": "0.22.26",
+ "resolved": "https://registry.npmjs.org/@expo/cli/-/cli-0.22.26.tgz",
+ "integrity": "sha512-I689wc8Fn/AX7aUGiwrh3HnssiORMJtR2fpksX+JIe8Cj/EDleblYMSwRPd0025wrwOV9UN1KM/RuEt/QjCS3Q==",
"license": "MIT",
"dependencies": {
"@0no-co/graphql.web": "^1.0.8",
@@ -2307,7 +2307,7 @@
"@expo/osascript": "^2.1.6",
"@expo/package-manager": "^1.7.2",
"@expo/plist": "^0.2.2",
- "@expo/prebuild-config": "^8.0.31",
+ "@expo/prebuild-config": "~8.2.0",
"@expo/rudder-sdk-node": "^1.1.1",
"@expo/spawn-async": "^1.7.2",
"@expo/ws-tunnel": "^1.0.1",
@@ -2752,9 +2752,9 @@
}
},
"node_modules/@expo/prebuild-config": {
- "version": "8.0.31",
- "resolved": "https://registry.npmjs.org/@expo/prebuild-config/-/prebuild-config-8.0.31.tgz",
- "integrity": "sha512-YTuS5ic9KolD/WA3GqgLcZytHQU1dpitlZ/cbDq8ZqkY+1ae5YWX+GkYEZf2VyECPaWnHYuDGddaTQVw5miTRg==",
+ "version": "8.2.0",
+ "resolved": "https://registry.npmjs.org/@expo/prebuild-config/-/prebuild-config-8.2.0.tgz",
+ "integrity": "sha512-CxiPpd980s0jyxi7eyN3i/7YKu3XL+8qPjBZUCYtc0+axpGweqIkq2CslyLSKHyqVyH/zlPkbVgWdyiYavFS5Q==",
"license": "MIT",
"dependencies": {
"@expo/config": "~10.0.11",
@@ -3594,15 +3594,15 @@
}
},
"node_modules/@react-native-async-storage/async-storage": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-2.1.2.tgz",
- "integrity": "sha512-dvlNq4AlGWC+ehtH12p65+17V0Dx7IecOWl6WanF2ja38O1Dcjjvn7jVzkUHJ5oWkQBlyASurTPlTHgKXyYiow==",
+ "version": "1.23.1",
+ "resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.23.1.tgz",
+ "integrity": "sha512-Qd2kQ3yi6Y3+AcUlrHxSLlnBvpdCEMVGFlVBneVOjaFaPU61g1huc38g339ysXspwY1QZA2aNhrk/KlHGO+ewA==",
"license": "MIT",
"dependencies": {
"merge-options": "^3.0.4"
},
"peerDependencies": {
- "react-native": "^0.0.0-0 || >=0.65 <1.0"
+ "react-native": "^0.0.0-0 || >=0.60 <1.0"
}
},
"node_modules/@react-native/assets-registry": {
@@ -7384,13 +7384,13 @@
}
},
"node_modules/expo": {
- "version": "52.0.44",
- "resolved": "https://registry.npmjs.org/expo/-/expo-52.0.44.tgz",
- "integrity": "sha512-qj3+MWxmqLyBaYQ8jDOvVLEgSqNplH3cf+nDhxCo4C1cpTPD1u/HGh1foibtaeuCYLHsE5km1lrcOpRbFJ4luQ==",
+ "version": "52.0.46",
+ "resolved": "https://registry.npmjs.org/expo/-/expo-52.0.46.tgz",
+ "integrity": "sha512-JG89IVZLp7DWzgeiQb+0N43kWOF1DUm3esBvAS9cPFWZsM9x8nDXgbvtREcycDPA6E+yJsSC+086CigeUY6sVA==",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.20.0",
- "@expo/cli": "0.22.24",
+ "@expo/cli": "0.22.26",
"@expo/config": "~10.0.11",
"@expo/config-plugins": "~9.0.17",
"@expo/fingerprint": "0.11.11",
@@ -7770,12 +7770,12 @@
}
},
"node_modules/expo-splash-screen": {
- "version": "0.29.22",
- "resolved": "https://registry.npmjs.org/expo-splash-screen/-/expo-splash-screen-0.29.22.tgz",
- "integrity": "sha512-f+bPpF06bqiuW1Fbrd3nxeaSsmTVTBEKEYe3epYt4IE6y4Ulli3qEUamMLlRQiDGuIXPU6zQlscpy2mdBUI5cA==",
+ "version": "0.29.24",
+ "resolved": "https://registry.npmjs.org/expo-splash-screen/-/expo-splash-screen-0.29.24.tgz",
+ "integrity": "sha512-k2rdjbb3Qeg4g104Sdz6+qXXYba8QgiuZRSxHX8IpsSYiiTU48BmCCGy12sN+O1B+sD1/+WPL4duCa1Fy6+Y4g==",
"license": "MIT",
"dependencies": {
- "@expo/prebuild-config": "^8.0.27"
+ "@expo/prebuild-config": "~8.2.0"
},
"peerDependencies": {
"expo": "*"
@@ -12968,9 +12968,9 @@
}
},
"node_modules/react-native-svg": {
- "version": "15.11.2",
- "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-15.11.2.tgz",
- "integrity": "sha512-+YfF72IbWQUKzCIydlijV1fLuBsQNGMT6Da2kFlo1sh+LE3BIm/2Q7AR1zAAR6L0BFLi1WaQPLfFUC9bNZpOmw==",
+ "version": "15.8.0",
+ "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-15.8.0.tgz",
+ "integrity": "sha512-KHJzKpgOjwj1qeZzsBjxNdoIgv2zNCO9fVcoq2TEhTRsVV5DGTZ9JzUZwybd7q4giT/H3RdtqC3u44dWdO0Ffw==",
"license": "MIT",
"dependencies": {
"css-select": "^5.1.0",
diff --git a/mobile-app/package.json b/mobile-app/package.json
index 8c01a03d6..f750e1b72 100644
--- a/mobile-app/package.json
+++ b/mobile-app/package.json
@@ -29,11 +29,11 @@
},
"dependencies": {
"@expo/vector-icons": "^14.0.2",
- "@react-native-async-storage/async-storage": "^2.1.2",
+ "@react-native-async-storage/async-storage": "1.23.1",
"@react-navigation/bottom-tabs": "^7.2.0",
"@react-navigation/native": "^7.0.14",
"@types/jsrsasign": "^10.5.15",
- "expo": "~52.0.43",
+ "expo": "~52.0.46",
"expo-blur": "~14.0.3",
"expo-clipboard": "^7.0.1",
"expo-constants": "~17.0.8",
@@ -44,7 +44,7 @@
"expo-local-authentication": "~15.0.2",
"expo-router": "~4.0.20",
"expo-sharing": "~13.0.1",
- "expo-splash-screen": "~0.29.22",
+ "expo-splash-screen": "~0.29.24",
"expo-sqlite": "~15.1.4",
"expo-status-bar": "~2.0.1",
"expo-symbols": "~0.2.2",
@@ -63,7 +63,7 @@
"react-native-reanimated": "~3.16.1",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "~4.4.0",
- "react-native-svg": "^15.11.2",
+ "react-native-svg": "15.8.0",
"react-native-toast-message": "^2.2.1",
"react-native-web": "~0.19.13",
"react-native-webview": "13.12.5",
diff --git a/mobile-app/specs/NativeVaultManager.ts b/mobile-app/specs/NativeVaultManager.ts
index 0cd628242..f7b00e988 100644
--- a/mobile-app/specs/NativeVaultManager.ts
+++ b/mobile-app/specs/NativeVaultManager.ts
@@ -21,6 +21,9 @@ export interface Spec extends TurboModule {
// SQL operations
executeQuery(query: string, params: any[]): Promise<any[]>;
executeUpdate(query: string, params: any[]): Promise<number>;
+ beginTransaction(): Promise<void>;
+ commitTransaction(): Promise<void>;
+ rollbackTransaction(): Promise<void>;
// Auto-lock settings
setAutoLockTimeout(timeout: number): Promise<void>;
diff --git a/mobile-app/utils/SqliteClient.tsx b/mobile-app/utils/SqliteClient.tsx
index ff00b784e..9f04f8d39 100644
--- a/mobile-app/utils/SqliteClient.tsx
+++ b/mobile-app/utils/SqliteClient.tsx
@@ -289,7 +289,7 @@ class SqliteClient {
*/
public async createCredential(credential: Credential): Promise<number> {
try {
- await this.executeUpdate('BEGIN TRANSACTION');
+ await NativeVaultManager.beginTransaction();
// 1. Insert Service
let logoData = null;
@@ -310,8 +310,8 @@ class SqliteClient {
}
const serviceQuery = `
- INSERT INTO Services (Id, Name, Url, Logo, CreatedAt, UpdatedAt)
- VALUES (?, ?, ?, ?, ?, ?)`;
+ INSERT INTO Services (Id, Name, Url, Logo, CreatedAt, UpdatedAt, IsDeleted)
+ VALUES (?, ?, ?, ?, ?, ?, ?)`;
const serviceId = crypto.randomUUID().toUpperCase();
const currentDateTime = new Date().toISOString()
.replace('T', ' ')
@@ -323,13 +323,14 @@ class SqliteClient {
credential.ServiceUrl ?? null,
logoData,
currentDateTime,
- currentDateTime
+ currentDateTime,
+ 0
]);
// 2. Insert Alias
const aliasQuery = `
- INSERT INTO Aliases (Id, FirstName, LastName, NickName, BirthDate, Gender, Email, CreatedAt, UpdatedAt)
- VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`;
+ INSERT INTO Aliases (Id, FirstName, LastName, NickName, BirthDate, Gender, Email, CreatedAt, UpdatedAt, IsDeleted)
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`;
const aliasId = crypto.randomUUID().toUpperCase();
await this.executeUpdate(aliasQuery, [
aliasId,
@@ -340,13 +341,14 @@ class SqliteClient {
credential.Alias.Gender ?? null,
credential.Alias.Email ?? null,
currentDateTime,
- currentDateTime
+ currentDateTime,
+ 0
]);
// 3. Insert Credential
const credentialQuery = `
- INSERT INTO Credentials (Id, Username, Notes, ServiceId, AliasId, CreatedAt, UpdatedAt)
- VALUES (?, ?, ?, ?, ?, ?, ?)`;
+ INSERT INTO Credentials (Id, Username, Notes, ServiceId, AliasId, CreatedAt, UpdatedAt, IsDeleted)
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?)`;
const credentialId = crypto.randomUUID().toUpperCase();
await this.executeUpdate(credentialQuery, [
credentialId,
@@ -355,29 +357,44 @@ class SqliteClient {
serviceId,
aliasId,
currentDateTime,
- currentDateTime
+ currentDateTime,
+ 0
]);
// 4. Insert Password
if (credential.Password) {
const passwordQuery = `
- INSERT INTO Passwords (Id, Value, CredentialId, CreatedAt, UpdatedAt)
- VALUES (?, ?, ?, ?, ?)`;
+ INSERT INTO Passwords (Id, Value, CredentialId, CreatedAt, UpdatedAt, IsDeleted)
+ VALUES (?, ?, ?, ?, ?, ?)`;
const passwordId = crypto.randomUUID().toUpperCase();
await this.executeUpdate(passwordQuery, [
passwordId,
credential.Password,
credentialId,
currentDateTime,
- currentDateTime
+ currentDateTime,
+ 0
]);
}
- await this.executeUpdate('COMMIT');
+ await NativeVaultManager.commitTransaction();
+ console.log('Credential created successfully');
+
+ console.log('Credential ID:', credentialId);
+
+ // Can we do select query here to check if the credential was created?
+ const credential2 = await this.getCredentialById(credentialId);
+ if (!credential2) {
+ console.log('Credential could not be retrieved after creation??');
+ }
+ else {
+ console.log('Credential retrieved successfully?');
+ }
+
return 1;
} catch (error) {
- await this.executeUpdate('ROLLBACK');
+ await NativeVaultManager.rollbackTransaction();
console.error('Error creating credential:', error);
throw error;
}
diff --git a/mobile-app/utils/types/Credential.ts b/mobile-app/utils/types/Credential.ts
index 4e797e056..4d0a2d5ed 100644
--- a/mobile-app/utils/types/Credential.ts
+++ b/mobile-app/utils/types/Credential.ts
@@ -11,12 +11,17 @@ export type Credential = {
ServiceUrl?: string;
Logo?: Uint8Array | number[];
Notes?: string;
- Alias: {
- FirstName?: string;
- LastName?: string;
- NickName?: string;
- BirthDate: string;
- Gender?: Gender;
- Email?: string;
- };
+ Alias: Alias;
+}
+
+/**
+ * Alias SQLite database type.
+ */
+export type Alias = {
+ FirstName?: string;
+ LastName?: string;
+ NickName?: string;
+ BirthDate: string;
+ Gender?: Gender;
+ Email?: string;
}
\ No newline at end of file