diff --git a/README.md b/README.md index e82b88b6..eba7905a 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-walletconnect-legacy](packages/nativescript-walletconnect-legacy/README.md) # How to use? diff --git a/apps/demo-angular/package.json b/apps/demo-angular/package.json index 46a9202d..81c47e19 100644 --- a/apps/demo-angular/package.json +++ b/apps/demo-angular/package.json @@ -2,11 +2,12 @@ "main": "./src/main.ts", "dependencies": { "@nativescript/core": "file:../../node_modules/@nativescript/core", - "@nstudio/nativescript-appcues": "file:../../dist/packages/nativescript-appcues", + "@nstudio/nativescript-walletconnect-legacy": "file:../../dist/packages/nativescript-walletconnect-legacy", "@nstudio/nativescript-airship": "file:../../dist/packages/nativescript-airship", "@nstudio/nativescript-airship-adm": "file:../../dist/packages/nativescript-airship-adm", "@nstudio/nativescript-airship-fcm": "file:../../dist/packages/nativescript-airship-fcm", "@nstudio/nativescript-airship-hms": "file:../../dist/packages/nativescript-airship-hms", + "@nstudio/nativescript-appcues": "file:../../dist/packages/nativescript-appcues", "@nstudio/nativescript-aptabase": "file:../../dist/packages/nativescript-aptabase", "@nstudio/nativescript-barcodescanner": "file:../../dist/packages/nativescript-barcodescanner", "@nstudio/nativescript-blur": "file:../../dist/packages/nativescript-blur", diff --git a/apps/demo-angular/src/app-routing.module.ts b/apps/demo-angular/src/app-routing.module.ts index 73c62f6b..b64d8ab2 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-walletconnect-legacy', loadChildren: () => import('./plugin-demos/nativescript-walletconnect-legacy.module').then(m => m.NativescriptWalletconnectLegacyModule) } ]; @NgModule({ diff --git a/apps/demo-angular/src/home.component.ts b/apps/demo-angular/src/home.component.ts index 09216b98..a59d4da9 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-walletconnect-legacy' } ]; } \ No newline at end of file diff --git a/apps/demo-angular/src/plugin-demos/nativescript-walletconnect-legacy.component.html b/apps/demo-angular/src/plugin-demos/nativescript-walletconnect-legacy.component.html new file mode 100644 index 00000000..6f27edd1 --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-walletconnect-legacy.component.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/apps/demo-angular/src/plugin-demos/nativescript-walletconnect-legacy.component.ts b/apps/demo-angular/src/plugin-demos/nativescript-walletconnect-legacy.component.ts new file mode 100644 index 00000000..d35ecb37 --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-walletconnect-legacy.component.ts @@ -0,0 +1,17 @@ +import { Component, NgZone } from '@angular/core'; +import { DemoSharedNativescriptWalletconnectLegacy } from '@demo/shared'; +import {} from '@nstudio/nativescript-walletconnect-legacy'; + +@Component({ + selector: 'demo-nativescript-walletconnect-legacy', + templateUrl: 'nativescript-walletconnect-legacy.component.html', +}) +export class NativescriptWalletconnectLegacyComponent { + demoShared: DemoSharedNativescriptWalletconnectLegacy; + + constructor(private _ngZone: NgZone) {} + + ngOnInit() { + this.demoShared = new DemoSharedNativescriptWalletconnectLegacy(); + } +} diff --git a/apps/demo-angular/src/plugin-demos/nativescript-walletconnect-legacy.module.ts b/apps/demo-angular/src/plugin-demos/nativescript-walletconnect-legacy.module.ts new file mode 100644 index 00000000..d7297c4e --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-walletconnect-legacy.module.ts @@ -0,0 +1,10 @@ +import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; +import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular'; +import { NativescriptWalletconnectLegacyComponent } from './nativescript-walletconnect-legacy.component'; + +@NgModule({ + imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptWalletconnectLegacyComponent }])], + declarations: [NativescriptWalletconnectLegacyComponent], + schemas: [NO_ERRORS_SCHEMA], +}) +export class NativescriptWalletconnectLegacyModule {} diff --git a/apps/demo/package.json b/apps/demo/package.json index 1622e73a..1edb3137 100644 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -3,11 +3,12 @@ "description": "NativeScript Application", "dependencies": { "@nativescript/core": "file:../../node_modules/@nativescript/core", - "@nstudio/nativescript-appcues": "file:../../packages/nativescript-appcues", + "@nstudio/nativescript-walletconnect-legacy": "file:../../packages/nativescript-walletconnect-legacy", "@nstudio/nativescript-airship": "file:../../packages/nativescript-airship", "@nstudio/nativescript-airship-adm": "file:../../packages/nativescript-airship-adm", "@nstudio/nativescript-airship-fcm": "file:../../packages/nativescript-airship-fcm", "@nstudio/nativescript-airship-hms": "file:../../packages/nativescript-airship-hms", + "@nstudio/nativescript-appcues": "file:../../packages/nativescript-appcues", "@nstudio/nativescript-aptabase": "file:../../packages/nativescript-aptabase", "@nstudio/nativescript-barcodescanner": "file:../../packages/nativescript-barcodescanner", "@nstudio/nativescript-blur": "file:../../packages/nativescript-blur", diff --git a/apps/demo/src/main-page.xml b/apps/demo/src/main-page.xml index 91f4d754..4ced6cf9 100644 --- a/apps/demo/src/main-page.xml +++ b/apps/demo/src/main-page.xml @@ -32,6 +32,7 @@