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

prepare 6.3.0 release #171

Merged
merged 188 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 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
587a682
merge from public after release
May 17, 2022
94a8b0c
Add the new React Native version and the latest non-beta xcode version
louis-launchdarkly Jun 27, 2022
a49631d
Add exclusion to the old RN with new xcode and new RN with old xcode
louis-launchdarkly Jun 28, 2022
67f8ec4
Update the Readme
louis-launchdarkly Jul 1, 2022
ff3783b
Update package files
louis-launchdarkly Jul 1, 2022
612ef26
RN 0.69.1 is available
louis-launchdarkly Jul 1, 2022
7328b8d
Code Review Comment to remove xcode 12.2
louis-launchdarkly Jul 16, 2022
9f5543d
Try to install jest first to get past the error
louis-launchdarkly Jul 18, 2022
ff037d0
Try to pin the RN version when using with npx
louis-launchdarkly Jul 20, 2022
590a865
Bump Android SDK to 3.1.6
louis-launchdarkly Aug 1, 2022
45f0e1b
Merge pull request #126 from launchdarkly/lchan/bump-android-3.1.6
louis-launchdarkly Aug 2, 2022
648e26b
merge from public after release
Aug 2, 2022
5653590
Print more about circle CI
louis-launchdarkly Aug 9, 2022
d1a59d2
Use a separate working director for the new project
louis-launchdarkly Aug 9, 2022
914aeed
Update the relative path
louis-launchdarkly Aug 9, 2022
e30dec3
CircleCI need to have -p for mkdir
louis-launchdarkly Aug 9, 2022
86dc687
Merge pull request #125 from launchdarkly/lchan/sc-157837/try-0.69.0
louis-launchdarkly Aug 16, 2022
5300941
merge from public after release
Aug 16, 2022
9495ad1
Upgrade Native Android SDK to 3.1.7
louis-launchdarkly Aug 18, 2022
fbbb7b4
Try to bump Android SDK to 3.2.0
louis-launchdarkly Aug 31, 2022
b53e99b
Merge pull request #127 from launchdarkly/lchan/update-android-sdk
louis-launchdarkly Sep 9, 2022
3da2afc
The null check logic for isInitialized
louis-launchdarkly Sep 9, 2022
b9b7c26
Fix spacing
louis-launchdarkly Sep 12, 2022
01fcf62
Merge pull request #128 from launchdarkly/lchan/sc-167623/update-is-i…
louis-launchdarkly Sep 12, 2022
a5b9a80
Support React Native 0.70. (#129)
louis-launchdarkly Sep 26, 2022
df64e76
More update to the Android isInitialized logic (#130)
louis-launchdarkly Sep 29, 2022
58d2c62
merge from public after release
Sep 29, 2022
6544319
Merge branch 'main' of github.com:launchdarkly/react-native-client-sdk
louis-launchdarkly Sep 29, 2022
5671d77
Revert the isInitialized change and fix package.json (#131)
louis-launchdarkly Oct 6, 2022
ec30345
merge from public after release
Oct 6, 2022
48b8f10
Initial commit
yusinto Jan 11, 2023
f307f74
Update README.md
yusinto Jan 11, 2023
1b8ffcf
yarn inside test app as well initially
yusinto Jan 11, 2023
5409062
Create CODEOWNERS
yusinto Jan 11, 2023
d0ae64a
Add jcenter as repo source to solve unknown facebook imports. Remove …
yusinto Jan 12, 2023
bd08e15
Update to gradle 7.2
yusinto Jan 12, 2023
7ea62cd
Remove lock files and ignore them
yusinto Jan 12, 2023
1b8d852
Update README.md
yusinto Jan 12, 2023
5b46774
Revert "Remove lock files and ignore them"
yusinto Jan 13, 2023
5e6c798
Added react-native to dev dep to fix jest failing to run due to some …
yusinto Jan 17, 2023
9cfc65f
Attempt to fix android 0.64 minCompileSdk build error
yusinto Jan 17, 2023
c557f4f
Rollback jcenter and resolution changes
yusinto Jan 17, 2023
74e8e75
Increase compile version to fix rn 0.64.3 build errors
yusinto Jan 17, 2023
7206320
Update config.yml
yusinto Jan 17, 2023
8eb3d65
Rollback to main version
yusinto Jan 18, 2023
7ba6f4d
Merge pull request #132 from launchdarkly/yus/sc-183191/add-script-to…
yusinto Jan 18, 2023
fd5c8f1
Initial commit
yusinto Jan 20, 2023
4699edc
Update .prettierrc.js
yusinto Jan 20, 2023
c20421f
Prettify code
yusinto Jan 20, 2023
af90721
Ran prettier on js and json files
yusinto Jan 20, 2023
544c574
Update App.js
yusinto Jan 20, 2023
3974646
Merge pull request #133 from launchdarkly/yus/sc-184932/rn-prettify-j…
yusinto Jan 20, 2023
1283b96
Merge branch 'main' into yus/sc-184207/react-native-client-sdk-add-su…
yusinto Jan 20, 2023
56526f7
Update ios sdk version
yusinto Jan 20, 2023
c17d19e
Disable autoCaps
yusinto Jan 23, 2023
be8f7b5
Corrected autoCapitalize from false to none
yusinto Jan 23, 2023
d24b4e5
Update App.js
yusinto Jan 23, 2023
50bc73e
Fixed bug where podspec and LICENCE files are not copied to test app'…
yusinto Jan 23, 2023
ccd50b8
Create lefthook.yml
yusinto Jan 23, 2023
2b0cc89
Merge branch 'main' into yus/sc-184207/react-native-client-sdk-add-su…
yusinto Jan 23, 2023
ba21c9b
Added ios ApplicationInfo support. Split modd file. Update ios sdk ve…
yusinto Jan 23, 2023
8a78f9e
Update LaunchdarklyReactNativeClient.swift
yusinto Jan 23, 2023
72d9605
Create modd-ios.conf
yusinto Jan 23, 2023
70d1983
Split modd configs into ios and android. Update readme.
yusinto Jan 23, 2023
f9ee647
Merge pull request #134 from launchdarkly/yus/sc-185314/format-swift-…
yusinto Jan 24, 2023
992dd2d
Merge branch 'main' into yus/sc-184207/react-native-client-sdk-add-su…
yusinto Jan 24, 2023
93e0b52
Update LaunchdarklyReactNativeClient.swift
yusinto Jan 24, 2023
f2a46fa
Fix bug where version is incorrectly set
yusinto Jan 24, 2023
90ae3ad
Delete lefthook.yml
yusinto Jan 24, 2023
008f191
Bumped min ios deployment target
yusinto Jan 24, 2023
ebcb29a
Rolled bak xcode proj change and set min ios sdk version in podspec
yusinto Jan 24, 2023
b58f9da
Update project.pbxproj
yusinto Jan 24, 2023
0cc46be
Hack template Podfile to support minimum ios 11
yusinto Jan 26, 2023
8a998bc
More ios 11 patch hacks
yusinto Jan 26, 2023
acd6f47
Update config.yml
yusinto Jan 26, 2023
172c796
Hack 0.64.x build.gradle to use minSdkVersion 30
yusinto Jan 26, 2023
1ff748f
Update config.yml
yusinto Jan 26, 2023
33dab50
Force rn android binaries to be downloaded from facebook. Update gradle.
yusinto Jan 26, 2023
e6948d6
Merge branch 'yus/sc-184207/react-native-client-sdk-add-support-for-a…
yusinto Jan 26, 2023
d3e24d8
Remove accidentally committed yarn.lock. Update manual test app's gra…
yusinto Jan 26, 2023
d9d2f53
Hack circleci config to speed up build
yusinto Jan 26, 2023
ee27703
Update build.gradle
yusinto Jan 26, 2023
d1aaef3
Update build.gradle
yusinto Jan 26, 2023
2e4fb7f
Update build.gradle
yusinto Jan 26, 2023
e43dad2
Update config.yml
yusinto Jan 26, 2023
9a11b33
Restore circleci config, updating 0.64.3 to 0.64.4
yusinto Jan 26, 2023
731ee16
Update config.yml
yusinto Jan 26, 2023
016655a
Merge pull request #135 from launchdarkly/yus/sc-184207/react-native-…
yusinto Jan 26, 2023
9cf8f74
Create modd.conf
yusinto Jan 27, 2023
9707c0e
Added Application types
yusinto Jan 27, 2023
b86d3fd
Merge pull request #136 from launchdarkly/yus/sc-186251/add-applicati…
yusinto Jan 27, 2023
004eab9
Merge branch 'main' into release-6.3.0
yusinto Jan 27, 2023
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
18 changes: 14 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ jobs:
mkdir -p test
cd test
[ -d "CITest" ] || npx react-native@<<parameters.rn-version>> init CITest --version <<parameters.rn-version>> --skip-install

# HACK: rn 0.64.x init the test project targeting ios 10, which is incompatible with the ios SDK which requires
# a minimum of ios 11
sed -i.bak "s/platform :ios, '10.0'/platform :ios, '11.0'/" CITest/ios/Podfile
sed -i.bak "s/IPHONEOS_DEPLOYMENT_TARGET = 10.0;/IPHONEOS_DEPLOYMENT_TARGET = 11.0;/" CITest/ios/CITest.xcodeproj/project.pbxproj

#HACK: force rn android 0.64.x init to use minSdkVersion 30 to pass the build
sed -i.bak 's/buildToolsVersion = "29.0.3"/buildToolsVersion = "30.0.2"/' CITest/android/build.gradle
sed -i.bak "s/compileSdkVersion = 29/compileSdkVersion = 31/" CITest/android/build.gradle
sed -i.bak "s/targetSdkVersion = 29/targetSdkVersion = 31/" CITest/android/build.gradle

- save_cache:
name: Save RN project template to cache
Expand Down Expand Up @@ -141,12 +151,12 @@ workflows:
name: rn<<matrix.rn-version>>-xc<<matrix.xcode-version>>-build-apps-using-template
matrix:
parameters:
rn-version: ["0.64.3", "0.65.2", "0.66.4", "0.67.3", "0.68.0","0.69.4", "0.70.1"]
xcode-version: ["12.5.1", "13.2.1", "13.4.1", "14.0.1"]
rn-version: [ "0.64.4", "0.65.2", "0.66.4", "0.67.3", "0.68.0","0.69.4", "0.70.1" ]
xcode-version: [ "12.5.1", "13.2.1", "13.4.1", "14.0.1" ]
exclude:
- rn-version: "0.64.3"
- rn-version: "0.64.4"
xcode-version: "13.4.1"
- rn-version: "0.64.3"
- rn-version: "0.64.4"
xcode-version: "14.0.1"
- rn-version: "0.65.2"
xcode-version: "13.4.1"
Expand Down
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120,
"arrowParens": "always"
}
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @kinyoklion @yusinto @louis-launchdarkly
6 changes: 6 additions & 0 deletions ManualTestApp/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120,
"arrowParens": "always"
}
7 changes: 0 additions & 7 deletions ManualTestApp/.prettierrc.js

This file was deleted.

79 changes: 36 additions & 43 deletions ManualTestApp/App.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,20 @@
import React, { useState, useEffect } from 'react';
import { SafeAreaView,
ScrollView,
StyleSheet,
Text,
View,
Button,
TextInput,
Alert,
Switch,
} from 'react-native';
import { SafeAreaView, ScrollView, StyleSheet, Text, View, Button, TextInput, Alert, Switch } 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 Wrapper = ({ children }): Node => {
const styles = {
scroll: { backgroundColor: '#fff', padding: 10 },
area: { backgroundColor: '#fff', flex: 1 },
};
return (
<SafeAreaView style={styles.area}>
<ScrollView style={styles.scroll}>
{children}
</ScrollView>
<ScrollView style={styles.scroll}>{children}</ScrollView>
</SafeAreaView>
);
}
};

