diff --git a/.gitignore b/.gitignore index 356fb7c4..fdaab994 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,31 @@ packages/**/native-src/android/**/.classpath packages/**/native-src/ios/**/xcuserdata/ packages/**/native-src/ios/**/project.xcworkspace/ packages/**/native-src/ios/**/build + + +# src-native +packages/**/src-native/dist + +# src-native +packages/**/src-native/**/target + +# src-native/android +packages/**/src-native/android/**/*.iml +packages/**/src-native/android/**/.gradle +packages/**/src-native/android/**/local.properties +packages/**/src-native/android/**/.idea/workspace.xml +packages/**/src-native/android/**/.idea/libraries +packages/**/src-native/android/**/.DS_Store +packages/**/src-native/android/**/build +packages/**/src-native/android/**/bin +packages/**/src-native/android/**/captures +packages/**/src-native/android/**/.externalNativeBuild +packages/**/src-native/android/**/.settings +packages/**/src-native/android/**/.project +packages/**/src-native/android/**/.classpath + +# src-native/ios +packages/**/src-native/web-server-ios/**/xcuserdata/ +packages/**/src-native/web-server-ios/**/project.xcworkspace/ +packages/**/src-native/web-server-ios/**/build +packages/**/src-native/web-server-ios/**/dist diff --git a/README.md b/README.md index e82b88b6..5c899cc5 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ - [@nstudio/nativescript-qr](packages/nativescript-qr/README.md) - [@nstudio/nativescript-tracking-transparency](packages/nativescript-tracking-transparency/README.md) - [@nstudio/nativescript-walletconnect](packages/nativescript-walletconnect/README.md) +- [@nstudio/nativescript-web-server](packages/nativescript-web-server/README.md) # How to use? diff --git a/apps/demo-angular/package.json b/apps/demo-angular/package.json index c3623d7e..a7892121 100644 --- a/apps/demo-angular/package.json +++ b/apps/demo-angular/package.json @@ -28,7 +28,8 @@ "@nstudio/nativescript-plaid": "file:../../dist/packages/nativescript-plaid", "@nstudio/nativescript-qr": "file:../../dist/packages/nativescript-qr", "@nstudio/nativescript-tracking-transparency": "file:../../dist/packages/nativescript-tracking-transparency", - "@nstudio/nativescript-walletconnect": "file:../../dist/packages/nativescript-walletconnect" + "@nstudio/nativescript-walletconnect": "file:../../dist/packages/nativescript-walletconnect", + "@nstudio/nativescript-web-server": "file:../../dist/packages/nativescript-web-server" }, "devDependencies": { "@nativescript/android": "~8.6.0", diff --git a/apps/demo-angular/src/app-routing.module.ts b/apps/demo-angular/src/app-routing.module.ts index 73c62f6b..c6bd5f41 100644 --- a/apps/demo-angular/src/app-routing.module.ts +++ b/apps/demo-angular/src/app-routing.module.ts @@ -32,7 +32,8 @@ const routes: Routes = [ { path: 'nativescript-plaid', loadChildren: () => import('./plugin-demos/nativescript-plaid.module').then(m => m.NativescriptPlaidModule) }, { path: 'nativescript-qr', loadChildren: () => import('./plugin-demos/nativescript-qr.module').then(m => m.NativescriptQrModule) }, { path: 'nativescript-tracking-transparency', loadChildren: () => import('./plugin-demos/nativescript-tracking-transparency.module').then(m => m.NativescriptTrackingTransparencyModule) }, - { path: 'nativescript-walletconnect', loadChildren: () => import('./plugin-demos/nativescript-walletconnect.module').then(m => m.NativescriptWalletconnectModule) } + { path: 'nativescript-walletconnect', loadChildren: () => import('./plugin-demos/nativescript-walletconnect.module').then(m => m.NativescriptWalletconnectModule) }, + { path: 'nativescript-web-server', loadChildren: () => import('./plugin-demos/nativescript-web-server.module').then(m => m.NativescriptWebServerModule) } ]; @NgModule({ diff --git a/apps/demo-angular/src/home.component.ts b/apps/demo-angular/src/home.component.ts index 09216b98..0ca7b493 100644 --- a/apps/demo-angular/src/home.component.ts +++ b/apps/demo-angular/src/home.component.ts @@ -86,6 +86,9 @@ export class HomeComponent { }, { name: 'nativescript-walletconnect' + }, + { + name: 'nativescript-web-server' } ]; } \ No newline at end of file diff --git a/apps/demo-angular/src/plugin-demos/nativescript-web-server.component.html b/apps/demo-angular/src/plugin-demos/nativescript-web-server.component.html new file mode 100644 index 00000000..2ca5de10 --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-web-server.component.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/apps/demo-angular/src/plugin-demos/nativescript-web-server.component.ts b/apps/demo-angular/src/plugin-demos/nativescript-web-server.component.ts new file mode 100644 index 00000000..966a8b40 --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-web-server.component.ts @@ -0,0 +1,19 @@ +import { Component, NgZone } from '@angular/core'; +import { DemoSharedNativescriptWebServer } from '@demo/shared'; +import { } from '@nstudio/nativescript-web-server'; + +@Component({ + selector: 'demo-nativescript-web-server', + templateUrl: 'nativescript-web-server.component.html', +}) +export class NativescriptWebServerComponent { + + demoShared: DemoSharedNativescriptWebServer; + + constructor(private _ngZone: NgZone) {} + + ngOnInit() { + this.demoShared = new DemoSharedNativescriptWebServer(); + } + +} \ No newline at end of file diff --git a/apps/demo-angular/src/plugin-demos/nativescript-web-server.module.ts b/apps/demo-angular/src/plugin-demos/nativescript-web-server.module.ts new file mode 100644 index 00000000..33a0df8c --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-web-server.module.ts @@ -0,0 +1,10 @@ +import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; +import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular'; +import { NativescriptWebServerComponent } from './nativescript-web-server.component'; + +@NgModule({ + imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptWebServerComponent }])], + declarations: [NativescriptWebServerComponent], + schemas: [ NO_ERRORS_SCHEMA] +}) +export class NativescriptWebServerModule {} diff --git a/apps/demo/package.json b/apps/demo/package.json index 012ac0c9..2e79912f 100644 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -15,8 +15,8 @@ "@nstudio/nativescript-cardview": "file:../../packages/nativescript-cardview", "@nstudio/nativescript-carousel": "file:../../packages/nativescript-carousel", "@nstudio/nativescript-checkbox": "file:../../packages/nativescript-checkbox", - "@nstudio/nativescript-dynatrace": "file:../../packages/nativescript-dynatrace", - "@nstudio/nativescript-embrace": "file:../../packages/nativescript-embrace", + "@nstudio/nativescript-dynatrace": "file:../../dist/packages/nativescript-dynatrace", + "@nstudio/nativescript-embrace": "file:../../dist/packages/nativescript-embrace", "@nstudio/nativescript-exoplayer": "file:../../packages/nativescript-exoplayer", "@nstudio/nativescript-fancyalert": "file:../../packages/nativescript-fancyalert", "@nstudio/nativescript-filterable-listpicker": "file:../../packages/nativescript-filterable-listpicker", @@ -29,7 +29,8 @@ "@nstudio/nativescript-plaid": "file:../../packages/nativescript-plaid", "@nstudio/nativescript-qr": "file:../../packages/nativescript-qr", "@nstudio/nativescript-tracking-transparency": "file:../../packages/nativescript-tracking-transparency", - "@nstudio/nativescript-walletconnect": "file:../../packages/nativescript-walletconnect" + "@nstudio/nativescript-walletconnect": "file:../../packages/nativescript-walletconnect", + "@nstudio/nativescript-web-server": "file:../../packages/nativescript-web-server" }, "devDependencies": { "@nativescript/android": "~8.6.0", diff --git a/apps/demo/src/main-page.xml b/apps/demo/src/main-page.xml index 91f4d754..8c87d6da 100644 --- a/apps/demo/src/main-page.xml +++ b/apps/demo/src/main-page.xml @@ -32,6 +32,7 @@