Skip to content

Commit d612c5c

Browse files
chore: updates for esm base (#74)
1 parent 945be8a commit d612c5c

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ matrix:
99
os: osx
1010
env:
1111
- WebPack="iOS"
12-
osx_image: xcode10.2
12+
osx_image: xcode12.2
1313
language: node_js
1414
node_js: "10"
1515
jdk: oraclejdk8
@@ -23,15 +23,15 @@ matrix:
2323
jdk: oraclejdk8
2424
before_install: nvm install 10
2525
script:
26-
- cd src && npm i && npm run preparedemo && cd ../demo && tns build android
26+
- cd src && npm i && npm run preparedemo && cd ../demo-ng && tns build android
2727
- os: osx
28-
osx_image: xcode10.2
28+
osx_image: xcode12.2
2929
language: node_js
3030
node_js: "10"
3131
jdk: oraclejdk8
3232
before_script: pod repo update
3333
script:
34-
- cd src && npm i && npm run preparedemo && cd ../demo && tns build ios
34+
- cd src && npm i && npm run preparedemo && cd ../demo-ng && tns build ios
3535

3636
android:
3737
components:

demo-ng/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "6.2.0"
66
},
77
"tns-ios": {
8-
"version": "6.2.0"
8+
"version": "6.5.4"
99
}
1010
},
1111
"description": "NativeScript Application",
@@ -43,17 +43,19 @@
4343
"@angular/platform-browser-dynamic": "~8.2.3",
4444
"@angular/router": "~8.2.3",
4545
"nativescript-angular": "~8.2.0",
46-
"nativescript-app-sync": "file:../publish/package/nativescript-app-sync-2.0.0.tgz",
46+
"nativescript-app-sync": "file:../publish/package/nativescript-app-sync-3.0.0.tgz",
4747
"nativescript-theme-core": "~1.0.6",
4848
"reflect-metadata": "~0.1.13",
4949
"rxjs": "~6.5.2",
50-
"tns-core-modules": "~6.2.0",
50+
"tns-core-modules": "~6.5.24",
5151
"zone.js": "~0.10.0"
5252
},
5353
"devDependencies": {
5454
"@angular/compiler-cli": "~8.2.3",
5555
"@ngtools/webpack": "~8.2.2",
5656
"nativescript-dev-webpack": "~1.3.0",
57+
"tns-android": "6.2.0",
58+
"tns-ios": "6.5.4",
5759
"typescript": "~3.5.3"
5860
}
5961
}

demo/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "6.2.0"
66
},
77
"tns-android": {
8-
"version": "6.2.0"
8+
"version": "6.5.4"
99
}
1010
},
1111
"scripts": {
@@ -31,10 +31,10 @@
3131
"ci.tslint": "npm i && tslint --config '../tslint.json' 'demoapp/**/*.ts' --exclude '**/node_modules/**' --exclude '**/typings/**'"
3232
},
3333
"dependencies": {
34-
"nativescript-app-sync": "file:../publish/package/nativescript-app-sync-2.0.0.tgz",
34+
"nativescript-app-sync": "file:../publish/package/nativescript-app-sync-3.0.0.tgz",
3535
"nativescript-theme-core": "~1.0.4",
3636
"nativescript-unit-test-runner": "0.7.0",
37-
"tns-core-modules": "~6.2.0"
37+
"tns-core-modules": "~6.5.24"
3838
},
3939
"devDependencies": {
4040
"babel-traverse": "6.26.0",
@@ -45,11 +45,12 @@
4545
"karma": "4.1.0",
4646
"karma-jasmine": "2.0.1",
4747
"karma-nativescript-launcher": "^0.4.0",
48+
"karma-webpack": "3.0.5",
4849
"lazy": "1.0.11",
4950
"nativescript-dev-webpack": "1.3.0",
51+
"tns-ios": "6.5.4",
5052
"tns-platform-declarations": "~6.2.0",
5153
"tslint": "~5.20.0",
52-
"typescript": "~3.5.3",
53-
"karma-webpack": "3.0.5"
54+
"typescript": "~3.5.3"
5455
}
5556
}

src/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-app-sync",
3-
"version": "2.0.0",
3+
"version": "3.0.0",
44
"description": "Use AppSync to hot deploy updates to your app.",
55
"main": "app-sync",
66
"typings": "index.d.ts",
@@ -70,7 +70,7 @@
7070
"dependencies": {
7171
"nativescript-app-sync-sdk": "~1.0.1",
7272
"nativescript-appversion": "~1.4.4",
73-
"nativescript-hook": "~0.2.5",
73+
"nativescript-hook": "git://github.com/NativeScript/nativescript-hook.git#feat/ns7",
7474
"nativescript-zip": "~4.0.2"
7575
},
7676
"devDependencies": {

src/scripts/ios/appsync-ios.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ function patchUIApplicationMain(iosProjectFolder) {
2020
replaceInFile(
2121
appSyncFileDest,
2222
'#import <NativeScript/NativeScript.h>',
23-
'#import <NativeScript/NativeScript.h>\n#import <AppSync/TNSAppSync.h>'
23+
'#import <NativeScript/NativeScript.h>\n#include <AppSync/TNSAppSync.h>'
2424
);
2525

2626
// now inject the function call that determines the correct application path (either default or appsync'ed)
2727
replaceInFile(
2828
appSyncFileDest,
29-
'[[NSBundle mainBundle] resourcePath]',
30-
'[TNSAppSync applicationPathWithDefault:[[NSBundle mainBundle] resourcePath]]'
29+
'baseDir = [[NSBundle mainBundle] resourcePath];',
30+
'baseDir = [TNSAppSync applicationPathWithDefault:[NSBundle mainBundle].bundlePath];'
3131
);
3232
}
3333

0 commit comments

Comments
 (0)