Skip to content

Commit

Permalink
New server URL
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Jun 26, 2019
1 parent 4082d8e commit c2b9301
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ nativescript-app-sync app ls
tns plugin add nativescript-app-sync
```

> ⚠️ If you're restricting access to the internet from within your app, make sure you whitelist our AppSync server (`https://nativescript-codepush-server.herokuapp.com`) and File server (`https://s3.eu-west-1.amazonaws.com`).
> ⚠️ If you're restricting access to the internet from within your app, make sure you whitelist our AppSync server (`https://appsync-server.nativescript.org`) and File server (`https://s3.eu-west-1.amazonaws.com`).
## Checking for updates
With the AppSync plugin installed and configured, the only thing left is to add the necessary code to your app to control when it checks for updates.
Expand Down
2 changes: 1 addition & 1 deletion demo-ng/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@angular/platform-browser-dynamic": "~7.2.0",
"@angular/router": "~7.2.0",
"nativescript-angular": "~7.2.0",
"nativescript-app-sync": "file:../publish/package/nativescript-app-sync-1.0.0.tgz",
"nativescript-app-sync": "file:../publish/package/nativescript-app-sync-1.0.1.tgz",
"nativescript-theme-core": "~1.0.4",
"reflect-metadata": "~0.1.12",
"rxjs": "~6.3.0",
Expand Down
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"ci.tslint": "npm i && tslint --config '../tslint.json' 'demoapp/**/*.ts' --exclude '**/node_modules/**' --exclude '**/typings/**'"
},
"dependencies": {
"nativescript-app-sync": "file:../publish/package/nativescript-app-sync-1.0.0.tgz",
"nativescript-app-sync": "file:../publish/package/nativescript-app-sync-1.0.1.tgz",
"nativescript-theme-core": "~1.0.4",
"nativescript-unit-test-runner": "^0.3.4",
"tns-core-modules": "~5.4.2"
Expand Down
4 changes: 2 additions & 2 deletions src/app-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class AppSync {
AppSync.syncInProgress = true;

// by default, use our Cloud server
options.serverUrl = options.serverUrl || "https://nativescript-codepush-server.herokuapp.com/";
options.serverUrl = options.serverUrl || "https://appsync-server.nativescript.org/";

AppSync.cleanPackagesIfNeeded();

Expand Down Expand Up @@ -207,7 +207,7 @@ export class AppSync {
static checkForUpdate(deploymentKey: string, serverUrl?: string): Promise<IRemotePackage | undefined> {
return new Promise((resolve, reject) => {
// by default, use our Cloud server
serverUrl = serverUrl || "https://nativescript-codepush-server.herokuapp.com/";
serverUrl = serverUrl || "https://appsync-server.nativescript.org/";

const config: Configuration = {
serverUrl,
Expand Down
2 changes: 1 addition & 1 deletion src/code-push-lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ interface SyncOptions extends InstallOptions {
deploymentKey: string;

/**
* Overrides the default server URL (https://nativescript-codepush-server.herokuapp.com/).
* Overrides the default server URL (https://appsync-server.nativescript.org/).
*/
serverUrl?: string;
}
Expand Down
4 changes: 2 additions & 2 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-app-sync",
"version": "1.0.0",
"version": "1.0.1",
"description": "Use AppSync to hot deploy updates to your app.",
"main": "app-sync",
"typings": "index.d.ts",
Expand Down Expand Up @@ -68,7 +68,7 @@
"homepage": "https://github.com/eddyverbruggen/nativescript-app-sync",
"readmeFilename": "README.md",
"dependencies": {
"nativescript-app-sync-cli": "~1.0.0",
"nativescript-app-sync-cli": "~1.0.1",
"nativescript-appversion": "~1.4.2",
"nativescript-hook": "~0.2.5",
"nativescript-zip": "git+https://github.com/EddyVerbruggen/nativescript-zip.git#330fa2d"
Expand Down

0 comments on commit c2b9301

Please sign in to comment.