diff -ura a/browser/lib/newNote.js b/browser/lib/newNote.js --- a/browser/lib/newNote.js 2019-05-22 08:20:34.000000000 +0200 +++ b/browser/lib/newNote.js 2019-05-22 20:50:49.695908549 +0200 @@ -1,11 +1,8 @@ import { hashHistory } from 'react-router' import dataApi from 'browser/main/lib/dataApi' import ee from 'browser/main/lib/eventEmitter' -import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig' export function createMarkdownNote (storage, folder, dispatch, location, params, config) { - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_MARKDOWN') - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_ALLNOTE') let tags = [] if (config.ui.tagNewNoteWithFilteringTags && location.pathname.match(/\/tags/)) { @@ -38,8 +35,6 @@ } export function createSnippetNote (storage, folder, dispatch, location, params, config) { - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_SNIPPET') - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_ALLNOTE') let tags = [] if (config.ui.tagNewNoteWithFilteringTags && location.pathname.match(/\/tags/)) { diff -ura a/browser/main/Detail/MarkdownNoteDetail.js b/browser/main/Detail/MarkdownNoteDetail.js --- a/browser/main/Detail/MarkdownNoteDetail.js 2019-05-22 08:20:34.000000000 +0200 +++ b/browser/main/Detail/MarkdownNoteDetail.js 2019-05-22 20:51:06.666120452 +0200 @@ -15,7 +15,6 @@ import StatusBar from '../StatusBar' import _ from 'lodash' import { findNoteTitle } from 'browser/lib/findNoteTitle' -import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig' import ConfigManager from 'browser/main/lib/ConfigManager' import TrashButton from './TrashButton' import FullscreenButton from './FullscreenButton' @@ -135,7 +134,6 @@ type: 'UPDATE_NOTE', note: note }) - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('EDIT_NOTE') }) } @@ -174,7 +172,6 @@ handleStarButtonClick (e) { const { note } = this.state - if (!note.isStarred) AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_STAR') note.isStarred = !note.isStarred diff -ura a/browser/main/Detail/SnippetNoteDetail.js b/browser/main/Detail/SnippetNoteDetail.js --- a/browser/main/Detail/SnippetNoteDetail.js 2019-05-22 08:20:34.000000000 +0200 +++ b/browser/main/Detail/SnippetNoteDetail.js 2019-05-22 20:51:41.966452029 +0200 @@ -19,7 +19,6 @@ import _ from 'lodash' import {findNoteTitle} from 'browser/lib/findNoteTitle' import convertModeName from 'browser/lib/convertModeName' -import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig' import FullscreenButton from './FullscreenButton' import TrashButton from './TrashButton' import RestoreButton from './RestoreButton' @@ -142,7 +141,6 @@ type: 'UPDATE_NOTE', note: note }) - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('EDIT_NOTE') }) } @@ -181,7 +179,6 @@ handleStarButtonClick (e) { const { note } = this.state - if (!note.isStarred) AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_STAR') note.isStarred = !note.isStarred @@ -377,9 +374,6 @@ const mode = syntax != null ? syntax.name : null if (mode != null) { snippets[index].mode = mode - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('SNIPPET_LANG', { - name: mode - }) } this.setState(state => ({note: Object.assign(state.note, {snippets: snippets})})) @@ -401,10 +395,6 @@ }), () => { this.save() }) - - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('SELECT_LANG', { - name - }) } } diff -ura a/browser/main/Detail/TagSelect.js b/browser/main/Detail/TagSelect.js --- a/browser/main/Detail/TagSelect.js 2019-05-22 08:20:34.000000000 +0200 +++ b/browser/main/Detail/TagSelect.js 2019-05-22 20:51:56.913227850 +0200 @@ -4,7 +4,6 @@ import CSSModules from 'browser/lib/CSSModules' import styles from './TagSelect.styl' import _ from 'lodash' -import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig' import i18n from 'browser/lib/i18n' import ee from 'browser/main/lib/eventEmitter' import Autosuggest from 'react-autosuggest' @@ -28,8 +27,6 @@ } addNewTag (newTag) { - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_TAG') - newTag = newTag.trim().replace(/ +/g, '_') if (newTag.charAt(0) === '#') { newTag.substring(1) diff -ura a/browser/main/Main.js b/browser/main/Main.js --- a/browser/main/Main.js 2019-05-22 08:20:34.000000000 +0200 +++ b/browser/main/Main.js 2019-05-22 20:52:09.193307620 +0200 @@ -10,7 +10,6 @@ import dataApi from 'browser/main/lib/dataApi' import _ from 'lodash' import ConfigManager from 'browser/main/lib/ConfigManager' -import mobileAnalytics from 'browser/main/lib/AwsMobileAnalyticsConfig' import eventEmitter from 'browser/main/lib/eventEmitter' import { hashHistory } from 'react-router' import store from 'browser/main/store' @@ -25,10 +24,6 @@ constructor (props) { super(props) - if (process.env.NODE_ENV === 'production') { - mobileAnalytics.initAwsMobileAnalytics() - } - const { config } = props this.state = { diff -ura a/browser/main/modals/CreateFolderModal.js b/browser/main/modals/CreateFolderModal.js --- a/browser/main/modals/CreateFolderModal.js 2019-05-22 08:20:34.000000000 +0200 +++ b/browser/main/modals/CreateFolderModal.js 2019-05-22 20:52:18.416696022 +0200 @@ -6,7 +6,6 @@ import store from 'browser/main/store' import consts from 'browser/lib/consts' import ModalEscButton from 'browser/components/ModalEscButton' -import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig' import i18n from 'browser/lib/i18n' class CreateFolderModal extends React.Component { @@ -51,7 +50,6 @@ } confirm () { - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_FOLDER') if (this.state.name.trim().length > 0) { const { storage } = this.props const input = { diff -ura a/browser/main/modals/PreferencesModal/InfoTab.js b/browser/main/modals/PreferencesModal/InfoTab.js --- a/browser/main/modals/PreferencesModal/InfoTab.js 2019-05-22 08:20:34.000000000 +0200 +++ b/browser/main/modals/PreferencesModal/InfoTab.js 2019-05-22 20:52:49.206856823 +0200 @@ -3,7 +3,6 @@ import styles from './InfoTab.styl' import ConfigManager from 'browser/main/lib/ConfigManager' import store from 'browser/main/store' -import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig' import _ from 'lodash' import i18n from 'browser/lib/i18n' @@ -25,47 +24,6 @@ e.preventDefault() } - handleConfigChange (e) { - const newConfig = { amaEnabled: this.refs.amaEnabled.checked } - - this.setState({ config: newConfig }) - } - - handleSaveButtonClick (e) { - const newConfig = { - amaEnabled: this.state.config.amaEnabled - } - - if (!newConfig.amaEnabled) { - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('DISABLE_AMA') - this.setState({ - amaMessage: i18n.__('We hope we will gain your trust') - }) - } else { - this.setState({ - amaMessage: i18n.__('Thank\'s for trusting us') - }) - } - - _.debounce(() => { - this.setState({ - amaMessage: '' - }) - }, 3000)() - - ConfigManager.set(newConfig) - - store.dispatch({ - type: 'SET_CONFIG', - config: newConfig - }) - } - - infoMessage () { - const { amaMessage } = this.state - return amaMessage ?

{amaMessage}

: null - } - render () { return (
@@ -139,23 +97,6 @@ {i18n.__('License: GPL v3')} - -
- -
{i18n.__('Analytics')}
-
{i18n.__('Boostnote collects anonymous data for the sole purpose of improving the application, and strictly does not collect any personal information such the contents of your notes.')}
-
{i18n.__('You can see how it works on ')} this.handleLinkClick(e)}>GitHub.
-
-
{i18n.__('You can choose to enable or disable this option.')}
- this.handleConfigChange(e)} - checked={this.state.config.amaEnabled} - ref='amaEnabled' - type='checkbox' - /> - {i18n.__('Enable analytics to help improve Boostnote')}
- -
- {this.infoMessage()}
) } diff -ura a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js --- a/browser/main/NoteList/index.js 2019-05-22 08:20:34.000000000 +0200 +++ b/browser/main/NoteList/index.js 2019-05-22 20:53:09.046946654 +0200 @@ -16,7 +16,6 @@ import path from 'path' import { hashHistory } from 'react-router' import copy from 'copy-to-clipboard' -import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig' import Markdown from '../../lib/markdown' import i18n from 'browser/lib/i18n' import { confirmDeleteNote } from 'browser/lib/confirmDeleteNote' @@ -717,7 +716,6 @@ note: newNote }) }) - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('EDIT_NOTE') }) .then(() => ee.emit('list:next')) .catch((err) => { @@ -736,8 +734,6 @@ const firstNote = selectedNotes[0] const eventName = firstNote.type === 'MARKDOWN_NOTE' ? 'ADD_MARKDOWN' : 'ADD_SNIPPET' - AwsMobileAnalyticsConfig.recordDynamicCustomEvent(eventName) - AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_ALLNOTE') dataApi .createNote(storage.key, { type: firstNote.type, diff -ura a/package.json b/package.json --- a/package.json 2019-05-22 08:20:34.000000000 +0200 +++ b/package.json 2019-05-22 20:53:22.097001558 +0200 @@ -1,7 +1,7 @@ { "name": "boost", "productName": "Boostnote", - "version": "0.11.16", + "version": "0.11.16", "main": "index.js", "description": "Boostnote", "license": "GPL-3.0", @@ -54,8 +54,6 @@ "@rokt33r/markdown-it-math": "^4.0.1", "@rokt33r/season": "^5.3.0", "@susisu/mte-kernel": "^2.0.0", - "aws-sdk": "^2.48.0", - "aws-sdk-mobile-analytics": "^0.9.2", "chart.js": "^2.7.2", "codemirror": "^5.40.2", "codemirror-mode-elixir": "^1.1.1",