Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
Expand All @@ -23,12 +23,12 @@
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier", "plugin:@nrwl/nx/typescript"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier", "plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
},
{
Expand Down
Binary file modified .swp
Binary file not shown.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- [@essent/nativescript-medallia](packages/nativescript-medallia/README.md)
- [@essent/nativescript-ng-sentry](packages/nativescript-ng-sentry/README.md)
- [@essent/nativescript-urban-airship](packages/nativescript-urban-airship/README.md)
- [@essent/nativescript-webview-ext](packages/nativescript-webview-ext/README.md)

# How to use?

Expand Down
3 changes: 2 additions & 1 deletion apps/demo-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"@essent/nativescript-appdynamics": "file:../../dist/packages/nativescript-appdynamics",
"@essent/nativescript-iadvize": "file:../../dist/packages/nativescript-iadvize",
"@essent/nativescript-medallia": "file:../../dist/packages/nativescript-medallia",
"@essent/nativescript-urban-airship": "file:../../dist/packages/nativescript-urban-airship"
"@essent/nativescript-urban-airship": "file:../../dist/packages/nativescript-urban-airship",
"@essent/nativescript-webview-ext": "file:../../dist/packages/nativescript-webview-ext"
},
"devDependencies": {
"@nativescript/android": "~8.5.0",
Expand Down
8 changes: 4 additions & 4 deletions apps/demo-angular/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependsOn": [
{
"target": "build.all",
"projects": "dependencies"
"dependencies": true
}
]
},
Expand All @@ -29,7 +29,7 @@
"dependsOn": [
{
"target": "build.demo",
"projects": "dependencies"
"dependencies": true
}
]
},
Expand All @@ -41,7 +41,7 @@
"dependsOn": [
{
"target": "build.demo",
"projects": "dependencies"
"dependencies": true
}
]
},
Expand All @@ -52,7 +52,7 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"options": {
"lintFilePatterns": ["apps/demo-angular/**/*.ts"]
}
Expand Down
1 change: 1 addition & 0 deletions apps/demo-angular/src/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const routes: Routes = [
{ path: 'nativescript-medallia', loadChildren: () => import('./plugin-demos/nativescript-medallia.module').then((m) => m.NativescriptMedalliaModule) },
{ path: 'nativescript-ng-sentry', loadChildren: () => import('./plugin-demos/nativescript-ng-sentry.module').then((m) => m.NativescriptNgSentryModule) },
{ path: 'nativescript-urban-airship', loadChildren: () => import('./plugin-demos/nativescript-urban-airship.module').then((m) => m.NativescriptUrbanAirshipModule) },
{ path: 'nativescript-webview-ext', loadChildren: () => import('./plugin-demos/nativescript-webview-ext.module').then((m) => m.NativescriptWebviewExtModule) },
];

@NgModule({
Expand Down
3 changes: 3 additions & 0 deletions apps/demo-angular/src/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ export class HomeComponent {
{
name: 'nativescript-urban-airship',
},
{
name: 'nativescript-webview-ext',
},
];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<ActionBar title="nativescript-webview-ext" class="action-bar"> </ActionBar>
<StackLayout class="p-20">
<ScrollView class="h-full">
<StackLayout>
<Button text="Test nativescript-webview-ext" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
</StackLayout>
</ScrollView>
</StackLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Component, NgZone } from '@angular/core';
import { DemoSharedNativescriptWebviewExt } from '@demo/shared';
import {} from '@essent/nativescript-webview-ext';

@Component({
selector: 'demo-nativescript-webview-ext',
templateUrl: 'nativescript-webview-ext.component.html',
})
export class NativescriptWebviewExtComponent {
demoShared: DemoSharedNativescriptWebviewExt;

constructor(private _ngZone: NgZone) {}

ngOnInit() {
this.demoShared = new DemoSharedNativescriptWebviewExt();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
import { NativescriptWebviewExtComponent } from './nativescript-webview-ext.component';

@NgModule({
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptWebviewExtComponent }])],
declarations: [NativescriptWebviewExtComponent],
schemas: [NO_ERRORS_SCHEMA],
})
export class NativescriptWebviewExtModule {}
3 changes: 2 additions & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"@essent/nativescript-appdynamics": "file:../../packages/nativescript-appdynamics",
"@essent/nativescript-iadvize": "file:../../packages/nativescript-iadvize",
"@essent/nativescript-medallia": "file:../../packages/nativescript-medallia",
"@essent/nativescript-urban-airship": "file:../../packages/nativescript-urban-airship"
"@essent/nativescript-urban-airship": "file:../../packages/nativescript-urban-airship",
"@essent/nativescript-webview-ext": "file:../../packages/nativescript-webview-ext"
},
"devDependencies": {
"@nativescript/android": "~8.5.0",
Expand Down
8 changes: 4 additions & 4 deletions apps/demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependsOn": [
{
"target": "build.all",
"projects": "dependencies"
"dependencies": true
}
]
},
Expand All @@ -29,7 +29,7 @@
"dependsOn": [
{
"target": "build.demo",
"projects": "dependencies"
"dependencies": true
}
]
},
Expand All @@ -41,7 +41,7 @@
"dependsOn": [
{
"target": "build.demo",
"projects": "dependencies"
"dependencies": true
}
]
},
Expand All @@ -52,7 +52,7 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"options": {
"lintFilePatterns": ["apps/demo/**/*.ts"]
}
Expand Down
1 change: 1 addition & 0 deletions apps/demo/src/main-page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<Button text="nativescript-medallia" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
<Button text="nativescript-ng-sentry" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
<Button text="nativescript-urban-airship" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
<Button text="nativescript-webview-ext" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
</StackLayout>
</ScrollView>
</StackLayout>
Expand Down
10 changes: 10 additions & 0 deletions apps/demo/src/plugin-demos/nativescript-webview-ext.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Observable, EventData, Page } from '@nativescript/core';
import { DemoSharedNativescriptWebviewExt } from '@demo/shared';
import {} from '@essent/nativescript-webview-ext';

