Skip to content

Commit 8575c9d

Browse files
authored
Cutover to new code push SDK (microsoft#563)
* Start upgrading to newest code-push sdk version Use new DNS alias for codepush server. * Update to lastest beta version of code-push + bump version number
1 parent 6bbab8d commit 8575c9d

File tree

8 files changed

+22
-41
lines changed

8 files changed

+22
-41
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ With the CodePush plugin installed, configure your app to use it via the followi
9494
2. If you're using an `<access origin="*" />` element in your `config.xml` file, then your app is already allowed to communicate with the CodePush servers and you can safely skip this step. Otherwise, add the following additional `<access />` elements:
9595

9696
```xml
97-
<access origin="https://codepush.azurewebsites.net" />
97+
<access origin="https://codepush.appcenter.ms" />
9898
<access origin="https://codepush.blob.core.windows.net" />
9999
<access origin="https://codepushupdates.azureedge.net" />
100100
```
101101

102-
3. To ensure that your app can access the CodePush server on [CSP](https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policy)-compliant platforms, add `https://codepush.azurewebsites.net` to the `Content-Security-Policy` `meta` tag in your `index.html` file:
102+
3. To ensure that your app can access the CodePush server on [CSP](https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policy)-compliant platforms, add `https://codepush.appcenter.ms` to the `Content-Security-Policy` `meta` tag in your `index.html` file:
103103

104104
```xml
105-
<meta http-equiv="Content-Security-Policy" content="default-src https://codepush.azurewebsites.net 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *" />
105+
<meta http-equiv="Content-Security-Policy" content="default-src https://codepush.appcenter.ms 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *" />
106106
```
107107

108108
4. Finally, double-check that you already have the [`cordova-plugin-whitelist`](https://github.com/apache/cordova-plugin-whitelist) plugin installed (most apps will). To check this, simply run the following command:

bin/www/nativeAppInfo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
"use strict";
11-
var DefaultServerUrl = "https://codepush.azurewebsites.net/";
11+
var DefaultServerUrl = "https://codepush.appcenter.ms/";
1212
var NativeAppInfo = (function () {
1313
function NativeAppInfo() {
1414
}

package-lock.json

+12-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-plugin-code-push",
3-
"version": "1.11.20",
3+
"version": "1.12.0-beta.0",
44
"description": "CodePush Plugin for Apache Cordova",
55
"cordova": {
66
"id": "cordova-plugin-code-push",

plugin.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-code-push" version="1.11.20">
2+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-code-push" version="1.12.0-beta.0">
33
<name>CodePush</name>
44
<description>This plugin allows you to push code updates to your apps instantly using the CodePush service</description>
55
<license>MIT</license>
66
<keywords>cordova,code,push</keywords>
77
<repo>https://github.com/Microsoft/cordova-plugin-code-push.git</repo>
88

9-
<dependency id="code-push" version="2.0.7" />
9+
<dependency id="code-push" version="3.0.0-beta.2" />
1010
<dependency id="cordova-plugin-dialogs" version=">=1.1.1" />
1111
<dependency id="cordova-plugin-device" version=">=1.1.0" />
1212

samples/advanced/www/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* Enable inline JS: add 'unsafe-inline' to default-src
3030
* CodePush users, you need to add the CodePush server URL to the CSP's default-src
3131
-->
32-
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://codepush.azurewebsites.net/ data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
32+
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://codepush.appcenter.ms/ data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
3333
<meta name="format-detection" content="telephone=no">
3434
<meta name="msapplication-tap-highlight" content="no">
3535
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">

samples/basic/www/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* Enable inline JS: add 'unsafe-inline' to default-src
3030
* CodePush users, you need to add the CodePush server URL to the CSP's default-src
3131
-->
32-
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://codepush.azurewebsites.net/ data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
32+
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://codepush.appcenter.ms/ data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
3333
<meta name="format-detection" content="telephone=no">
3434
<meta name="msapplication-tap-highlight" content="no">
3535
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">

www/nativeAppInfo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
declare var cordova: Cordova;
77

8-
const DefaultServerUrl: string = "https://codepush.azurewebsites.net/";
8+
const DefaultServerUrl: string = "https://codepush.appcenter.ms/";
99

1010
/**
1111
* Provides information about the native app.

0 commit comments

Comments
 (0)