Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to provide SQLCipher license key #3807

Merged
merged 6 commits into from
Jan 22, 2025
Merged

Conversation

wmathurin
Copy link
Contributor

@wmathurin wmathurin commented Jan 17, 2025

Needed in order to use commercial or enterprise editions of SQLCipher.

Testing

  • Put the SQLCipher.xcframework (and openssl.xcframework) for SQLCipher commercial or enterprise edition in the SmartStore project
  • Change libs/SmartStore/SmartStoreTestApp/AppDelegate.m b/libs/SmartStore/SmartStoreTestApp/AppDelegate.m
#import "AppDelegate.h"
**#import <SmartStore/SmartStore.h>**

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    [SFSmartStore setLicenseKey:@"--YOUR-SQLCIPHER-LICENSE-KEY--"];
    return YES;
}

Expected Result

Only the testSQLCipherVersion should fail, it will report the SQLCipher edition you are using instead of community e.g.

SFSmartStoreTests.m:115: ((version) equal to (@"4.6.1 community")) failed: ("4.6.1 FIPS zetetic") is not equal to ("4.6.1 community")

@wmathurin wmathurin merged commit 0e8ce5e into forcedotcom:dev Jan 22, 2025
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants