Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
67fb5ce
Removed the guides link
bwoskow-ld Feb 3, 2021
b6a113c
V4.0 (#68)
torchhound Apr 1, 2021
a193441
merge from public after release
LaunchDarklyCI Apr 1, 2021
510e581
Update iOS SDK dependency to fix Throttler behavior (#69)
torchhound Apr 7, 2021
0afc773
merge from public after release
LaunchDarklyCI Apr 7, 2021
9df202f
V4.1.0 (#72)
torchhound Apr 14, 2021
17e2d75
merge from public after release
LaunchDarklyCI Apr 14, 2021
35b61e1
Fixed jsonVariationDetail parsing on Android and fixed a typo in json…
torchhound Apr 16, 2021
fceade3
Merge branch 'master' of github.com:launchdarkly/react-native-client-sdk
bwoskow-ld Apr 23, 2021
82ba5fe
Releasing version 4.0.2
bwoskow-ld Apr 23, 2021
5489162
Merge branch 'v4.0.x-squashed' of github.com:launchdarkly/react-nativ…
bwoskow-ld Apr 23, 2021
ccc28c3
Merge branch 'master' of github.com:launchdarkly/react-native-client-sdk
bwoskow-ld Apr 24, 2021
c4a2891
Merge branch 'master' of github.com:launchdarkly/react-native-client-sdk
bwoskow-ld Apr 24, 2021
cae667b
Removes Typescript enums and replaces them with types that extend str…
torchhound Apr 28, 2021
f975de3
Releasing version 4.0.3
bwoskow-ld Apr 28, 2021
881c2fb
Merge branch 'v4.0.x-squashed'
bwoskow-ld Apr 28, 2021
b23e1c0
Merge branch 'master' of github.com:launchdarkly/react-native-client-…
bwoskow-ld Apr 28, 2021
c261c78
Merge branch 'master' of github.com:launchdarkly/react-native-client-sdk
bwoskow-ld Apr 28, 2021
5ad0499
Multi Environment (#65)
torchhound May 11, 2021
4ca1a1f
Add secondary user attribute (#76)
torchhound May 11, 2021
4a9530e
Merge branch 'master' of github.com:launchdarkly/react-native-client-sdk
bwoskow-ld May 11, 2021
81ae48d
Fix multi environment on restwrapper (#77)
torchhound May 19, 2021
0029ba5
merge from public after release
LaunchDarklyCI May 19, 2021
83640b7
[ch109800] Await Android client initialization. (#78)
gwhelanLD May 28, 2021
2668c2a
Update iOS method signature to match implementation (#79)
bwoskow-ld Jun 1, 2021
9703765
Merge remote-tracking branch 'public/master'
gwhelanLD Jun 1, 2021
b1a94ca
merge from public after release
LaunchDarklyCI Jun 1, 2021
8399a02
Releasing version 4.0.4
bwoskow-ld Jun 2, 2021
14c3993
Merge tag '4.0.4'
bwoskow-ld Jun 2, 2021
4d003c0
[ch110474] Fixes for undeclared variables and other callback issues. …
gwhelanLD Jun 15, 2021
36516d0
Merge remote-tracking branch 'public/master'
gwhelanLD Jun 15, 2021
093d62d
Changes for Android 3. (#82)
gwhelanLD Jun 15, 2021
894de0f
Add unit tests for JS native bridge wrapper. (#83)
gwhelanLD Jun 16, 2021
3da41af
Docs improvements (#84)
gwhelanLD Jun 16, 2021
493d554
[ch94513] Add aliasing support (#85)
gwhelanLD Jun 16, 2021
a735bab
Requiring default values to be specified. Remove intVariation. (#86)
gwhelanLD Jun 29, 2021
0364d51
Safer and cleaner configuration on iOS (#87)
gwhelanLD Jul 1, 2021
eb1aecb
Cleanup Android variation implementation (#88)
gwhelanLD Jul 1, 2021
9f8dbc9
Merge remote-tracking branch 'public/master'
gwhelanLD Aug 19, 2021
cbad402
Use latest iOS and Android SDKs (#89)
gwhelanLD Aug 19, 2021
f0ade3f
Fix issue with numeric variation calls. (#90)
gwhelanLD Aug 20, 2021
89668aa
merge from public after release
Aug 20, 2021
db3ca38
Add consumer Proguard file to Android build configuration. (#91)
gwhelanLD Sep 3, 2021
d631ea9
Merge remote-tracking branch 'public/master'
gwhelanLD Sep 3, 2021
cb9aab3
Update Android SDK to 3.1.1 (#92)
gwhelanLD Sep 3, 2021
33187c2
merge from public after release
Sep 3, 2021
c4a98d7
Fix for absolute paths in cocoapods generated build files by running …
gwhelanLD Sep 17, 2021
4511f91
Re-introduce compatibility for React Native 0.63 (#94)
bwoskow-ld Sep 20, 2021
1f314a8
Merge branch 'master' of github.com:launchdarkly/react-native-client-sdk
bwoskow-ld Sep 22, 2021
432605c
Updates docs URLs
ember-stevens Sep 26, 2021
714ab09
Merge pull request #95 from launchdarkly/emberstevens/sc-118589/url-a…
ember-stevens Sep 29, 2021
51504f9
Add configuration option `inlineUsersInEvents` and typescript definit…
gwhelanLD Sep 29, 2021
595c3c2
Merge branch 'master' of github.com:launchdarkly/react-native-client-sdk
bwoskow-ld Sep 29, 2021
b2104a2
minor doc improvement (#97)
bwoskow-ld Sep 30, 2021
2fc3cac
Update version in README to match what version we'll actually be rele…
gwhelanLD Sep 30, 2021
aa880bc
merge from public after release
Sep 30, 2021
17275e7
Merge branch 'master' of github.com:launchdarkly/react-native-client-…
louis-launchdarkly Sep 30, 2021
addc762
Invert isOffline on iOS. (#99)
gwhelanLD Oct 14, 2021
038017e
Fixes and improvements for CI configuration (#100)
gwhelanLD Dec 22, 2021
329b094
[SC-130395] Allow native SDKs to generate anonymous user when user ke…
gwhelanLD Dec 22, 2021
77d7b11
See will this work without adding the mavenCentral
louis-launchdarkly Jan 13, 2022
9f55e81
Adding MavenCentral
louis-launchdarkly Jan 13, 2022
f62cab3
Fix RN0.63 builds
louis-launchdarkly Jan 19, 2022
adeac7c
Merge pull request #102 from launchdarkly/lc/sc-137578/remove-jcenter
louis-launchdarkly Jan 19, 2022
eb26b57
Fix outdated sed CI expression preventing actually testing against th…
gwhelanLD Jan 21, 2022
d3385b5
Update Android native SDK dependency and gradle config. (#104)
gwhelanLD Jan 21, 2022
aa39b22
Update iOS SDK native dependency in podspec. (#105)
gwhelanLD Jan 21, 2022
808b306
merge from public after release
Jan 21, 2022
1da708d
[sc-139041] Fix releaser typedoc generation (#106)
gwhelanLD Feb 8, 2022
a54ca2d
Have podspec retrieve version from package.json to allow using defaul…
gwhelanLD Feb 8, 2022
f38a2aa
Fix iOS jsonVariation and jsonVariationDetail when using array defaul…
gwhelanLD Feb 8, 2022
e78af59
Completely rework CI build to not use hello-react-native (#109)
gwhelanLD Feb 10, 2022
07f3c8f
Include manual testing application in repo (#110)
gwhelanLD Feb 10, 2022
8f1e09e
Merge remote-tracking branch 'public/master'
gwhelanLD Feb 10, 2022
f0545f5
Adding the addListener and removeListeners method to silence the warning
louis-launchdarkly Feb 23, 2022
1a2038d
Merge pull request #111 from launchdarkly/lc/remove-warning
louis-launchdarkly Feb 24, 2022
4bc3ea4
Add privateAttributeNames to TypeScript and iOS wrapper implementatio…
gwhelanLD Feb 25, 2022
a7b7f7f
Bump to latest Android SDK release (#114)
gwhelanLD Feb 25, 2022
5873f90
Fix ownership handling for all flags and connection mode listeners on…
gwhelanLD Feb 25, 2022
a0f2820
merge from public after release
Feb 26, 2022
98389e3
Update iOS SDK to latest 5.4.5 release. (#115)
gwhelanLD Mar 17, 2022
3bfcb84
merge from public after release
Mar 18, 2022
02a9f18
Update Android SDK to latest patch release. (#116)
gwhelanLD Mar 25, 2022
777be46
merge from public after release
Mar 25, 2022
fbe7c29
Update to the correct variation method
louis-launchdarkly Apr 4, 2022
1f590bc
Add RN 0.68 CI and expand RN version bounds in package definition. (#…
gwhelanLD Apr 4, 2022
98da24c
Merge pull request #118 from launchdarkly/lc/fix-manual-test-app
louis-launchdarkly Apr 4, 2022
868258c
Update supported RN versions in readme.
gwhelanLD Apr 8, 2022
f39ce06
Merge pull request #119 from launchdarkly/gw/update-supported-version…
louis-launchdarkly Apr 13, 2022
285aa05
Merge branch 'master' of github.com:launchdarkly/react-native-client-sdk
louis-launchdarkly Apr 14, 2022
067354d
[sc-149512] Android reason fixes (#120)
gwhelanLD Apr 14, 2022
b73573c
merge from public after release
Apr 14, 2022
9cb9979
Merge branch 'main' of github.com:launchdarkly/react-native-client-sdk
louis-launchdarkly May 4, 2022
a47c6fb
Changes for iOS V6. (#122)
gwhelanLD May 16, 2022
a4f5de8
Use iOS 6.1.0 and new `LDUser.isAnonymousNullable` property (#123)
gwhelanLD May 17, 2022
9547305
Fix automatically setting user as anonymous when both key and anonymo…
gwhelanLD May 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 28 additions & 11 deletions ManualTestApp/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { SafeAreaView,
} from 'react-native';
import { Picker } from '@react-native-picker/picker';
import LDClient from 'launchdarkly-react-native-client-sdk';
import MessageQueue from 'react-native/Libraries/BatchedBridge/MessageQueue.js';

const Wrapper = ({children}): Node => {
const styles = {
Expand Down Expand Up @@ -62,14 +63,10 @@ const Body = () => {
res = await client.boolVariation(flagKey, false);
} else if (flagType === 'string') {
res = await client.stringVariation(flagKey, '');
} else if (flagType === 'int') {
res = await client.numberVariation(flagKey, 0);
} else if (flagType === 'float') {
} else if (flagType === 'number') {
res = await client.numberVariation(flagKey, 0.0);
} else if (flagType === 'array') {
res = await client.jsonVariation(flagKey, []);
} else if (flagType === 'object') {
res = await client.jsonVariation(flagKey, {});
} else if (flagType === 'json') {
res = await client.jsonVariation(flagKey, null);
}

Alert.alert('LD Server Response', JSON.stringify(res));
Expand Down Expand Up @@ -121,10 +118,8 @@ const Body = () => {
onValueChange={(itemValue, _) => setFlagType(itemValue)}>
<Picker.Item label="Bool" value="bool" />
<Picker.Item label="String" value="string" />
<Picker.Item label="Int" value="int" />
<Picker.Item label="Float" value="float" />
<Picker.Item label="Array" value="array" />
<Picker.Item label="Object" value="object" />
<Picker.Item label="Number" value="number" />
<Picker.Item label="JSON" value="json" />
</Picker>
<Text>Offline</Text>
<Switch value={isOffline} onValueChange={setOffline} />
Expand Down Expand Up @@ -170,4 +165,26 @@ const App = () => {
);
}

MessageQueue.spy((msg) => {
if (msg.module != 'LaunchdarklyReactNativeClient' && !msg.method.includes('LaunchdarklyReactNativeClient')) {
return;
}
let logMsg = msg.type === 0 ? 'N->JS: ' : 'JS->N: ';
logMsg += msg.method.replace('LaunchdarklyReactNativeClient.', '');

let params = [...msg.args];
if (params.length >= 2) {
let cbIdSucc = params[params.length - 1];
let cbIdFail = params[params.length - 2];
if (Number.isInteger(cbIdSucc) && Number.isInteger(cbIdFail) &&
(cbIdSucc & 1) === 1 && (cbIdFail & 1) === 0 &&
(cbIdSucc >>> 1 === cbIdFail >>> 1)) {
params.splice(-2, 2, '<promise>');
}
}

logMsg += '(' + params.map(p => JSON.stringify(p)).join(', ') + ')';
console.log(logMsg);
});

export default App;
26 changes: 13 additions & 13 deletions ManualTestApp/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ PODS:
- FlipperKit/FlipperKitNetworkPlugin
- fmt (6.2.1)
- glog (0.3.5)
- LaunchDarkly (5.4.4):
- LaunchDarkly/Core (= 5.4.4)
- launchdarkly-react-native-client-sdk (5.1.1):
- LaunchDarkly (= 5.4.4)
- LaunchDarkly (6.0.0):
- LaunchDarkly/Core (= 6.0.0)
- launchdarkly-react-native-client-sdk (6.1.3):
- LaunchDarkly (= 6.0.0)
- React-Core
- LaunchDarkly/Core (5.4.4):
- LDSwiftEventSource (= 1.3.0)
- LDSwiftEventSource (1.3.0)
- LaunchDarkly/Core (6.0.0):
- LDSwiftEventSource (= 1.3.1)
- LDSwiftEventSource (1.3.1)
- libevent (2.1.12)
- OpenSSL-Universal (1.1.180)
- RCT-Folly (2021.06.28.00-v2):
Expand Down Expand Up @@ -345,7 +345,7 @@ PODS:
- React-jsi (= 0.67.2)
- React-logger (= 0.67.2)
- React-perflogger (= 0.67.2)
- RNCPicker (2.2.1):
- RNCPicker (2.4.1):
- React-Core
- Yoga (1.14.0)
- YogaKit (1.18.1):
Expand Down Expand Up @@ -511,9 +511,9 @@ SPEC CHECKSUMS:
FlipperKit: d8d346844eca5d9120c17d441a2f38596e8ed2b9
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 85ecdd10ee8d8ec362ef519a6a45ff9aa27b2e85
LaunchDarkly: 99e279f0fb6f2c30e2b03ee84aa803eea56c9e7d
launchdarkly-react-native-client-sdk: 7a8360469ea94b14fc04ee0fc48a301b2dcf9f81
LDSwiftEventSource: bb05fa7955e1a5b0121c7d733f45d49fd0ef172f
LaunchDarkly: 4f006a4f50a98221ed96f96564610e05662cdc99
launchdarkly-react-native-client-sdk: 286fec4e737f40f322100be91b3fc803600e8165
LDSwiftEventSource: 1ac1b0986a07c5fe4f2c94d87f1d41f4de6ae727
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b
RCT-Folly: 803a9cfd78114b2ec0f140cfa6fa2a6bafb2d685
Expand All @@ -540,10 +540,10 @@ SPEC CHECKSUMS:
React-RCTVibration: 99c7f67fba7a5ade46e98e870c6ff2444484f995
React-runtimeexecutor: 2450b43df7ffe8e805a0b3dcb2abd4282f1f1836
ReactCommon: d98c6c96b567f9b3a15f9fd4cc302c1eda8e3cf2
RNCPicker: cb57c823d5ce8d2d0b5dfb45ad97b737260dc59e
RNCPicker: abc646b53a3d28ccfa3232c927a0ca52e0cf024d
Yoga: 9b6696970c3289e8dea34b3eda93f23e61fb8121
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: 9ed2f1671e477dd4514e541beaed8f012e67294d

COCOAPODS: 1.10.2
COCOAPODS: 1.11.2
Loading