TagSpaces is an offline, open source, document manager with tagging support
Migration to mozilla's addon sdk 1.15
Ilian4c48ac28cd72
diff --git a/build.number b/build.numberindex b6642a8f2..06dbb964f 100644--- a/build.number+++ b/build.number@@ -1,4 +1,4 @@#Build Number for ANT. Do not edit!-#Sun Dec 29 11:42:16 CET 2013-build.number=1723+#Sun Dec 29 15:40:39 CET 2013+build.number=17283=diff --git a/build.properties b/build.propertiesindex 260a0a103..625cdbb4f 100644--- a/build.properties+++ b/build.properties@@ -3,7 +3,7 @@ package = tagspacesappname = TagSpaces# Chromestore accepts descriptions no longer than 132 charactersappdescription = An offline file browser/manager for your local files, with support of tagging and editing.-addonsdk.dir = ../addonsdk[1.14]+addonsdk.dir = ../addonsdk[1.15]backup.dir = ../backupsbuilds.dir = ../buildsbuildFirefoxExt.dir = ../builds/firefoxdiff --git a/lib/ioutils.js b/lib/ioutils.jsindex 8464af06b..37cd922ee 100644--- a/lib/ioutils.js+++ b/lib/ioutils.js@@ -3,10 +3,9 @@* can be found in the LICENSE file. */const {Cc,Ci,Cr,Cu} = require("chrome");-var filesIO = require("file");-var runtime = require("runtime");--const { getTabs, getTabId, getOwnerWindow } = require("tabs/utils");+var filesIO = require("sdk/io/file"); // file+var runtime = require("sdk/system/runtime"); // runtime+const { getTabs, getTabId, getOwnerWindow } = require("sdk/tabs/utils"); // tabs/utilsfunction getWindow(worker) {let { tab } = worker;diff --git a/lib/main.js b/lib/main.jsindex 88f952a14..97bb576ce 100644--- a/lib/main.js+++ b/lib/main.js@@ -16,14 +16,14 @@ if (PRODUCTION == "true") {// Import the needed APIs//var selection = require("selection");-var widgets = require("widget");-var data = require('self').data;+var widgets = require("sdk/widget"); // widget+var data = require('sdk/self').data; // self// DEPRECATED: The addon-page module is deprecated.In the new Firefox UI design all pages will// include navigational elements;once the new design ships, using the addon-page module will not have any effect.//var addontab = require("addon-page"); // Enables the opening of main UI without location barvar ioutils = require("ioutils");var settings = require("settings");-var request = require("request");+var request = require("sdk/request"); // requestvar workers = [];@@ -33,7 +33,7 @@ var toolbarButtonDestroyed = false;exports.main = function(options, callbacks) {console.log("Load reason: "+options.loadReason);- var mainUIMod = require("page-mod");+ var mainUIMod = require("sdk/page-mod"); // page-modmainUIMod.PageMod({include: data.url("index.html"),contentScript: ''+@@ -69,7 +69,7 @@ exports.main = function(options, callbacks) {contentURL: data.url("assets/icon16.png"),onClick: function() {// Opens the main ui in a new pinned tab- require("tabs").open({+ require("sdk/tabs").open({ // tabsurl: data.url("index.html"),// isPinned: true,});@@ -90,7 +90,7 @@ exports.main = function(options, callbacks) {image: data.url("assets/icon16.png"),onCommand: function() {// Opens the main ui in a new pinned tab- require("tabs").open({+ require("sdk/tabs").open({ // tabsurl: data.url("index.html"),// isPinned: true,});@@ -118,7 +118,7 @@ function initToobarButton() {label: "TagSpaces",image: data.url("assets/icon16.png"),onCommand: function() {- require("tabs").open({+ require("sdk/tabs").open({ // tabsurl: data.url("index.html"),//isPinned: true,isPrivate : true,diff --git a/lib/menuitems.js b/lib/menuitems.jsindex aab37e955..19b4fe24d 100644--- a/lib/menuitems.js+++ b/lib/menuitems.js@@ -26,7 +26,7 @@** ***** END LICENSE BLOCK ***** */-const windowUtils = require("window-utils");+const windowUtils = require("sdk/deprecated/window-utils"); // window-utilsconst NS_XUL = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";exports.Menuitem = function Menuitem(options) {diff --git a/lib/settings.js b/lib/settings.jsindex 0725852bd..5c69227ef 100644--- a/lib/settings.js+++ b/lib/settings.js@@ -2,7 +2,7 @@* Use of this source code is governed by a AGPL3 license that* can be found in the LICENSE file. */-const prefs = require('preferences-service');+const prefs = require('sdk/preferences/service'); // preferences-service// var prefs = require('options');diff --git a/lib/toolbarbutton.js b/lib/toolbarbutton.jsindex 04dfe5b4d..7cac375ed 100644--- a/lib/toolbarbutton.js+++ b/lib/toolbarbutton.js@@ -31,7 +31,7 @@ const NS_XUL = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";const {unload} = require("unload+");const {listen} = require("listen");-const winUtils = require("window-utils");+const winUtils = require("sdk/deprecated/window-utils"); // window-utilsconst browserURL = "chrome://browser/content/browser.xul";diff --git a/lib/unload+.js b/lib/unload+.jsindex fa65f7eec..c18c67cf2 100644--- a/lib/unload+.js+++ b/lib/unload+.js@@ -43,7 +43,7 @@ function unloadersUnlaod() {unloaders.slice().forEach(function(unloader) unloader());unloaders.length = 0;}-require("unload").when(unloadersUnlaod);+require("sdk/system/unload").when(unloadersUnlaod); // unload/*** Save callbacks to run when unloading. Optionally scope the callback to adiff --git a/package.json b/package.jsonindex f7a34a979..0a6b98407 100644--- a/package.json+++ b/package.json@@ -2,7 +2,7 @@"name": "tagspaces","license": "AGPL 3.0","author": "Ugg Rock",- "version": "1.6.1713",+ "version": "1.7.1727","fullName": "TagSpaces","id": "jid1-FBaMKxTifTSahQ","description": "An offline file browser/manager for your local files, with support of tagging and editing.",diff --git a/update.rdf b/update.rdfindex 22a7309e6..8fcf25211 100644--- a/update.rdf+++ b/update.rdf@@ -7,14 +7,14 @@<r:Seq><r:li><r:Description>- <version>1.6.1713</version>+ <version>1.7.1727</version><targetApplication><r:Description><id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id><minVersion>16.0</minVersion><maxVersion>*</maxVersion>- <updateLink>http://tagspaces.com/releases/1.6/tagspaces.1.6.1713.xpi</updateLink>- <updateInfoURL>http://tagspaces.com/releases/1.6/updateInfo.xml</updateInfoURL>+ <updateLink>http://tagspaces.com/releases/1.7/tagspaces.1.7.1727.xpi</updateLink>+ <updateInfoURL>http://tagspaces.com/releases/1.7/updateInfo.xml</updateInfoURL></r:Description></targetApplication></r:Description>