Skip to content

Commit 0290951

Browse files
committed
fix: angular build
1 parent 8d03ad0 commit 0290951

File tree

8 files changed

+21
-15
lines changed

8 files changed

+21
-15
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"build.android": "bash src-native/android/build.sh",
99
"build.ios": "bash src-native/ios/build.sh",
1010
"build.native": "npm run build.android && npm run build.ios",
11+
"build.angular": "lerna run build.angular",
1112
"build": "lerna run build",
1213
"demo.ios": "npm run build && cd ./demo && tns run ios",
1314
"demo.android": "npm run build && cd ./demo && tns run android",
@@ -88,6 +89,7 @@
8889
"descriptions": {
8990
"build": "Build the plugin",
9091
"build.all": "Build the plugin for all platforms",
92+
"build.angular": "Build the plugin for Angular",
9193
"clean": "Clean the local environment.",
9294
"demo.vue.android": "Runs the Vue demo on Android.",
9395
"demo.vue.ios": "Runs the Vue demo on iOS.",

packages/https/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"rootDir": "../../src/https",
55
"outDir": "./"
66
},
7-
"include": ["../../src/https/**/*", "../../references.d.ts", "../../tools/references.d.ts", "../../src/references.d.ts"]
7+
"include": ["../../src/https/**/*", "../../references.d.ts", "../../tools/references.d.ts", "../../src/references.d.ts"],
8+
"exclude": ["../../src/https/angular/**"]
89
}

src/https/angular/excluded.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ export class ExcludedService {
2121
public skipSslPinning(request: HttpRequest<any>): boolean {
2222
return this.contains(request.url);
2323
}
24-
}
24+
}

src/https/angular/ns-http-xhr-backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
HttpsRequestOptions,
1717
HttpsResponse,
1818
request as httpsRequest
19-
} from '../request';
19+
} from '@nativescript-community/https';
2020
import { ExcludedService } from './excluded.service';
2121

2222
/** Https request default options. */

src/https/angular/ns-https.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NgModule, ModuleWithProviders, Optional, Inject, InjectionToken } from '@angular/core';
22
import { HttpBackend } from '@angular/common/http';
33
import { NativeScriptHttpClientModule } from '@nativescript/angular';
4-
import { HttpsSSLPinningOptions, enableSSLPinning } from '../request';
4+
import { HttpsSSLPinningOptions, enableSSLPinning } from '@nativescript-community/https';
55
import {
66
HTTPS_REQUEST_DEFAULT_OPTIONS,
77
NativeScriptHttpXhrBackend,

src/https/angular/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
2-
"name": "@nativescript-community/https-angular",
3-
"main": "index.js"
4-
}
1+
{
2+
"name": "@nativescript-community/https-angular",
3+
"main": "index.js"
4+
}

src/https/angular/tsconfig.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
"rootDir": "./",
55
"plugins": [],
66
"paths": {
7-
"@nativescript-community/https": ["packages/https"],
8-
"@nativescript-community/https/*": ["packages/https/*"]
7+
"@nativescript-community/https": ["../../../packages/https"],
8+
"@nativescript-community/https/*": ["../../../packages/https/*"]
99
}
1010
},
1111
"include": ["./**/*.ts", "../../../references.d.ts", "../references.d.ts"],
12-
"exclude": ["../node_modules"]
12+
"exclude": ["../../../node_modules"],
13+
"angularCompilerOptions": {
14+
"enableIvy": true
15+
}
1316
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2207,7 +2207,7 @@ __metadata:
22072207

22082208
"@nativescript-community/plugin-seed-tools@file:tools::locator=root-workspace-0b6124%40workspace%3A.":
22092209
version: 1.0.0
2210-
resolution: "@nativescript-community/plugin-seed-tools@file:tools#tools::hash=c24459&locator=root-workspace-0b6124%40workspace%3A."
2210+
resolution: "@nativescript-community/plugin-seed-tools@file:tools#tools::hash=21bc81&locator=root-workspace-0b6124%40workspace%3A."
22112211
dependencies:
22122212
"@angular/animations": ~14.2.12
22132213
"@angular/common": ~14.2.12
@@ -2266,7 +2266,7 @@ __metadata:
22662266
vue: ~2.6.14
22672267
yargs: ^17.6.2
22682268
zone.js: ~0.12.0
2269-
checksum: cf4c25d0218c115fd5808d27c175d0eeaeacdb34e0368e2693addf779561448ec6ba53943a55fed05f69fa0982dbe01bb3a2a07eba323a4b9e4be8f872e1a5d4
2269+
checksum: 133eaca99071344bb30daaded1d5891a45bf51e80034ac3e7c92e39b2a446d8266f14bfb886103e5c3a2fac1a218128a8545afb2fc544d3b3fa7fbe4853c6752
22702270
languageName: node
22712271
linkType: hard
22722272

@@ -2280,10 +2280,10 @@ __metadata:
22802280

22812281
"@nativescript-community/template-snippet@file:demo-snippets::locator=root-workspace-0b6124%40workspace%3A.":
22822282
version: 0.0.1
2283-
resolution: "@nativescript-community/template-snippet@file:demo-snippets#demo-snippets::hash=d4e9e3&locator=root-workspace-0b6124%40workspace%3A."
2283+
resolution: "@nativescript-community/template-snippet@file:demo-snippets#demo-snippets::hash=07d2c5&locator=root-workspace-0b6124%40workspace%3A."
22842284
dependencies:
22852285
"@nativescript-community/https": 4.0.11
2286-
checksum: f014928308c7935ca7a73bf49dde7c195c6e55a49c1ce9bd11b521c3e460cfc8953443e26d17803960a7df369513bf2c0d49dd73b61e665bbe3eeb0e5e8af62d
2286+
checksum: 0034d1e678e6ffbb0d898b54ba4bde0216d2005a10c4f49d5b23ed59c03ea64d736eadb4a683bff0bca9031cdd3aa9620f181ab6a3bbe1ce6912408a8841ef6c
22872287
languageName: node
22882288
linkType: hard
22892289

0 commit comments

Comments
 (0)