-
Notifications
You must be signed in to change notification settings - Fork 35
/
ghostery-android-privacy.js
74 lines (72 loc) · 2.34 KB
/
ghostery-android-privacy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*!
* Copyright (c) 2014-present Cliqz GmbH. All rights reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
const urls = require('./common/urls-ghostery');
const publish = require('./common/publish');
const base = require('./common/system');
module.exports = {
platform: 'webextension',
brocfile: 'Brocfile.ghostery-mobile.js',
baseURL: '/cliqz/',
pack: 'npm pack',
publish: publish.toEdge('browser-core', 'ghostery-mobile'),
sourceMaps: false,
versionPrefix: '7',
isMobile: true,
settings: Object.assign({}, urls, {
channel: 'MA50',
MSGCHANNEL: 'web-extension',
OFFERS_CHANNEL: 'ghostery',
ATTRACK_TELEMETRY_PROVIDER: 'hpnv2',
HW_CHANNEL: 'ghostery',
ALLOWED_COUNTRY_CODES: ['de', 'at', 'ch', 'es', 'us', 'fr', 'nl', 'gb', 'it', 'be', 'se', 'dk', 'fi', 'cz', 'gr', 'hu', 'ro', 'no', 'ca', 'au', 'ru', 'ua', 'in', 'pl', 'jp', 'br', 'mx', 'cn', 'ar'],
antitrackingPlaceholder: 'ghostery',
antitrackingHeader: 'Ghostery-AntiTracking',
// mobile cards
RESULTS_PROVIDER_ORDER: ['calculator', 'history', 'cliqz', 'querySuggestions', 'instant'],
CLEAR_RESULTS_AT_SESSION_START: false,
THROTTLE_QUERIES: 50
}),
default_prefs: {
'modules.antitracking.enabled': true,
'modules.adblocker.enabled': true,
'modules.insights.enabled': false,
'modules.webextension-specific.enabled': false,
'cliqz-adb': 1,
attrackBloomFilter: false,
humanWeb: false,
attrackTelemetryMode: 0,
attrackDefaultAction: 'placeholder',
sendAntiTrackingHeader: false,
telemetry: false,
attrackCookieTrustReferers: true,
},
bundles: [
'core/content-script.bundle.js',
'cliqz-android/cliqz-search-engines.bundle.js',
'cliqz-android/cliqz-native-bridge.bundle.js',
'cliqz-android/cliqz-app-constants.bundle.js',
'webextension-specific/experimental-apis/cliqz/api.bundle.js',
],
modules: [
'core',
'antitracking',
'webrequest-pipeline',
'adblocker',
'anolysis',
// mobile cards
'core-cliqz',
'abtests-legacy',
'cliqz-android',
'webextension-specific',
'telemetry',
],
builderDefault: base.builderConfig,
babelPlugins: [
['react-native-web', { commonjs: true }]
]
};