const Body = () => {
const [client, setClient] = useState(null);
Expand All @@ -42,6 +31,10 @@ const Body = () => {
let config = {
mobileKey: 'MOBILE_KEY',
debugMode: true,
application: {
id: 'rn-manual-test-app',
version: '0.0.1',
},
};
let user = { key: userKey };
try {
Expand Down Expand Up @@ -70,32 +63,34 @@ const Body = () => {
}

Alert.alert('LD Server Response', JSON.stringify(res));
}
};

const track = () => {
client.track(flagKey, false);
}
};

const identify = () => {
client.identify({ key: userKey });
}
};

const listen = () => {
if (listeners.hasOwnProperty(listenerKey)) {
return;
}
let listener = value => Alert.alert('Listener Callback', value);
let listener = (value) => Alert.alert('Listener Callback', value);
client.registerFeatureFlagListener(listenerKey, listener);
setListeners({ ...listeners, ...{[listenerKey]: listener}});
}
setListeners({ ...listeners, ...{ [listenerKey]: listener } });
};

const removeListener = () => {
client.unregisterFeatureFlagListener(listenerKey, listeners[listenerKey]);
let {[listenerKey]: omit, ...newListeners} = listeners;
let { [listenerKey]: omit, ...newListeners } = listeners;
setListeners(newListeners);
}
};

