8000 [FSSDK-8740] Add odp functionalities for rn (#839) · chrisvaf/javascript-sdk@2f892be · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f892be

Browse files
[FSSDK-8740] Add odp functionalities for rn (optimizely#839)
* Add odp for rn * Update copyright
1 parent b83a884 commit 2f892be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/optimizely-sdk/lib/index.react_native.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019-2022 Optimizely
2+
* Copyright 2019-2023, Optimizely
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,6 +33,7 @@ import { createEventProcessor } from './plugins/event_processor/index.react_nati
3333
import { OptimizelyDecideOption, Client, Config } from './shared_types';
3434
import { createHttpPollingDatafileManager } from
3535
'./plugins/datafile_manager/react_native_http_polling_datafile_manager';
36+
import { BrowserOdpManager } from './plugins/odp_manager/index.browser';
3637

3738
const logger = getLogger();
3839
setLogHandler(loggerPlugin.createLogger());
@@ -111,6 +112,7 @@ const createInstance = function(config: Config): Client | null {
111112
datafileManager: config.sdkKey ? createHttpPollingDatafileManager(config.sdkKey, logger, config.datafile, config.datafileOptions) : undefined,
112113
notificationCenter,
113114
isValidInstance: isValidInstance,
115+
odpManager: new BrowserOdpManager({ logger, odpOptions: config.odpOptions }),
114116
};
115117

116118
// If client engine is react, convert it to react native.

0 commit comments

Comments
 (0)
0