diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index f4edb3350..e21ce29a7 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -290,7 +290,7 @@ PODS: - React-Core - segment-analytics-react-native-plugin-idfa (0.2.0-beta): - React-Core - - sovran-react-native (0.2.0): + - sovran-react-native (0.2.3): - React-Core - Yoga (1.14.0) @@ -460,7 +460,7 @@ SPEC CHECKSUMS: RNGestureHandler: bf572f552ea324acd5b5464b8d30755b2d8c1de6 segment-analytics-react-native: cdb28934216c4840474587d47120ae594af6a17d segment-analytics-react-native-plugin-idfa: 2dc6e38506a5b034db4a4cf16db48643b2f356a2 - sovran-react-native: 76f56a05a46af86de625015b26cb3177abd1b934 + sovran-react-native: 814ebda5c04a60a4f9eea1b203b95f2f64bca291 Yoga: 3f5bfc54ce164fcd5b5d7f9f4232182d6298dd56 PODFILE CHECKSUM: 0c7eb82d495ca56953c50916b7b49e7512632eb6 diff --git a/example/package.json b/example/package.json index 57c96b7b5..eb80bc5e0 100644 --- a/example/package.json +++ b/example/package.json @@ -16,7 +16,7 @@ "android:deeplink": "adb shell am start -a android.intent.action.VIEW -d \"segmentreactnative://hello\" com.example.segmentanalyticsreactnative", "ios:deeplink": "xcrun simctl openurl booted segmentreactnative://hello", "android:emulator": "./android/device_setup.sh", - "clean": "rimraf node_modules & yarn clean:ios", + "clean": "yarn clean:ios && rimraf node_modules", "clean:ios": "rimraf ios/build ios/Pods" }, "dependencies": { @@ -24,7 +24,7 @@ "@react-native-community/masked-view": "^0.1.11", "@react-navigation/native": "^6.0.2", "@react-navigation/stack": "^6.0.7", - "@segment/sovran-react-native": "^0.2.0", + "@segment/sovran-react-native": "^0.2.3", "react": "17.0.2", "react-native": "0.67.0", "react-native-bootsplash": "^3.2.4", diff --git a/example/yarn.lock b/example/yarn.lock index d2f1d24da..e49b612e9 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -1861,13 +1861,15 @@ color "^3.1.3" warn-once "^0.1.0" -"@segment/sovran-react-native@^0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@segment/sovran-react-native/-/sovran-react-native-0.2.0.tgz#59b62246dae1c15b8c699dc463c103792e9855b5" - integrity sha512-/SVu7vuv+uUk6IpeIa8dHHZHYcngsv9+gbsA0RKn7Y0N9HbJrkJnkRkSNVihPehOWkJ+8h0mBKZof/jYnS6OlA== +"@segment/sovran-react-native@^0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@segment/sovran-react-native/-/sovran-react-native-0.2.3.tgz#25f73cdd3df896b872a465f368fe7d0d03196c9e" + integrity sha512-6Xsz7RllJBoHtDt7dxQDgfIUxjhoCosmDZgj0BHaEjElxFmx+RnAnSa5zvtpOSF2G1/YUcrtUZidRgUnY+dJVQ== dependencies: "@react-native-async-storage/async-storage" "^1.15.15" + ansi-regex "5.0.1" deepmerge "^4.2.2" + shell-quote "1.7.3" "@sideway/address@^4.1.3": version "4.1.3" @@ -2228,6 +2230,11 @@ ansi-fragments@^0.2.1: slice-ansi "^2.0.0" strip-ansi "^5.0.0" +ansi-regex@5.0.1, ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + ansi-regex@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" @@ -2238,11 +2245,6 @@ ansi-regex@^5.0.0: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== -ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - ansi-styles@^3.2.0, ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" @@ -7332,6 +7334,11 @@ shell-quote@1.6.1: array-reduce "~0.0.0" jsonify "~0.0.0" +shell-quote@1.7.3: + version "1.7.3" + resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.3.tgz#aa40edac170445b9a431e17bb62c0b881b9c4123" + integrity sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw== + shell-quote@^1.6.1, shell-quote@^1.7.2: version "1.7.2" resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.2.tgz#67a7d02c76c9da24f99d20808fcaded0e0e04be2" diff --git a/packages/core/package.json b/packages/core/package.json index 6f69cccad..b01cab2af 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -45,11 +45,13 @@ "homepage": "https://github.com/segmentio/analytics-react-native#readme", "dependencies": { "@react-native-async-storage/async-storage": "^1.15.17", - "@segment/sovran-react-native": "0.2.2", + "@segment/sovran-react-native": "^0.2.3", "js-base64": "^3.7.2", - "nanoid": "^3.1.25", - "react": "^17.0.2", - "react-native": "^0.66.3" + "nanoid": "^3.1.25" + }, + "peerDependencies": { + "react": "*", + "react-native": "*" }, "devDependencies": { "@babel/core": "^7.12.9", @@ -65,6 +67,8 @@ "eslint": "^8.2.0", "jest": "^27.3.1", "metro-react-native-babel-preset": "^0.66.2", + "react": "^17.0.2", + "react-native": "^0.67.2", "react-native-builder-bob": "^0.18.2", "rimraf": "^3.0.2", "ts-jest": "^27.0.7", diff --git a/yarn.lock b/yarn.lock index 1dc3fe8c2..417cbf22c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2685,10 +2685,10 @@ resolved "https://registry.yarnpkg.com/@react-native/assets/-/assets-1.0.0.tgz#c6f9bf63d274bafc8e970628de24986b30a55c8e" integrity sha512-KrwSpS1tKI70wuKl68DwJZYEvXktDHdZMG0k2AXD/rJVSlB23/X2CB2cutVR0HwNMJIal9HOUOBB2rVfa6UGtQ== -"@react-native/normalize-color@1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@react-native/normalize-color/-/normalize-color-1.0.0.tgz#c52a99d4fe01049102d47dc45d40cbde4f720ab6" - integrity sha512-xUNRvNmCl3UGCPbbHvfyFMnpvLPoOjDCcp5bT9m2k+TF/ZBklEQwhPZlkrxRx2NhgFh1X3a5uL7mJ7ZR+8G7Qg== +"@react-native/normalize-color@2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@react-native/normalize-color/-/normalize-color-2.0.0.tgz#da955909432474a9a0fe1cbffc66576a0447f567" + integrity sha512-Wip/xsc5lw8vsBlmY2MO/gFLp3MvuZ2baBZjDeTjjndMgM0h5sxz7AZR62RDPGgstp8Np7JzjvVqVT7tpFZqsw== "@react-native/polyfills@2.0.0": version "2.0.0" @@ -2705,15 +2705,15 @@ conventional-recommended-bump "^6.1.0" prepend-file "^2.0.0" -"@segment/sovran-react-native@0.2.2": - version "0.2.2" - resolved "https://registry.yarnpkg.com/@segment/sovran-react-native/-/sovran-react-native-0.2.2.tgz#6250b98f6eb5e355f0c752fa80abc3021107ff7a" - integrity sha512-3JhYTiXsCpt/2ETRvXP0mg3XO/xLkSGH9g8Ydl5mjoLlJLsWaaL/R5EFt6gENx20fnn4/95yTG5wmDndO5dtFQ== +"@segment/sovran-react-native@^0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@segment/sovran-react-native/-/sovran-react-native-0.2.3.tgz#25f73cdd3df896b872a465f368fe7d0d03196c9e" + integrity sha512-6Xsz7RllJBoHtDt7dxQDgfIUxjhoCosmDZgj0BHaEjElxFmx+RnAnSa5zvtpOSF2G1/YUcrtUZidRgUnY+dJVQ== dependencies: "@react-native-async-storage/async-storage" "^1.15.15" + ansi-regex "5.0.1" deepmerge "^4.2.2" - react "^17.0.2" - react-native "^0.66.0" + shell-quote "1.7.3" "@sideway/address@^4.1.0": version "4.1.2" @@ -3214,6 +3214,11 @@ ansi-fragments@^0.2.1: slice-ansi "^2.0.0" strip-ansi "^5.0.0" +ansi-regex@5.0.1, ansi-regex@^5.0.0, ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + ansi-regex@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" @@ -3224,11 +3229,6 @@ ansi-regex@^4.1.0: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== -ansi-regex@^5.0.0, ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - ansi-styles@^3.2.0, ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" @@ -9014,10 +9014,10 @@ rc@^1.2.8: minimist "^1.2.0" strip-json-comments "~2.0.1" -react-devtools-core@^4.13.0: - version "4.21.0" - resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.21.0.tgz#a54c9a0fd7261491e616d6c87d1869e011d8521d" - integrity sha512-clGWwJHV5MHwTwYyKc+7FZHwzdbzrD2/AoZSkicUcr6YLc3Za9a9FaLhccWDHfjQ+ron9yzNhDT6Tv+FiPkD3g== +react-devtools-core@4.19.1: + version "4.19.1" + resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.19.1.tgz#bc37c2ef2f48f28c6af4c7292be9dca1b63deace" + integrity sha512-2wJiGffPWK0KggBjVwnTaAk+Z3MSxKInHmdzPTrBh1mAarexsa93Kw+WMX88+XjN+TtYgAiLe9xeTqcO5FfJTw== dependencies: shell-quote "^1.6.1" ws "^7" @@ -9074,10 +9074,10 @@ react-native-builder-bob@^0.18.2: optionalDependencies: jetifier "^1.6.6" -react-native-codegen@^0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/react-native-codegen/-/react-native-codegen-0.0.7.tgz#86651c5c5fec67a8077ef7f4e36f7ed459043e14" - integrity sha512-dwNgR8zJ3ALr480QnAmpTiqvFo+rDtq6V5oCggKhYFlRjzOmVSFn3YD41u8ltvKS5G2nQ8gCs2vReFFnRGLYng== +react-native-codegen@^0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/react-native-codegen/-/react-native-codegen-0.0.8.tgz#b7796a54074139d956fff2862cf1285db43c891b" + integrity sha512-k/944+0XD+8l7zDaiKfYabyEKmAmyZgS1mj+4LcSRPyHnrjgCHKrh/Y6jM6kucQ6xU1+1uyMmF/dSkikxK8i+Q== dependencies: flow-parser "^0.121.0" jscodeshift "^0.11.0" @@ -9088,17 +9088,17 @@ react-native-fbsdk-next@^4.6.0: resolved "https://registry.yarnpkg.com/react-native-fbsdk-next/-/react-native-fbsdk-next-4.6.0.tgz#0e70aa6d64e99762e6b22b1344eebae3f7fbfcb5" integrity sha512-FPYLUFSWf7V4i084jKpSt8tc1DLkuBm38eYdq4RwpGcojxXIciQ8qQi9DRLNAxqNZHd0G/P6edSVEGsrjtvV7w== -react-native@^0.66.0, react-native@^0.66.3: - version "0.66.4" - resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.66.4.tgz#bf89a5fb18bd23046d889fb4de4ea2822a4d7805" - integrity sha512-9vx5dlSfQlKbbDtr8+xMon6qsmSu7jvjdXWZpEKh3XVKpUidbbODv7048gwVKX8YAel1egeR7hN8vzSeI6ssTw== +react-native@^0.67.2: + version "0.67.2" + resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.67.2.tgz#312224bc2271c3cecd374d4bc425619cff4ea5dc" + integrity sha512-grEtpOLLvtSg8Bivg0ffVRCjTkresqMt7Jdog/geF6VAYhb4RnLaaUCWvyrfyB9buf135FKnqg5BIuve/XQNXA== dependencies: "@jest/create-cache-key-function" "^27.0.1" "@react-native-community/cli" "^6.0.0" "@react-native-community/cli-platform-android" "^6.0.0" "@react-native-community/cli-platform-ios" "^6.0.0" "@react-native/assets" "1.0.0" - "@react-native/normalize-color" "1.0.0" + "@react-native/normalize-color" "2.0.0" "@react-native/polyfills" "2.0.0" abort-controller "^3.0.0" anser "^1.4.9" @@ -9107,7 +9107,6 @@ react-native@^0.66.0, react-native@^0.66.3: hermes-engine "~0.9.0" invariant "^2.2.4" jsc-android "^250230.2.1" - metro-babel-register "0.66.2" metro-react-native-babel-transformer "0.66.2" metro-runtime "0.66.2" metro-source-map "0.66.2" @@ -9115,8 +9114,8 @@ react-native@^0.66.0, react-native@^0.66.3: pretty-format "^26.5.2" promise "^8.0.3" prop-types "^15.7.2" - react-devtools-core "^4.13.0" - react-native-codegen "^0.0.7" + react-devtools-core "4.19.1" + react-native-codegen "^0.0.8" react-refresh "^0.4.0" regenerator-runtime "^0.13.2" scheduler "^0.20.2" @@ -9763,7 +9762,7 @@ shell-quote@1.6.1: array-reduce "~0.0.0" jsonify "~0.0.0" -shell-quote@^1.6.1: +shell-quote@1.7.3, shell-quote@^1.6.1: version "1.7.3" resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.3.tgz#aa40edac170445b9a431e17bb62c0b881b9c4123" integrity sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==