const flush = () => { client.flush(); }
const flush = () => {
client.flush();
};

const setOffline = (newIsOffline) => {
if (newIsOffline) {
Expand All @@ -104,18 +99,15 @@ const Body = () => {
client.setOnline();
}
setIsOffline(newIsOffline);
}
};

return (
<>
<Text>Feature Key:</Text>
<TextInput style={styles.input}
onChangeText={setFlagKey} value={flagKey} />
<TextInput style={styles.input} onChangeText={setFlagKey} value={flagKey} autoCapitalize="none" />
<View style={styles.row}>
<Button title="Evaluate Flag" onPress={evalFlag} />
<Picker style={{flex: 1}}
selectedValue={flagType}
onValueChange={(itemValue, _) => setFlagType(itemValue)}>
<Picker style={{ flex: 1 }} selectedValue={flagType} onValueChange={(itemValue, _) => setFlagType(itemValue)}>
<Picker.Item label="Bool" value="bool" />
<Picker.Item label="String" value="string" />
<Picker.Item label="Number" value="number" />
Expand All @@ -125,24 +117,21 @@ const Body = () => {
<Switch value={isOffline} onValueChange={setOffline} />
</View>
<Text>User Key:</Text>
<TextInput style={styles.input}
onChangeText={setUserKey} value={userKey} />
<TextInput style={styles.input} onChangeText={setUserKey} value={userKey} />
<View style={styles.row}>
<Button title="Identify" onPress={identify} />
<Button title="Track" onPress={track} />
<Button title="Flush" onPress={flush} />
</View>
<Text>Feature Flag Listener Key:</Text>
<TextInput style={styles.input}
onChangeText={setListenerKey}
value={listenerKey} />
<TextInput style={styles.input} onChangeText={setListenerKey} value={listenerKey} />
<View style={styles.row}>
<Button title="Listen" onPress={listen}/>
<Button title="Remove" onPress={removeListener}/>
<Button title="Listen" onPress={listen} />
<Button title="Remove" onPress={removeListener} />
</View>
</>
);
}
};

