Skip to content

Commit

Permalink
fix: removed dbencryption implementation on iOS temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
Desu Sai Venkat committed Sep 20, 2023
1 parent 171da36 commit cd9a49b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,16 @@ - (RSConfig*)getRudderConfigObject:(NSDictionary*)configDict {
[configBuilder withDataResidencyServer:EU];
}

if([configDict objectForKey:@"dbEncryption"]) {
NSDictionary* dbEncryptionDict = [configDict objectForKey:@"dbEncryption"];
BOOL enabled = [[dbEncryptionDict objectForKey:@"enabled"] boolValue];
NSString* encryptionKey = [dbEncryptionDict objectForKey:@"key"];
// to be implemented in future
// if([configDict objectForKey:@"dbEncryption"]) {
// NSDictionary* dbEncryptionDict = [configDict objectForKey:@"dbEncryption"];
// BOOL enabled = [[dbEncryptionDict objectForKey:@"enabled"] boolValue];
// NSString* encryptionKey = [dbEncryptionDict objectForKey:@"key"];

if (encryptionKey != nil && [encryptionKey length] != 0) {
[configBuilder withDBEncryption:[[RSDBEncryption alloc] initWithKey:encryptionKey enable:enabled]];
}
}
// if (encryptionKey != nil && [encryptionKey length] != 0) {
// [configBuilder withDBEncryption:[[RSDBEncryption alloc] initWithKey:encryptionKey enable:enabled]];
// }
// }

if (integrationList != nil) {
for (id<RSIntegrationFactory> integration in integrationList) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RudderStack flutter SDK ios plugin project
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency "Rudder", '>= 1.19.2', '< 2.0.0'
s.dependency "Rudder", '>= 1.20.0', '< 2.0.0'
s.platform = :ios, '8.0'

# Flutter.framework does not contain a i386 slice.
Expand Down

0 comments on commit cd9a49b

Please sign in to comment.