mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
Prepare for server push; bump extension version number (note that 2.2.0 of extension
never launched; now extension and Android app version in sync - should keep it this way in future)
This commit is contained in:
@@ -45,7 +45,7 @@ import android.util.Log;
|
|||||||
* AppEngine client. Handles auth.
|
* AppEngine client. Handles auth.
|
||||||
*/
|
*/
|
||||||
public class AppEngineClient {
|
public class AppEngineClient {
|
||||||
static final String BASE_URL = "https://9.chrometophone.appspot.com";
|
static final String BASE_URL = "https://chrometophone.appspot.com";
|
||||||
private static final String AUTH_URL = BASE_URL + "/_ah/login";
|
private static final String AUTH_URL = BASE_URL + "/_ah/login";
|
||||||
private static final String AUTH_TOKEN_TYPE = "ah";
|
private static final String AUTH_TOKEN_TYPE = "ah";
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "__MSG_app_name__",
|
"name": "__MSG_app_name__",
|
||||||
"description": "__MSG_app_desc__",
|
"description": "__MSG_app_desc__",
|
||||||
"version": "2.2.0",
|
"version": "2.3.0",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"icons": {
|
"icons": {
|
||||||
"16": "icon_16.png",
|
"16": "icon_16.png",
|
||||||
|
|||||||
@@ -26,10 +26,11 @@ if (deviceRegistrationId == undefined || deviceRegistrationId == null) {
|
|||||||
// use javascript console
|
// use javascript console
|
||||||
var host = localStorage['c2dmHost'];
|
var host = localStorage['c2dmHost'];
|
||||||
if (host == undefined) {
|
if (host == undefined) {
|
||||||
// This won't work very well, there is a cert validation issue (cert
|
// This won't work very well if the URL is x.chrometophone.appspot.com,
|
||||||
// is for *.appspot.com ), workaround is to open the URL in the browser
|
// there is a cert validation issue (cert is for *.appspot.com ),
|
||||||
// and accept the cert warnings.
|
// workaround is to open the URL in the browser and accept the cert
|
||||||
host = "9.chrometophone.appspot.com";
|
// warnings.
|
||||||
|
host = "chrometophone.appspot.com";
|
||||||
}
|
}
|
||||||
var baseUrl = 'https://' + host;
|
var baseUrl = 'https://' + host;
|
||||||
var sendUrl = baseUrl + '/send?ver=' + apiVersion;
|
var sendUrl = baseUrl + '/send?ver=' + apiVersion;
|
||||||
|
|||||||
Reference in New Issue
Block a user