An ATproto social media client -- with an independent Appview.

Temporarily remove Bitdrift (#7173)

* Temporarily remove Bitdrift

* Rm plugin

authored by danabra.mov and committed by

GitHub c2ca84c6 e2dfe3f4

+72 -31
+2 -1
app.config.js
··· 225 225 }, 226 226 ], 227 227 'react-native-compressor', 228 - '@bitdrift/react-native', 228 + // TODO: Reenable when the build issue is fixed. 229 + // '@bitdrift/react-native', 229 230 './plugins/starterPackAppClipExtension/withStarterPackAppClip.js', 230 231 './plugins/withAndroidManifestPlugin.js', 231 232 './plugins/withAndroidManifestFCMIconPlugin.js',
-1
package.json
··· 55 55 }, 56 56 "dependencies": { 57 57 "@atproto/api": "^0.13.21", 58 - "@bitdrift/react-native": "0.4.0", 59 58 "@braintree/sanitize-url": "^6.0.2", 60 59 "@discord/bottom-sheet": "bluesky-social/react-native-bottom-sheet", 61 60 "@emoji-mart/react": "^1.1.1",
+24 -18
src/lib/bitdrift.ts
··· 1 - import {init} from '@bitdrift/react-native' 2 - import {Statsig} from 'statsig-react-native-expo' 3 - export {debug, error, info, warn} from '@bitdrift/react-native' 1 + // import {init} from '@bitdrift/react-native' 2 + // import {Statsig} from 'statsig-react-native-expo' 3 + // export {debug, error, info, warn} from '@bitdrift/react-native' 4 4 5 - import {initPromise} from './statsig/statsig' 5 + // import {initPromise} from './statsig/statsig' 6 6 7 - const BITDRIFT_API_KEY = process.env.BITDRIFT_API_KEY 7 + // const BITDRIFT_API_KEY = process.env.BITDRIFT_API_KEY 8 8 9 - initPromise.then(() => { 10 - let isEnabled = false 11 - try { 12 - if (Statsig.checkGate('enable_bitdrift')) { 13 - isEnabled = true 14 - } 15 - } catch (e) { 16 - // Statsig may complain about it being called too early. 17 - } 18 - if (isEnabled && BITDRIFT_API_KEY) { 19 - init(BITDRIFT_API_KEY, {url: 'https://api-bsky.bitdrift.io'}) 20 - } 21 - }) 9 + // initPromise.then(() => { 10 + // let isEnabled = false 11 + // try { 12 + // if (Statsig.checkGate('enable_bitdrift')) { 13 + // isEnabled = true 14 + // } 15 + // } catch (e) { 16 + // // Statsig may complain about it being called too early. 17 + // } 18 + // if (isEnabled && BITDRIFT_API_KEY) { 19 + // init(BITDRIFT_API_KEY, {url: 'https://api-bsky.bitdrift.io'}) 20 + // } 21 + // }) 22 + 23 + // TODO: Reenable when the build issue is fixed. 24 + export function debug(_message: string) {} 25 + export function error(_message: string) {} 26 + export function info(_message: string) {} 27 + export function warn(_message: string) {}
+4 -2
src/lib/statsig/statsig.tsx
··· 5 5 import {Statsig, StatsigProvider} from 'statsig-react-native-expo' 6 6 7 7 import {BUNDLE_DATE, BUNDLE_IDENTIFIER, IS_TESTFLIGHT} from '#/lib/app-info' 8 - import * as bitdrift from '#/lib/bitdrift' 8 + // TODO: Reenable when the build issue is fixed. 9 + // import * as bitdrift from '#/lib/bitdrift' 9 10 import {logger} from '#/logger' 10 11 import {isWeb} from '#/platform/detection' 11 12 import * as persisted from '#/state/persisted' ··· 107 108 console.groupCollapsed(eventName) 108 109 console.log(fullMetadata) 109 110 console.groupEnd() 110 - bitdrift.info(eventName, fullMetadata) 111 + // TODO: Reenable when the build issue is fixed. 112 + // bitdrift.info(eventName, fullMetadata) 111 113 } catch (e) { 112 114 // A log should never interrupt the calling code, whatever happens. 113 115 logger.error('Failed to log an event', {message: e})
+42 -9
yarn.lock
··· 3261 3261 "@babel/parser" "^7.25.9" 3262 3262 "@babel/types" "^7.25.9" 3263 3263 3264 - "@babel/traverse--for-generate-function-map@npm:@babel/traverse@^7.25.3", "@babel/traverse@^7.25.3", "@babel/traverse@^7.25.9": 3264 + "@babel/traverse--for-generate-function-map@npm:@babel/traverse@^7.25.3": 3265 3265 version "7.25.9" 3266 3266 resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.9.tgz#a50f8fe49e7f69f53de5bea7e413cd35c5e13c84" 3267 3267 integrity sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw== ··· 3322 3322 debug "^4.3.1" 3323 3323 globals "^11.1.0" 3324 3324 3325 + "@babel/traverse@^7.25.3", "@babel/traverse@^7.25.9": 3326 + version "7.25.9" 3327 + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.9.tgz#a50f8fe49e7f69f53de5bea7e413cd35c5e13c84" 3328 + integrity sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw== 3329 + dependencies: 3330 + "@babel/code-frame" "^7.25.9" 3331 + "@babel/generator" "^7.25.9" 3332 + "@babel/parser" "^7.25.9" 3333 + "@babel/template" "^7.25.9" 3334 + "@babel/types" "^7.25.9" 3335 + debug "^4.3.1" 3336 + globals "^11.1.0" 3337 + 3325 3338 "@babel/types@^7.0.0", "@babel/types@^7.20.0", "@babel/types@^7.20.7", "@babel/types@^7.22.10", "@babel/types@^7.22.5", "@babel/types@^7.3.3", "@babel/types@^7.4.4": 3326 3339 version "7.22.10" 3327 3340 resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.22.10.tgz#4a9e76446048f2c66982d1a989dd12b8a2d2dc03" ··· 3379 3392 version "0.2.3" 3380 3393 resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" 3381 3394 integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== 3382 - 3383 - "@bitdrift/react-native@0.4.0": 3384 - version "0.4.0" 3385 - resolved "https://registry.yarnpkg.com/@bitdrift/react-native/-/react-native-0.4.0.tgz#e6484343ef04824aa924df2a757bd9620b2106c1" 3386 - integrity sha512-KuYzWEkoGwjjP0ZurjHwV+zfRZjQXxbXa3zhijWv0iqzMI/7kbrBd9lm+wNQo8OrkqFVDlebCb8AGPc0jMZw7A== 3387 3395 3388 3396 "@braintree/sanitize-url@^6.0.2": 3389 3397 version "6.0.4" ··· 17457 17465 resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4" 17458 17466 integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw== 17459 17467 17460 - "string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: 17468 + "string-width-cjs@npm:string-width@^4.2.0": 17469 + version "4.2.3" 17470 + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" 17471 + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== 17472 + dependencies: 17473 + emoji-regex "^8.0.0" 17474 + is-fullwidth-code-point "^3.0.0" 17475 + strip-ansi "^6.0.1" 17476 + 17477 + string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: 17461 17478 version "4.2.3" 17462 17479 resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" 17463 17480 integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== ··· 17557 17574 dependencies: 17558 17575 safe-buffer "~5.1.0" 17559 17576 17560 - "strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: 17577 + "strip-ansi-cjs@npm:strip-ansi@^6.0.1": 17561 17578 version "6.0.1" 17562 17579 resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" 17563 17580 integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== ··· 17570 17587 integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== 17571 17588 dependencies: 17572 17589 ansi-regex "^4.1.0" 17590 + 17591 + strip-ansi@^6.0.0, strip-ansi@^6.0.1: 17592 + version "6.0.1" 17593 + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" 17594 + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== 17595 + dependencies: 17596 + ansi-regex "^5.0.1" 17573 17597 17574 17598 strip-ansi@^7.0.1: 17575 17599 version "7.1.0" ··· 18845 18869 resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" 18846 18870 integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== 18847 18871 18848 - "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: 18872 + "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": 18849 18873 version "7.0.0" 18850 18874 resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" 18851 18875 integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== ··· 18858 18882 version "6.2.0" 18859 18883 resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" 18860 18884 integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== 18885 + dependencies: 18886 + ansi-styles "^4.0.0" 18887 + string-width "^4.1.0" 18888 + strip-ansi "^6.0.0" 18889 + 18890 + wrap-ansi@^7.0.0: 18891 + version "7.0.0" 18892 + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" 18893 + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== 18861 18894 dependencies: 18862 18895 ansi-styles "^4.0.0" 18863 18896 string-width "^4.1.0"