Skip to content

Commit

Permalink
chore: Bump version to 4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
irgendeinich committed Jun 3, 2024
1 parent 6fdfead commit a0f0632
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
10 changes: 5 additions & 5 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- boost (1.83.0)
- ContextSDK (4.2.2)
- ContextSDK (4.3.0)
- DoubleConversion (1.1.6)
- FBLazyVector (0.74.1)
- fmt (9.1.0)
Expand Down Expand Up @@ -936,8 +936,8 @@ PODS:
- React-Mapbuffer (0.74.1):
- glog
- React-debug
- react-native-context-sdk (4.2.2):
- ContextSDK (= 4.2.2)
- react-native-context-sdk (4.3.0):
- ContextSDK (= 4.3.0)
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -1369,7 +1369,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
boost: d3f49c53809116a5d38da093a8aa78bf551aed09
ContextSDK: 2efca62e3fa88b26aa3d4a70dc40014e8fb7eea6
ContextSDK: 11eb89b8b9b73e95404242ccb98ddaaad6e8c32e
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
FBLazyVector: 898d14d17bf19e2435cafd9ea2a1033efe445709
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
Expand Down Expand Up @@ -1399,7 +1399,7 @@ SPEC CHECKSUMS:
React-jsitracing: 3de522f8f794dccd3c54af9160dc992ee65bd494
React-logger: 7e7403a2b14c97f847d90763af76b84b152b6fce
React-Mapbuffer: c5844bf3c2206f5475c0fc2340a89b049ea23c97
react-native-context-sdk: 040bea5a013dd687826ed51f7df8ed16e2641289
react-native-context-sdk: 121c9db4f30f435efaa44bc9de773f4409d6c23d
React-nativeconfig: 21d89c65ca39875fad2c5c465e0e013e514eba21
React-NativeModulesApple: e2e180dae4486b2978fcf3564cc4c8de4b453a68
React-perflogger: 3d31e0d1e8ad891e43a09ac70b7b17a79773003a
Expand Down
19 changes: 19 additions & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,25 @@ export default function App() {
});
}}
/>
<Button
title="Optimize maxDelay:0"
onPress={async () => {
setShouldUpsell(undefined);
setValidateOutput(undefined);

// This block is only called if it is a good time. Otherwise the promise will never resolve.
optimize({
flowName: 'test_flow_optimize',
maxDelay: 0,
onGoodMoment: async (context) => {
setShouldUpsell(await context.shouldUpsell());
const output = await context.validate();
setValidateOutput(output);
context.log(Outcome.positive);
},
});
}}
/>
<Button
title="Instant Context"
onPress={async () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-context-sdk",
"version": "4.2.2",
"version": "4.3.0",
"description": "ContextSDK for React Native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit a0f0632

Please sign in to comment.