diff --git a/README.md b/README.md index e39e8e0..b9604dd 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ - [@nstudio/nativescript-auth0](packages/nativescript-auth0/README.md) - [@nstudio/nativescript-barcodescanner](packages/nativescript-barcodescanner/README.md) - [@nstudio/nativescript-blur](packages/nativescript-blur/README.md) +- [@nstudio/nativescript-branch](packages/nativescript-branch/README.md) - [@nstudio/nativescript-camera-plus](packages/nativescript-camera-plus/README.md) - [@nstudio/nativescript-cardview](packages/nativescript-cardview/README.md) - [@nstudio/nativescript-carousel](packages/nativescript-carousel/README.md) diff --git a/apps/demo-angular/package.json b/apps/demo-angular/package.json index 9404f95..cf0399d 100644 --- a/apps/demo-angular/package.json +++ b/apps/demo-angular/package.json @@ -30,7 +30,8 @@ "@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-web-server": "file:../../dist/packages/nativescript-web-server" + "@nstudio/nativescript-web-server": "file:../../dist/packages/nativescript-web-server", + "@nstudio/nativescript-branch": "file:../../dist/packages/nativescript-branch" }, "devDependencies": { "@nativescript/android": "~8.9.0", diff --git a/apps/demo-angular/src/app-routing.module.ts b/apps/demo-angular/src/app-routing.module.ts index 3ba3e16..2cfb346 100644 --- a/apps/demo-angular/src/app-routing.module.ts +++ b/apps/demo-angular/src/app-routing.module.ts @@ -15,6 +15,7 @@ const routes: Routes = [ { path: 'nativescript-auth0', loadChildren: () => import('./plugin-demos/nativescript-auth0.module').then((m) => m.NativescriptAuth0Module) }, { path: 'nativescript-barcodescanner', loadChildren: () => import('./plugin-demos/nativescript-barcodescanner.module').then((m) => m.NativescriptBarcodescannerModule) }, { path: 'nativescript-blur', loadChildren: () => import('./plugin-demos/nativescript-blur.module').then((m) => m.NativescriptBlurModule) }, + { path: 'nativescript-branch', loadChildren: () => import('./plugin-demos/nativescript-branch.module').then((m) => m.NativescriptBranchModule) }, { path: 'nativescript-camera-plus', loadChildren: () => import('./plugin-demos/nativescript-camera-plus.module').then((m) => m.NativescriptCameraPlusModule) }, { path: 'nativescript-cardview', loadChildren: () => import('./plugin-demos/nativescript-cardview.module').then((m) => m.NativescriptCardviewModule) }, { path: 'nativescript-carousel', loadChildren: () => import('./plugin-demos/nativescript-carousel.module').then((m) => m.NativescriptCarouselModule) }, diff --git a/apps/demo-angular/src/home.component.ts b/apps/demo-angular/src/home.component.ts index 70dfc9e..3c465c2 100644 --- a/apps/demo-angular/src/home.component.ts +++ b/apps/demo-angular/src/home.component.ts @@ -33,6 +33,9 @@ export class HomeComponent { { name: 'nativescript-blur', }, + { + name: 'nativescript-branch', + }, { name: 'nativescript-camera-plus', }, diff --git a/apps/demo-angular/src/plugin-demos/nativescript-branch.component.html b/apps/demo-angular/src/plugin-demos/nativescript-branch.component.html new file mode 100644 index 0000000..ce9fe7f --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-branch.component.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/apps/demo-angular/src/plugin-demos/nativescript-branch.component.ts b/apps/demo-angular/src/plugin-demos/nativescript-branch.component.ts new file mode 100644 index 0000000..69b61a6 --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-branch.component.ts @@ -0,0 +1,17 @@ +import { Component, NgZone } from '@angular/core'; +import { DemoSharedNativescriptBranch } from '@demo/shared'; +import {} from '@nstudio/nativescript-branch'; + +@Component({ + selector: 'demo-nativescript-branch', + templateUrl: 'nativescript-branch.component.html', +}) +export class NativescriptBranchComponent { + demoShared: DemoSharedNativescriptBranch; + + constructor(private _ngZone: NgZone) {} + + ngOnInit() { + this.demoShared = new DemoSharedNativescriptBranch(); + } +} diff --git a/apps/demo-angular/src/plugin-demos/nativescript-branch.module.ts b/apps/demo-angular/src/plugin-demos/nativescript-branch.module.ts new file mode 100644 index 0000000..8295a4f --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-branch.module.ts @@ -0,0 +1,10 @@ +import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; +import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular'; +import { NativescriptBranchComponent } from './nativescript-branch.component'; + +@NgModule({ + imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptBranchComponent }])], + declarations: [NativescriptBranchComponent], + schemas: [NO_ERRORS_SCHEMA], +}) +export class NativescriptBranchModule {} diff --git a/apps/demo-angular/tsconfig.json b/apps/demo-angular/tsconfig.json index 123763f..1fcca7c 100644 --- a/apps/demo-angular/tsconfig.json +++ b/apps/demo-angular/tsconfig.json @@ -35,6 +35,7 @@ "@nstudio/nativescript-persona": ["../../packages/nativescript-persona/index.d.ts"], "@nstudio/nativescript-walletconnect": ["../../packages/nativescript-walletconnect/index.d.ts"], "@nstudio/nativescript-web-server": ["../../packages/nativescript-web-server/index.d.ts"], + "@nstudio/nativescript-branch": ["../../packages/nativescript-branch/index.d.ts"], "@nstudio/nativescript-auth0": ["../../packages/nativescript-auth0/index.d.ts"] } }, diff --git a/apps/demo/package.json b/apps/demo/package.json index 5b33684..baa07aa 100644 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -17,8 +17,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", @@ -31,7 +31,8 @@ "@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-web-server": "file:../../packages/nativescript-web-server" + "@nstudio/nativescript-web-server": "file:../../packages/nativescript-web-server", + "@nstudio/nativescript-branch": "file:../../packages/nativescript-branch" }, "devDependencies": { "@nativescript/android": "~9.0.0", diff --git a/apps/demo/src/main-page.xml b/apps/demo/src/main-page.xml index 2859064..8ee4ede 100644 --- a/apps/demo/src/main-page.xml +++ b/apps/demo/src/main-page.xml @@ -34,6 +34,7 @@