Compare commits

...

10 Commits

Author SHA1 Message Date
Eric Bailey 7ad3db8d59 Add anon ID to version string 2025-02-12 19:34:21 -06:00
Eric Bailey fadd86fd32 Use new gates 2025-02-12 19:33:56 -06:00
Eric Bailey cf9ac40215 Revert unnecessary change 2025-02-12 19:33:56 -06:00
Eric Bailey 3b5a588196 Revert some debug 2025-02-12 19:33:56 -06:00
Eric Bailey 09d933469b Temp debug 2025-02-12 19:33:56 -06:00
Eric Bailey d79000eabc Temp enable 2025-02-12 19:33:52 -06:00
Eric Bailey 72499ec0b7 Nits 2025-02-12 19:33:46 -06:00
Eric Bailey 6853a0c3e0 Add stable ID copy, add todo 2025-02-12 19:33:43 -06:00
Mark 69f7cd52bb deps: Bump bitdrift to 0.6.8, fixes iOS network instrumentation bug (#7725)
Co-authored-by: Eric Bailey <git@esb.lol>
2025-02-12 19:33:02 -06:00
Snow Pettersen 6f909a5a56 update bitdrift to 0.6.7 and enable iOS network integration (#7575)
* update bitdrift to 0.6.5 and enable iOS network integration

* Update src/lib/bitdrift.ts

Co-authored-by: Mark <40143016+Maker-Mark@users.noreply.github.com>

* update to 0.6.7

---------

Co-authored-by: Mark <40143016+Maker-Mark@users.noreply.github.com>
2025-02-12 19:33:02 -06:00
4 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -57,7 +57,7 @@
},
"dependencies": {
"@atproto/api": "^0.13.35",
"@bitdrift/react-native": "^0.6.2",
"@bitdrift/react-native": "^0.6.8",
"@braintree/sanitize-url": "^6.0.2",
"@discord/bottom-sheet": "bluesky-social/react-native-bottom-sheet",
"@emoji-mart/react": "^1.1.1",
+9 -2
View File
@@ -1,23 +1,30 @@
import {init, SessionStrategy} from '@bitdrift/react-native'
import {Statsig} from 'statsig-react-native-expo'
export {debug, error, info, warn} from '@bitdrift/react-native'
import {initPromise} from './statsig/statsig'
export {debug, error, info, warn} from '@bitdrift/react-native'
const BITDRIFT_API_KEY = process.env.BITDRIFT_API_KEY
initPromise.then(() => {
let isEnabled = false
let isNetworkEnabled = false
try {
if (Statsig.checkGate('enable_bitdrift')) {
if (Statsig.checkGate('enable_bitdrift_v2')) {
isEnabled = true
}
if (Statsig.checkGate('enable_bitdrift_v2_networking')) {
isNetworkEnabled = true
}
} catch (e) {
// Statsig may complain about it being called too early.
}
if (isEnabled && BITDRIFT_API_KEY) {
init(BITDRIFT_API_KEY, SessionStrategy.Activity, {
url: 'https://api-bsky.bitdrift.io',
// Only effects iOS, Android instrumentation is set via Gradle Plugin
enableNetworkInstrumentation: isNetworkEnabled,
})
}
})
+4 -1
View File
@@ -1,8 +1,10 @@
import {useMemo} from 'react'
import {Platform} from 'react-native'
import {setStringAsync} from 'expo-clipboard'
import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {NativeStackScreenProps} from '@react-navigation/native-stack'
import {Statsig} from 'statsig-react-native-expo'
import {appVersion, BUNDLE_DATE, bundleInfo} from '#/lib/app-info'
import {STATUS_PAGE_URL} from '#/lib/constants'
@@ -20,6 +22,7 @@ type Props = NativeStackScreenProps<CommonNavigatorParams, 'AboutSettings'>
export function AboutSettingsScreen({}: Props) {
const {_} = useLingui()
const [devModeEnabled, setDevModeEnabled] = useDevModeEnabled()
const stableID = useMemo(() => Statsig.getStableID(), [])
return (
<Layout.Screen>
@@ -79,7 +82,7 @@ export function AboutSettingsScreen({}: Props) {
}}
onPress={() => {
setStringAsync(
`Build version: ${appVersion}; Bundle info: ${bundleInfo}; Bundle date: ${BUNDLE_DATE}; Platform: ${Platform.OS}; Platform version: ${Platform.Version}`,
`Build version: ${appVersion}; Bundle info: ${bundleInfo}; Bundle date: ${BUNDLE_DATE}; Platform: ${Platform.OS}; Platform version: ${Platform.Version}; Anonymous ID: ${stableID}`,
)
Toast.show(_(msg`Copied build version to clipboard`))
}}>
+4 -4
View File
@@ -3427,10 +3427,10 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
"@bitdrift/react-native@^0.6.2":
version "0.6.2"
resolved "https://registry.yarnpkg.com/@bitdrift/react-native/-/react-native-0.6.2.tgz#8e75d45a63fccad38b310fdea8069fa929cb97c3"
integrity sha512-4DIsZwAr9/Q1RI7lsnUphRoMuOuLWWESNXI759niSmU8XHTJISwwOQzUm7qWn7waBJGhxaq+jn+vlTV5Fai6zw==
"@bitdrift/react-native@^0.6.8":
version "0.6.8"
resolved "https://registry.yarnpkg.com/@bitdrift/react-native/-/react-native-0.6.8.tgz#386495857bc81345de418750b5ca0e3c3b964f6c"
integrity sha512-ixjJTEfUz3GeQ7srxpoYpnOGVx+iDA/A8Y3CZe5cg+/b0d8xur8fBKFoRBiXXohzJnYq4W8MIWIhLAwm5sD9oA==
dependencies:
"@expo/config-plugins" "^9.0.14"
fast-json-stringify "^6.0.0"