Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
chore: update rn and rn sdk versions. set default flag type to bool. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yusinto authored Sep 19, 2023
1 parent f428235 commit 83e47cd
Show file tree
Hide file tree
Showing 9 changed files with 3,804 additions and 4,326 deletions.
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @kinyoklion @yusinto @louis-launchdarkly @tanderson-ld
* @yusinto @louis-launchdarkly @tanderson-ld
14 changes: 5 additions & 9 deletions ManualTestApp/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const Wrapper = ({ children }: { children: ReactNode }) => {

const Body = () => {
const [client, setClient] = useState<LDClient | null>(null);
const [flagKey, setFlagKey] = useState('dev-test-flag1');
const [flagType, setFlagType] = useState('number');
const [flagKey, setFlagKey] = useState('dev-test-flag');
const [flagType, setFlagType] = useState('bool');
const [isOffline, setIsOffline] = useState(false);
const [contextKey, setContextKey] = useState('context-key');
const [listenerKey, setListenerKey] = useState('');
Expand All @@ -39,17 +39,13 @@ const Body = () => {
version: '0.0.1',
},
};
const anonymousUserContext = {
const userContext = {
kind: 'user',
key: 'user-key-1',
anonymous: true,
key: 'test-key',
};

// A multi-context can contain both anonymous and non-anonymous contexts.
// Here, organization is not anonymous.
const multiContext: LDMultiKindContext = {
kind: 'multi',
user: anonymousUserContext,
user: userContext,
org: {
key: 'org-key',
name: 'Example organization name',
Expand Down
32 changes: 16 additions & 16 deletions ManualTestApp/ios/ManualTestApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@
objects = {

/* Begin PBXBuildFile section */
0C5DA1350C9F01C869E9DE89 /* libPods-ManualTestApp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DAB74D65B7D0287240B580B2 /* libPods-ManualTestApp.a */; };
13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
743196CED3D77B75105D5AA0 /* libPods-ManualTestApp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D937B6AF77F68034A6BD038 /* libPods-ManualTestApp.a */; };
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
0AF6B24BD5CCC6461808EB83 /* Pods-ManualTestApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ManualTestApp.release.xcconfig"; path = "Target Support Files/Pods-ManualTestApp/Pods-ManualTestApp.release.xcconfig"; sourceTree = "<group>"; };
13B07F961A680F5B00A75B9A /* ManualTestApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ManualTestApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ManualTestApp/AppDelegate.h; sourceTree = "<group>"; };
13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ManualTestApp/AppDelegate.m; sourceTree = "<group>"; };
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ManualTestApp/Images.xcassets; sourceTree = "<group>"; };
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ManualTestApp/Info.plist; sourceTree = "<group>"; };
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ManualTestApp/main.m; sourceTree = "<group>"; };
7D937B6AF77F68034A6BD038 /* libPods-ManualTestApp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ManualTestApp.a"; sourceTree = BUILT_PRODUCTS_DIR; };
425BC176136637FB41A21437 /* Pods-ManualTestApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ManualTestApp.debug.xcconfig"; path = "Target Support Files/Pods-ManualTestApp/Pods-ManualTestApp.debug.xcconfig"; sourceTree = "<group>"; };
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ManualTestApp/LaunchScreen.storyboard; sourceTree = "<group>"; };
B1DE77EF3F31D91853CA4080 /* Pods-ManualTestApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ManualTestApp.debug.xcconfig"; path = "Target Support Files/Pods-ManualTestApp/Pods-ManualTestApp.debug.xcconfig"; sourceTree = "<group>"; };
B73C403206EE31E26D6844D3 /* Pods-ManualTestApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ManualTestApp.release.xcconfig"; path = "Target Support Files/Pods-ManualTestApp/Pods-ManualTestApp.release.xcconfig"; sourceTree = "<group>"; };
DAB74D65B7D0287240B580B2 /* libPods-ManualTestApp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ManualTestApp.a"; sourceTree = BUILT_PRODUCTS_DIR; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */

Expand All @@ -33,7 +33,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
743196CED3D77B75105D5AA0 /* libPods-ManualTestApp.a in Frameworks */,
0C5DA1350C9F01C869E9DE89 /* libPods-ManualTestApp.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -57,16 +57,16 @@
isa = PBXGroup;
children = (
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
7D937B6AF77F68034A6BD038 /* libPods-ManualTestApp.a */,
DAB74D65B7D0287240B580B2 /* libPods-ManualTestApp.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
7F649E4EEFE2FB4CD7ED4A8A /* Pods */ = {
isa = PBXGroup;
children = (
B1DE77EF3F31D91853CA4080 /* Pods-ManualTestApp.debug.xcconfig */,
B73C403206EE31E26D6844D3 /* Pods-ManualTestApp.release.xcconfig */,
425BC176136637FB41A21437 /* Pods-ManualTestApp.debug.xcconfig */,
0AF6B24BD5CCC6461808EB83 /* Pods-ManualTestApp.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
Expand Down Expand Up @@ -107,14 +107,14 @@
isa = PBXNativeTarget;
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ManualTestApp" */;
buildPhases = (
2E3167E3790470C496D2DE4D /* [CP] Check Pods Manifest.lock */,
03C554345316A906BD309D5B /* [CP] Check Pods Manifest.lock */,
FD10A7F022414F080027D42C /* Start Packager */,
13B07F871A680F5B00A75B9A /* Sources */,
13B07F8C1A680F5B00A75B9A /* Frameworks */,
13B07F8E1A680F5B00A75B9A /* Resources */,
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
CA32B08E40102D7A14CDEACA /* [CP] Embed Pods Frameworks */,
7188AA91FE4353591A79A6A1 /* [CP] Copy Pods Resources */,
AEB83BB41F42231C825E64DF /* [CP] Embed Pods Frameworks */,
8DC9CC083148CCDF275173B3 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -183,7 +183,7 @@
shellPath = /bin/sh;
shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n";
};
2E3167E3790470C496D2DE4D /* [CP] Check Pods Manifest.lock */ = {
03C554345316A906BD309D5B /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -205,7 +205,7 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
7188AA91FE4353591A79A6A1 /* [CP] Copy Pods Resources */ = {
8DC9CC083148CCDF275173B3 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -222,7 +222,7 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ManualTestApp/Pods-ManualTestApp-resources.sh\"\n";
showEnvVarsInLog = 0;
};
CA32B08E40102D7A14CDEACA /* [CP] Embed Pods Frameworks */ = {
AEB83BB41F42231C825E64DF /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand Down Expand Up @@ -275,7 +275,7 @@
/* Begin XCBuildConfiguration section */
13B07F941A680F5B00A75B9A /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = B1DE77EF3F31D91853CA4080 /* Pods-ManualTestApp.debug.xcconfig */;
baseConfigurationReference = 425BC176136637FB41A21437 /* Pods-ManualTestApp.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
Expand All @@ -302,7 +302,7 @@
};
13B07F951A680F5B00A75B9A /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = B73C403206EE31E26D6844D3 /* Pods-ManualTestApp.release.xcconfig */;
baseConfigurationReference = 0AF6B24BD5CCC6461808EB83 /* Pods-ManualTestApp.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
Expand Down
6 changes: 3 additions & 3 deletions ManualTestApp/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ PODS:
- glog (0.3.5)
- LaunchDarkly (9.0.2):
- LaunchDarkly/Core (= 9.0.2)
- launchdarkly-react-native-client-sdk (7.1.7):
- launchdarkly-react-native-client-sdk (8.0.0):
- LaunchDarkly (= 9.0.2)
- React-Core
- LaunchDarkly/Core (9.0.2):
Expand Down Expand Up @@ -645,7 +645,7 @@ SPEC CHECKSUMS:
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
LaunchDarkly: 8f517dee5c26972440a3f1488ca47194137a5eaa
launchdarkly-react-native-client-sdk: 48b512980a02652268f138b58f4cbe735d323f31
launchdarkly-react-native-client-sdk: 68f8eb365eb120b3dd0646e8cb2507f6face7e76
LDSwiftEventSource: 3f9ff84ca80677f9a4f8596757dcb50026e4a13c
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
Expand Down Expand Up @@ -688,4 +688,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 741d1103a57ae690e5c569aa60527fb577cb2f91

COCOAPODS: 1.11.3
COCOAPODS: 1.12.1
2 changes: 1 addition & 1 deletion ManualTestApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@react-native-picker/picker": "^2.2.1",
"launchdarkly-react-native-client-sdk": "^7.1.1",
"launchdarkly-react-native-client-sdk": "^8.0.0",
"react": "^18.2.0",
"react-native": "^0.72.4"
},
Expand Down
8 changes: 4 additions & 4 deletions ManualTestApp/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3403,10 +3403,10 @@ launchdarkly-js-sdk-common@5.0.3:
fast-deep-equal "^2.0.1"
uuid "^8.0.0"

launchdarkly-react-native-client-sdk@^7.1.1:
version "7.1.8"
resolved "https://registry.yarnpkg.com/launchdarkly-react-native-client-sdk/-/launchdarkly-react-native-client-sdk-7.1.8.tgz#3b0cc4cec8174aeeae4bc33c015604e93115146c"
integrity sha512-f+XxZvEnKMY4P8sZjTEE0rpPKERlh8ATNt2E0hBK7lO+lPSZsjc7ymQCapT2wPwInOoQ2W+0vL9leX2J4orAUg==
launchdarkly-react-native-client-sdk@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/launchdarkly-react-native-client-sdk/-/launchdarkly-react-native-client-sdk-8.0.0.tgz#94f0bdbb08ca3cc7f97e19561a8903824e3ac875"
integrity sha512-5UoF6eDOvrvgVgekVk+xpD0u9ikiLuJj5NBrWq4m6c+wzXIcxtM2mDXpMHxLPVKgPljKzCb5JCRfytsq17XLAg==
dependencies:
launchdarkly-js-sdk-common "5.0.3"

Expand Down
Loading

0 comments on commit 83e47cd

Please sign in to comment.