const styles = StyleSheet.create({
row: {
Expand All @@ -163,7 +152,7 @@ const App = () => {
<Body />
</Wrapper>
);
}
};

MessageQueue.spy((msg) => {
if (msg.module != 'LaunchdarklyReactNativeClient' && !msg.method.includes('LaunchdarklyReactNativeClient')) {
Expand All @@ -176,14 +165,18 @@ MessageQueue.spy((msg) => {
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)) {
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(', ') + ')';
logMsg += '(' + params.map((p) => JSON.stringify(p)).join(', ') + ')';
console.log(logMsg);
});

Expand Down
3 changes: 1 addition & 2 deletions ManualTestApp/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

buildscript {
ext {
buildToolsVersion = "30.0.2"
minSdkVersion = 21
compileSdkVersion = 30
targetSdkVersion = 30
Expand All @@ -13,7 +12,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.2")
classpath('com.android.tools.build:gradle:7.4.0')
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
1 change: 1 addition & 0 deletions ManualTestApp/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ android.enableJetifier=true

# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.99.0
org.gradle.jvmargs=--add-opens java.base/java.io=ALL-UNNAMED
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion ManualTestApp/app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "ManualTestApp",
"displayName": "ManualTestApp"
}
}
4 changes: 2 additions & 2 deletions ManualTestApp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* @format
*/

import {AppRegistry} from 'react-native';
import { AppRegistry } from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import { name as appName } from './app.json';

AppRegistry.registerComponent(appName, () => App);
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"images" : [
"images": [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
"idiom": "iphone",
"size": "29x29",
"scale": "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
"idiom": "iphone",
"size": "29x29",
"scale": "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
"idiom": "iphone",
"size": "40x40",
"scale": "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
"idiom": "iphone",
"size": "40x40",
"scale": "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
"idiom": "iphone",
"size": "60x60",
"scale": "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
"idiom": "iphone",
"size": "60x60",
"scale": "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
}
}
Loading