mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 14:15:30 +00:00
4742db4baa
This major version of kinto.js released without a FirefoxStorage adapter. Since Gecko is the only project with a need for this adapter as well as the only one who can use it, that file moves to this repo as a new kinto-storage-adapter.js. This file is mostly a copy of the most recent FirefoxStorage.js, plus some other non-exported utility functions copied from kinto.js to make it work. This changes the export of the kinto-offline-client.js from a `loadKinto` function which returns the Kinto class, to the actual Kinto class itself, with the user expected to "hook up" the adapter. It turns out that this doesn't change much in how we actually use Kinto, since we were always previously explicitly selecting the Kinto adapter. This release of kinto.js also changes some of the build options around, which changes the minified output of kinto-offline-client.js. There are still some outstanding stylistic complaints about FirefoxAdapter having to do with its _init static method which is public and the fact that sometimes FirefoxAdapter manages its own Sqlite connection and sometimes it doesn't. These will be addressed in a future patch. MozReview-Commit-ID: HF0oNCEDcFs --HG-- rename : services/common/kinto-offline-client.js => services/common/kinto-storage-adapter.js extra : rebase_source : 11d01e573b259798305494ac072575247ac01e2c
50 lines
1.2 KiB
Python
50 lines
1.2 KiB
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# 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 http://mozilla.org/MPL/2.0/.
|
|
|
|
with Files('**'):
|
|
BUG_COMPONENT = ('Mozilla Services', 'Firefox: Common')
|
|
|
|
TEST_DIRS += ['tests']
|
|
|
|
EXTRA_COMPONENTS += [
|
|
'servicesComponents.manifest',
|
|
]
|
|
|
|
EXTRA_JS_MODULES['services-common'] += [
|
|
'async.js',
|
|
'blocklist-clients.js',
|
|
'blocklist-updater.js',
|
|
'kinto-http-client.js',
|
|
'kinto-offline-client.js',
|
|
'kinto-storage-adapter.js',
|
|
'logmanager.js',
|
|
'observers.js',
|
|
'rest.js',
|
|
'stringbundle.js',
|
|
'utils.js',
|
|
]
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
|
|
EXTRA_JS_MODULES['services-common'] += [
|
|
'hawkclient.js',
|
|
'hawkrequest.js',
|
|
'tokenserverclient.js',
|
|
]
|
|
|
|
TESTING_JS_MODULES.services.common += [
|
|
'modules-testing/storageserver.js',
|
|
]
|
|
|
|
TESTING_JS_MODULES.services.common += [
|
|
'modules-testing/logging.js',
|
|
'modules-testing/utils.js',
|
|
]
|
|
|
|
JS_PREFERENCE_FILES += [
|
|
'services-common.js',
|
|
]
|
|
|