export function navigatingTo(args: EventData) {
const page = <Page>args.object;
page.bindingContext = new DemoModel();
}

export class DemoModel extends DemoSharedNativescriptWebviewExt {}
14 changes: 14 additions & 0 deletions apps/demo/src/plugin-demos/nativescript-webview-ext.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo" class="page">
<Page.actionBar>
<ActionBar title="nativescript-webview-ext" icon="" class="action-bar">
</ActionBar>
</Page.actionBar>
<StackLayout class="p-20">
<ScrollView class="h-full">
<StackLayout>
<Button text="Test nativescript-webview-ext" tap="{{ testIt }}" class="btn btn-primary"/>

</StackLayout>
</ScrollView>
</StackLayout>
</Page>
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { getJestProjects } = require('@nrwl/jest');
const { getJestProjects } = require('@nx/jest');

export default { projects: [...getJestProjects()] };
20 changes: 0 additions & 20 deletions migrations.json

This file was deleted.

38 changes: 22 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,37 @@
},
"private": true,
"devDependencies": {
"@angular/animations": "^15.0.0",
"@angular/common": "^15.0.0",
"@angular/compiler": "^15.0.0",
"@angular/compiler-cli": "^15.0.0",
"@angular/core": "^15.0.0",
"@angular/forms": "^15.0.0",
"@angular/platform-browser": "^15.0.0",
"@angular/platform-browser-dynamic": "^15.0.0",
"@angular/router": "^15.0.0",
"@nativescript/angular": "^15.0.0",
"@angular-devkit/build-angular": "^16.0.0",
"@angular/animations": "~16.0.0",
"@angular/common": "~16.0.0",
"@angular/compiler": "~16.0.0",
"@angular/compiler-cli": "~16.0.0",
"@angular/core": "~16.0.0",
"@angular/forms": "~16.0.0",
"@angular/platform-browser": "~16.0.0",
"@angular/platform-browser-dynamic": "~16.0.0",
"@angular/router": "~16.0.0",
"@nativescript/angular": "^16.0.0",
"@nativescript/appversion": "^2.0.0",
"@nativescript/core": "~8.5.0",
"@nativescript/plugin-tools": "5.1.0",
"@nativescript/plugin-tools": "5.2.0-alpha.1",
"@nativescript/types": "~8.5.0",
"@nativescript/webpack": "~5.0.5",
"@ngtools/webpack": "^15.0.0",
"@ngtools/webpack": "~16.0.0",
"husky": "^8.0.0",
"moment": "^2.0.0",
"nativescript-vue": "~2.9.0",
"nativescript-vue-template-compiler": "~2.9.0",
"ng-packagr": "^15.0.0",
"ng-packagr": "~16.0.0",
"promise-polyfill": "~8.3.0",
"rxjs": "~7.5.0",
"typescript": "~4.8.0",
"zone.js": "~0.13.0",
"@angular-devkit/build-angular": "^15.0.0"
"ts-patch": "^3.0.0",
"typescript": "~5.0.0",
"whatwg-fetch": "^3.6.2",
"zone.js": "~0.13.0"
},
"resolutions": {
"ts-patch": "^3.0.0"
},
"lint-staged": {
"**/*.{js,ts,scss,json,html}": [
Expand Down
Binary file not shown.
Binary file not shown.
9 changes: 4 additions & 5 deletions packages/nativescript-adobe-experience-cloud/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sourceRoot": "packages/nativescript-adobe-experience-cloud",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nx/js:tsc",
"options": {
"outputPath": "dist/packages/nativescript-adobe-experience-cloud",
"tsConfig": "packages/nativescript-adobe-experience-cloud/tsconfig.json",
Expand Down Expand Up @@ -39,11 +39,10 @@
"dependsOn": [
{
"target": "build.all",
"projects": "dependencies"
"dependencies": true
},
{
"target": "build",
"projects": "self"
"target": "build"
}
]
},
Expand All @@ -55,7 +54,7 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"options": {
"lintFilePatterns": ["packages/nativescript-adobe-experience-cloud/**/*.ts"]
}
Expand Down
Binary file not shown.
19 changes: 8 additions & 11 deletions packages/nativescript-appdynamics/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sourceRoot": "packages/nativescript-appdynamics",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nx/js:tsc",
"options": {
"outputPath": "dist/packages/nativescript-appdynamics",
"tsConfig": "packages/nativescript-appdynamics/tsconfig.json",
Expand Down Expand Up @@ -41,11 +41,10 @@
"dependsOn": [
{
"target": "build.hooks",
"projects": "dependencies"
"dependencies": true
},
{
"target": "build",
"projects": "self"
"target": "build"
}
]
},
Expand All @@ -59,15 +58,13 @@
"dependsOn": [
{
"target": "build.all",
"projects": "dependencies"
"dependencies": true
},
{
"target": "build.hooks",
"projects": "self"
"target": "build.hooks"
},
{
"target": "build",
"projects": "self"
"target": "build"
}
]
},
Expand All @@ -81,7 +78,7 @@
"dependsOn": [
{
"target": "build.all",
"projects": "dependencies"
"dependencies": true
}
]
},
Expand All @@ -93,7 +90,7 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"options": {
"lintFilePatterns": ["packages/nativescript-appdynamics/**/*.ts"]
}
Expand Down
Loading