Skip to content

Commit

Permalink
mobile: remove telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed authored and thecodrr committed Aug 20, 2024
1 parent 624d3d7 commit bb9a643
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 208 deletions.
156 changes: 0 additions & 156 deletions apps/mobile/app/common/analytics/index.js

This file was deleted.

41 changes: 0 additions & 41 deletions apps/mobile/app/components/intro/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ import { eSendEvent } from "../../services/event-manager";

const Intro = ({ navigation }) => {
const { colors } = useThemeColors();
const isTelemetryEnabled = useSettingStore(
(state) => state.settings.telemetry
);
const { width, height } = useWindowDimensions();
const deviceMode = useSettingStore((state) => state.deviceMode);
const insets = useGlobalSafeAreaInsets();
Expand Down Expand Up @@ -217,44 +214,6 @@ const Intro = ({ navigation }) => {
type="accent"
title="Get started"
/>

<TouchableOpacity
activeOpacity={1}
style={{
flexDirection: "row",
alignSelf: "center",
width: "90%",
marginBottom: 12,
paddingHorizontal: 12,
justifyContent: "center",
padding: 12,
maxWidth: 500
}}
onPress={() => {
SettingsService.set({ telemetry: !isTelemetryEnabled });
}}
>
<Icon
size={SIZE.md}
name={
isTelemetryEnabled ? "checkbox-marked" : "checkbox-blank-outline"
}
color={
isTelemetryEnabled ? colors.primary.accent : colors.primary.icon
}
/>

<Paragraph
style={{
flexShrink: 1,
marginLeft: 6
}}
size={SIZE.xs}
>
Help improve Notesnook by sending completely anonymized{" "}
<Heading size={SIZE.xs}>private analytics and bug reports.</Heading>
</Paragraph>
</TouchableOpacity>
</View>
</ScrollView>
);
Expand Down
9 changes: 0 additions & 9 deletions apps/mobile/app/screens/settings/settings-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -835,15 +835,6 @@ export const settingsGroups: SettingSection[] = [
id: "privacy-security",
name: "Privacy and security",
sections: [
{
id: "temeltery",
type: "switch",
name: "Telemetry",
icon: "radar",
description:
"Contribute towards a better Notesnook. All tracking information is anonymous.",
property: "telemetry"
},
{
id: "marketing-emails",
type: "switch",
Expand Down
2 changes: 0 additions & 2 deletions apps/mobile/app/stores/use-setting-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export type Settings = {
appLockTimer: number;
appLockEnabled?: boolean;
appLockMode?: "none" | "background" | "launch";
telemetry?: boolean;
notebooksListMode?: "normal" | "compact";
notesListMode?: "normal" | "compact";
devMode?: boolean;
Expand Down Expand Up @@ -146,7 +145,6 @@ export const defaultSettings: SettingStore["settings"] = {
screenshotMode: true,
privacyScreen: false,
appLockMode: "none",
telemetry: false,
notebooksListMode: "normal",
notesListMode: "normal",
devMode: false,
Expand Down

0 comments on commit bb9a643

Please sign in to comment.