mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
REF: Allow reports on dev mode (#7314)
Bug reports help in some scenarios (especially with extensions like watchOS app)
This commit is contained in:
parent
95ab408605
commit
01ec605c51
@ -12,26 +12,24 @@ const BlueApp = BlueAppClass.getInstance();
|
||||
*/
|
||||
let userHasOptedOut: boolean = false;
|
||||
|
||||
if (process.env.NODE_ENV !== 'development') {
|
||||
(async () => {
|
||||
const uniqueID = await getUniqueId();
|
||||
const doNotTrack = await BlueApp.isDoNotTrackEnabled();
|
||||
(async () => {
|
||||
const uniqueID = await getUniqueId();
|
||||
const doNotTrack = await BlueApp.isDoNotTrackEnabled();
|
||||
|
||||
if (doNotTrack) {
|
||||
// dont start Bugsnag at all
|
||||
return;
|
||||
}
|
||||
if (doNotTrack) {
|
||||
// dont start Bugsnag at all
|
||||
return;
|
||||
}
|
||||
|
||||
Bugsnag.start({
|
||||
user: {
|
||||
id: uniqueID,
|
||||
},
|
||||
onError: function (event) {
|
||||
return !userHasOptedOut;
|
||||
},
|
||||
});
|
||||
})();
|
||||
}
|
||||
Bugsnag.start({
|
||||
user: {
|
||||
id: uniqueID,
|
||||
},
|
||||
onError: function (event) {
|
||||
return !userHasOptedOut;
|
||||
},
|
||||
});
|
||||
})();
|
||||
|
||||
const A = async (event: string) => {};
|
||||
|
||||
|
@ -207,23 +207,19 @@ const About: React.FC = () => {
|
||||
<BlueTextCentered>
|
||||
w, h = {width}, {height}
|
||||
</BlueTextCentered>
|
||||
{process.env.NODE_ENV !== 'development' && (
|
||||
<>
|
||||
<BlueTextCentered>Unique ID: {getUniqueIdSync()}</BlueTextCentered>
|
||||
<View style={styles.copyToClipboard}>
|
||||
<TouchableOpacity
|
||||
accessibilityRole="button"
|
||||
onPress={() => {
|
||||
const stringToCopy = 'userId:' + getUniqueIdSync();
|
||||
A.logError('copied unique id');
|
||||
Clipboard.setString(stringToCopy);
|
||||
}}
|
||||
>
|
||||
<Text style={styles.copyToClipboardText}>{loc.transactions.details_copy}</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</>
|
||||
)}
|
||||
<BlueTextCentered>Unique ID: {getUniqueIdSync()}</BlueTextCentered>
|
||||
<View style={styles.copyToClipboard}>
|
||||
<TouchableOpacity
|
||||
accessibilityRole="button"
|
||||
onPress={() => {
|
||||
const stringToCopy = 'userId:' + getUniqueIdSync();
|
||||
A.logError('copied unique id');
|
||||
Clipboard.setString(stringToCopy);
|
||||
}}
|
||||
>
|
||||
<Text style={styles.copyToClipboardText}>{loc.transactions.details_copy}</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
<BlueSpacing20 />
|
||||
<BlueSpacing20 />
|
||||
</ScrollView>
|
||||
|
Loading…
Reference in New Issue
Block a user