Skip to content

Commit

Permalink
Replace browser-core with ghostery-common to update Human Web Lite
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmod committed Oct 20, 2021
1 parent cab9b8b commit 803d213
Show file tree
Hide file tree
Showing 9 changed files with 137 additions and 330 deletions.
2 changes: 1 addition & 1 deletion ReactNative/js/bridge-manager.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NativeEventEmitter } from 'react-native';
import prefs from 'browser-core-user-agent-ios/build/modules/core/prefs';
import prefs from 'ghostery-common/build/ios/modules/core/prefs';

export default class BridgeManager {
constructor(bridge, inject, appReady) {
Expand Down
2 changes: 1 addition & 1 deletion ReactNative/js/browser-core.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
declare module 'browser-core-user-agent-ios/build/modules/core/i18n' {
declare module 'ghostery-common/build/ios/modules/core/i18n' {
export const getMessage: (key: string) => string;
}
2 changes: 1 addition & 1 deletion ReactNative/js/fixes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import RNFS from 'react-native-fs';
import ResourceLoaderStorage from 'browser-core-user-agent-ios/build/modules/platform/resource-loader-storage';
import ResourceLoaderStorage from 'ghostery-common/build/ios/modules/platform/resource-loader-storage';

const ASSETS = ['tracker_db_v2.json'];
const { load } = ResourceLoaderStorage.prototype;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import React from 'react';
import { View, Text, TouchableWithoutFeedback, StyleSheet } from 'react-native';
import { getMessage } from 'browser-core-user-agent-ios/build/modules/core/i18n';
import { getMessage } from 'ghostery-common/build/ios/modules/core/i18n';

import { withTheme } from '../../../../../../contexts/theme';
import NativeDrawable from '../../../../../../components/NativeDrawable';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 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/.
*/
import { getMessage } from 'browser-core-user-agent-ios/build/modules/core/i18n';
import { getMessage } from 'ghostery-common/build/ios/modules/core/i18n';
import React from 'react';
import { Image, View, StyleSheet } from 'react-native';
import {
Expand Down
14 changes: 7 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import {
} from 'react-native';
import './ReactNative/js/fixes';
import './ReactNative/js/setup-globals';
import App from 'browser-core-user-agent-ios/build/modules/core/app';
import config from 'browser-core-user-agent-ios/build/modules/core/config';
import inject from 'browser-core-user-agent-ios/build/modules/core/kord/inject';
import prefs from 'browser-core-user-agent-ios/build/modules/core/prefs';
import { overrideSuggestionsHandler } from 'browser-core-user-agent-ios/build/modules/core/search-engines';
import events from 'browser-core-user-agent-ios/build/modules/core/events';
import { loadSearchEngines } from 'browser-core-user-agent-ios/build/modules/platform/search-engines';
import App from 'ghostery-common/build/ios/modules/core/app';
import config from 'ghostery-common/build/ios/modules/core/config';
import inject from 'ghostery-common/build/ios/modules/core/kord/inject';
import prefs from 'ghostery-common/build/ios/modules/core/prefs';
import { overrideSuggestionsHandler } from 'ghostery-common/build/ios/modules/core/search-engines';
import events from 'ghostery-common/build/ios/modules/core/events';
import { loadSearchEngines } from 'ghostery-common/build/ios/modules/platform/search-engines';
import Home from './ReactNative/js/screens/Home';
import PrivacyStats from './ReactNative/js/screens/PrivacyStats/index';
import History from './ReactNative/js/screens/History/index';
Expand Down
2 changes: 1 addition & 1 deletion index.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
Weather,
styles as weatherStyles,
} from '@cliqz/component-ui-snippet-weather';
import CONFIG from 'browser-core-user-agent-ios/build/modules/core/config';
import CONFIG from 'ghostery-common/build/ios/modules/core/config';

const ImageRenderer = ({ uri, height, width }) => {
return (
Expand Down
Loading

0 comments on commit 803d213

Please sign in to comment.