diff --git a/.tool-versions b/.tool-versions index f31e6b0..604be07 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -nodejs 20.18.0 +nodejs 22.14.0 diff --git a/android/build.gradle b/android/build.gradle index 03e4a1c..d6488d6 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -97,7 +97,7 @@ dependencies { //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation "com.movableink.sdk:inked:1.6.1" + implementation "com.movableink.sdk:inked:2.0.0" } if (isNewArchitectureEnabled()) { diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 2c25297..9062d18 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -72,7 +72,7 @@ PODS: - hermes-engine/Pre-built (= 0.73.5) - hermes-engine/Pre-built (0.73.5) - libevent (2.1.12) - - MovableInk (1.7.3) + - MovableInk (2.0.0) - OpenSSL-Universal (1.1.1100) - RCT-Folly (2022.05.16.00): - boost @@ -945,8 +945,8 @@ PODS: - React-Mapbuffer (0.73.5): - glog - React-debug - - react-native-movable-ink (1.6.2): - - MovableInk (= 1.7.3) + - react-native-movable-ink (2.0.0): + - MovableInk (= 2.0.0) - React-Core - React-nativeconfig (0.73.5) - React-NativeModulesApple (0.73.5): @@ -1199,8 +1199,6 @@ DEPENDENCIES: SPEC REPOS: https://github.com/CocoaPods/Specs.git: - - MovableInk - trunk: - CocoaAsyncSocket - Flipper - Flipper-Boost-iOSX @@ -1212,6 +1210,7 @@ SPEC REPOS: - FlipperKit - fmt - libevent + - MovableInk - OpenSSL-Universal - SocketRocket @@ -1336,7 +1335,7 @@ SPEC CHECKSUMS: glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2 hermes-engine: 1d1835b2cc54c381909d94d1b3c8e0a2f1a94a0e libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 - MovableInk: 523afbf0d08ed31ec35563ee053e9116e1129165 + MovableInk: 1c6879a32b0fd2c03efa9c9460986bd2f233ef68 OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c RCT-Folly: 7169b2b1c44399c76a47b5deaaba715eeeb476c0 RCTRequired: 2544c0f1081a5fa12e108bb8cb40e5f4581ccd87 @@ -1359,7 +1358,7 @@ SPEC CHECKSUMS: React-jsinspector: 32db5e364bcae8fca8cdf8891830636275add0c5 React-logger: 4136cd22748f4275b04bf82f7b6853ba93b5e0e3 React-Mapbuffer: ee9b45b26e759a099a3e024df50b25af390ee998 - react-native-movable-ink: f03032938b6d8f631213e563d4ce4839d63e7c47 + react-native-movable-ink: 70fe2094c4746cefa1b2c3da57ea3e0822119516 React-nativeconfig: 1166714a4f7ea57a0df5c2cb44fbc70f98d580f9 React-NativeModulesApple: d4a50e6739e201716bc90178c143d019c8e09c36 React-perflogger: 0dd9f1725d55f8264b81efadd373fe1d9cca7dc2 diff --git a/example/src/App.tsx b/example/src/App.tsx index 192ffe7..a9e833e 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { StyleSheet, View, Text, Linking, Button } from 'react-native'; -import RNMovableInk from '@movable/react-native-sdk'; +import RNMovableInk, { Currency } from '@movable/react-native-sdk'; export default function App() { const [link, setLink] = React.useState(); @@ -70,7 +70,8 @@ export default function App() { RNMovableInk.productAdded({ id: '123', title: 'Test Product', - price: '$10.00', + price: 10.0, + currency: Currency.XTS, meta: { test_key: 'test_value', test_key_two: true, @@ -80,6 +81,24 @@ export default function App() { }} /> +