Skip to content

Commit 7507d25

Browse files
committed
Merge branch 'dev' into release-candidate
2 parents a28dd92 + 887949b commit 7507d25

26 files changed

+75
-86
lines changed

Gruntfile.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ taskManager.add 'integration_test', [
108108
taskManager.add 'everything', [
109109
'build'
110110
'test'
111+
'integration_test'
111112
]
112113

113114
# This is the target run by Travis. Targets in here should run locally
@@ -359,6 +360,8 @@ module.exports = (grunt) ->
359360
'scripts/background.static.js'
360361
'!**/*spec*'
361362

363+
'generic_ui/style/*.css'
364+
362365
# extra components we use
363366
'generic_ui/fonts/*'
364367
'generic_ui/icons/*'
@@ -442,6 +445,8 @@ module.exports = (grunt) ->
442445
'!data/generic_ui/polymer/vulcanized*inline.html'
443446
'!data/generic_ui/polymer/vulcanized.js' # vulcanized.html uses vulcanized.static.js
444447

448+
'data/generic_ui/style/*.css'
449+
445450
'data/fonts/*'
446451
'data/icons/*'
447452
'data/generic_ui/fonts/*'

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ of uProxy's Grunt commands:
104104
* `dist` - Generates distribution files, including the Firefox xpi
105105
* `clean` - Cleans up
106106
* `test` - Run unit tests
107-
* `everything` - 'test', then 'build'
107+
* `integration_test` - Run integration tests
108+
* `everything` - 'build', 'test' and then 'integration_test'
108109

109110
The easiest way to stay current is to pull changes, run `grunt build` to build
110111
your distribution, and re-run as you make changes to the files.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uProxy",
3-
"version": "0.8.6",
3+
"version": "0.8.7",
44
"dependencies": {
55
"polymer": "^0.5.6",
66
"paper-elements": "Polymer/paper-elements#^0.5.6",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "uProxy",
33
"description": "Share your pathway to the Internet",
4-
"version": "0.8.6",
4+
"version": "0.8.7",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/uproxy/uproxy"

src/chrome/app/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "__MSG_appName__",
44
"description": "__MSG_appDescription__",
55
"minimum_chrome_version": "41.0.2272.63",
6-
"version": "0.8.6",
6+
"version": "0.8.7",
77
"default_locale": "en",
88
"icons": {
99
"128": "icons/128_online.png"

src/chrome/extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "__MSG_extName__",
3-
"version": "0.8.6",
3+
"version": "0.8.7",
44
"manifest_version": 2,
55
"description": "__MSG_extDescription__",
66
"minimum_chrome_version": "41.0.2272.63",

src/firefox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "This is the alpha version of uProxy.",
66
"author": "uProxy Team <info@uproxy.org>",
77
"license": "Apache 2.0",
8-
"version": "0.8.6",
8+
"version": "0.8.7",
99
"permissions": {
1010
"private-browsing": true
1111
}

src/generic_core/remote-user.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -352,14 +352,10 @@ var log :logging.Log = new logging.Log('remote-user');
352352
isOnline = true;
353353
}
354354
}
355-
if (allInstanceIds.length === 0) {
356-
// Don't send users to UI if they don't have any instances (i.e. are not
355+
if (!this.network.areAllContactsUproxy() && allInstanceIds.length === 0) {
356+
// For networks which give us profiles for non-uProxy contacts, don't
357+
// send users to the UI unless they have instances (they may not be
357358
// uProxy users).
358-
// TODO: ideally we should not have User objects for users without
359-
// instances, but for now we create Users whenever we get a UserProfile
360-
// or ClientState from the social provider that isn't
361-
// ONLINE_WITH_OTHER_APP. For now this is necessary because we don't
362-
// yet load instances from storage until User objects are created.
363359
return null;
364360
}
365361

@@ -465,7 +461,7 @@ var log :logging.Log = new logging.Log('remote-user');
465461
this.instances_[instanceId] = new remote_instance.RemoteInstance(this, instanceId);
466462
onceLoadedPromises.push(this.instances_[instanceId].onceLoaded);
467463
}
468-
464+
469465
}
470466
Promise.all(onceLoadedPromises).then(this.fulfillStorageLoad_);
471467

src/generic_core/social.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,18 @@ import ui = ui_connector.connector;
4040
export var NETWORK_OPTIONS :{[name:string]:social.NetworkOptions} = {
4141
'Google': {
4242
isFirebase: false,
43-
enableMonitoring: true
43+
enableMonitoring: true,
44+
areAllContactsUproxy: false
4445
},
4546
'Facebook': {
4647
isFirebase: true,
47-
enableMonitoring: true
48+
enableMonitoring: true,
49+
areAllContactsUproxy: true
4850
},
4951
'Google+': {
5052
isFirebase: true,
51-
enableMonitoring: true
53+
enableMonitoring: true,
54+
areAllContactsUproxy: false
5255
}
5356
}
5457

@@ -259,6 +262,12 @@ import ui = ui_connector.connector;
259262
throw new Error('Operation not implemented');
260263
}
261264

265+
public areAllContactsUproxy = () : boolean => {
266+
// Default to false.
267+
var options :social.NetworkOptions = NETWORK_OPTIONS[this.name];
268+
return options ? options.areAllContactsUproxy === true : false;
269+
}
270+
262271
} // class AbstractNetwork
263272

264273

src/generic_ui/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
<link rel='import' href='polymer/vulcanized.html'>
1212
<link href='fonts/Roboto.css' rel='stylesheet' type='text/css'>
13+
<link href='style/global.css' rel='stylesheet' shim-shadowdom>
1314

1415
<style>
1516
@font-face {

0 commit comments

Comments
 (0)