From b489e0c486a262ea5982105590e0b4aa8fcf772d Mon Sep 17 00:00:00 2001 From: Osei Fortune Date: Mon, 26 Jun 2023 00:43:58 -0400 Subject: [PATCH 1/3] feat: walletconnect-legacy --- README.md | 1 + apps/demo-angular/package.json | 71 +++---- apps/demo-angular/src/app-routing.module.ts | 59 +++--- apps/demo-angular/src/home.component.ts | 169 +++++++++-------- ...script-walletconnect-legacy.component.html | 8 + ...vescript-walletconnect-legacy.component.ts | 17 ++ ...ativescript-walletconnect-legacy.module.ts | 10 + apps/demo/package.json | 73 ++++---- apps/demo/src/main-page.xml | 1 + .../nativescript-walletconnect-legacy.ts | 10 + .../nativescript-walletconnect-legacy.xml | 14 ++ .../.eslintrc.json | 18 ++ .../README.md | 13 ++ .../common.ts | 3 + .../index.android.ts | 3 + .../index.d.ts | 3 + .../index.ios.ts | 3 + .../package.json | 35 ++++ .../platforms/android/include.gradle | 11 ++ .../walletconnect_legacy/WalletConnect.kt | 159 ++++++++++++++++ .../nativescript_walletconnect_legacy.aar | Bin 0 -> 7570 bytes .../project.json | 65 +++++++ .../references.d.ts | 1 + .../tsconfig.json | 9 + tools/demo/index.ts | 1 + .../index.ts | 8 + tools/workspace-scripts.js | 15 +- tsconfig.base.json | 177 ++++++------------ 28 files changed, 651 insertions(+), 306 deletions(-) create mode 100644 apps/demo-angular/src/plugin-demos/nativescript-walletconnect-legacy.component.html create mode 100644 apps/demo-angular/src/plugin-demos/nativescript-walletconnect-legacy.component.ts create mode 100644 apps/demo-angular/src/plugin-demos/nativescript-walletconnect-legacy.module.ts create mode 100644 apps/demo/src/plugin-demos/nativescript-walletconnect-legacy.ts create mode 100644 apps/demo/src/plugin-demos/nativescript-walletconnect-legacy.xml create mode 100644 packages/nativescript-walletconnect-legacy/.eslintrc.json create mode 100644 packages/nativescript-walletconnect-legacy/README.md create mode 100644 packages/nativescript-walletconnect-legacy/common.ts create mode 100644 packages/nativescript-walletconnect-legacy/index.android.ts create mode 100644 packages/nativescript-walletconnect-legacy/index.d.ts create mode 100644 packages/nativescript-walletconnect-legacy/index.ios.ts create mode 100644 packages/nativescript-walletconnect-legacy/package.json create mode 100644 packages/nativescript-walletconnect-legacy/platforms/android/include.gradle create mode 100644 packages/nativescript-walletconnect-legacy/platforms/android/java/io/nstudio/plugins/walletconnect_legacy/WalletConnect.kt create mode 100644 packages/nativescript-walletconnect-legacy/platforms/android/nativescript_walletconnect_legacy.aar create mode 100644 packages/nativescript-walletconnect-legacy/project.json create mode 100644 packages/nativescript-walletconnect-legacy/references.d.ts create mode 100644 packages/nativescript-walletconnect-legacy/tsconfig.json create mode 100644 tools/demo/nativescript-walletconnect-legacy/index.ts 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..ad06b2f8 100644 --- a/apps/demo-angular/package.json +++ b/apps/demo-angular/package.json @@ -1,37 +1,38 @@ { - "main": "./src/main.ts", - "dependencies": { - "@nativescript/core": "file:../../node_modules/@nativescript/core", - "@nstudio/nativescript-appcues": "file:../../dist/packages/nativescript-appcues", - "@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-aptabase": "file:../../dist/packages/nativescript-aptabase", - "@nstudio/nativescript-barcodescanner": "file:../../dist/packages/nativescript-barcodescanner", - "@nstudio/nativescript-blur": "file:../../dist/packages/nativescript-blur", - "@nstudio/nativescript-camera-plus": "file:../../dist/packages/nativescript-camera-plus", - "@nstudio/nativescript-cardview": "file:../../dist/packages/nativescript-cardview", - "@nstudio/nativescript-carousel": "file:../../dist/packages/nativescript-carousel", - "@nstudio/nativescript-checkbox": "file:../../dist/packages/nativescript-checkbox", - "@nstudio/nativescript-dynatrace": "file:../../dist/packages/nativescript-dynatrace", - "@nstudio/nativescript-embrace": "file:../../dist/packages/nativescript-embrace", - "@nstudio/nativescript-exoplayer": "file:../../dist/packages/nativescript-exoplayer", - "@nstudio/nativescript-fancyalert": "file:../../dist/packages/nativescript-fancyalert", - "@nstudio/nativescript-filterable-listpicker": "file:../../dist/packages/nativescript-filterable-listpicker", - "@nstudio/nativescript-freshchat": "file:../../dist/packages/nativescript-freshchat", - "@nstudio/nativescript-input-mask": "file:../../dist/packages/nativescript-input-mask", - "@nstudio/nativescript-intercom": "file:../../dist/packages/nativescript-intercom", - "@nstudio/nativescript-loading-indicator": "file:../../dist/packages/nativescript-loading-indicator", - "@nstudio/nativescript-onfido": "file:../../dist/packages/nativescript-onfido", - "@nstudio/nativescript-persona": "file:../../dist/packages/nativescript-persona", - "@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" - }, - "devDependencies": { - "@nativescript/android": "~8.5.0", - "@nativescript/ios": "~8.5.0" - } + "main": "./src/main.ts", + "dependencies": { + "@nativescript/core": "file:../../node_modules/@nativescript/core", + "@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", + "@nstudio/nativescript-camera-plus": "file:../../dist/packages/nativescript-camera-plus", + "@nstudio/nativescript-cardview": "file:../../dist/packages/nativescript-cardview", + "@nstudio/nativescript-carousel": "file:../../dist/packages/nativescript-carousel", + "@nstudio/nativescript-checkbox": "file:../../dist/packages/nativescript-checkbox", + "@nstudio/nativescript-dynatrace": "file:../../dist/packages/nativescript-dynatrace", + "@nstudio/nativescript-embrace": "file:../../dist/packages/nativescript-embrace", + "@nstudio/nativescript-exoplayer": "file:../../dist/packages/nativescript-exoplayer", + "@nstudio/nativescript-fancyalert": "file:../../dist/packages/nativescript-fancyalert", + "@nstudio/nativescript-filterable-listpicker": "file:../../dist/packages/nativescript-filterable-listpicker", + "@nstudio/nativescript-freshchat": "file:../../dist/packages/nativescript-freshchat", + "@nstudio/nativescript-input-mask": "file:../../dist/packages/nativescript-input-mask", + "@nstudio/nativescript-intercom": "file:../../dist/packages/nativescript-intercom", + "@nstudio/nativescript-loading-indicator": "file:../../dist/packages/nativescript-loading-indicator", + "@nstudio/nativescript-onfido": "file:../../dist/packages/nativescript-onfido", + "@nstudio/nativescript-persona": "file:../../dist/packages/nativescript-persona", + "@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" + }, + "devDependencies": { + "@nativescript/android": "~8.5.0", + "@nativescript/ios": "~8.5.0" + } } diff --git a/apps/demo-angular/src/app-routing.module.ts b/apps/demo-angular/src/app-routing.module.ts index 73c62f6b..2d1ab4e3 100644 --- a/apps/demo-angular/src/app-routing.module.ts +++ b/apps/demo-angular/src/app-routing.module.ts @@ -4,35 +4,36 @@ import { NativeScriptRouterModule } from '@nativescript/angular'; import { HomeComponent } from './home.component'; const routes: Routes = [ - { path: '', redirectTo: '/home', pathMatch: 'full' }, - { path: 'home', component: HomeComponent }, - { path: 'nativescript-airship', loadChildren: () => import('./plugin-demos/nativescript-airship.module').then(m => m.NativescriptAirshipModule) }, - { path: 'nativescript-airship-adm', loadChildren: () => import('./plugin-demos/nativescript-airship-adm.module').then(m => m.NativescriptAirshipAdmModule) }, - { path: 'nativescript-airship-fcm', loadChildren: () => import('./plugin-demos/nativescript-airship-fcm.module').then(m => m.NativescriptAirshipFcmModule) }, - { path: 'nativescript-airship-hms', loadChildren: () => import('./plugin-demos/nativescript-airship-hms.module').then(m => m.NativescriptAirshipHmsModule) }, - { path: 'nativescript-appcues', loadChildren: () => import('./plugin-demos/nativescript-appcues.module').then(m => m.NativescriptAppcuesModule) }, - { path: 'nativescript-aptabase', loadChildren: () => import('./plugin-demos/nativescript-aptabase.module').then(m => m.NativescriptAptabaseModule) }, - { 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-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) }, - { path: 'nativescript-checkbox', loadChildren: () => import('./plugin-demos/nativescript-checkbox.module').then(m => m.NativescriptCheckboxModule) }, - { path: 'nativescript-dynatrace', loadChildren: () => import('./plugin-demos/nativescript-dynatrace.module').then(m => m.NativescriptDynatraceModule) }, - { path: 'nativescript-embrace', loadChildren: () => import('./plugin-demos/nativescript-embrace.module').then(m => m.NativescriptEmbraceModule) }, - { path: 'nativescript-exoplayer', loadChildren: () => import('./plugin-demos/nativescript-exoplayer.module').then(m => m.NativescriptExoplayerModule) }, - { path: 'nativescript-fancyalert', loadChildren: () => import('./plugin-demos/nativescript-fancyalert.module').then(m => m.NativescriptFancyalertModule) }, - { path: 'nativescript-filterable-listpicker', loadChildren: () => import('./plugin-demos/nativescript-filterable-listpicker.module').then(m => m.NativescriptFilterableListpickerModule) }, - { path: 'nativescript-freshchat', loadChildren: () => import('./plugin-demos/nativescript-freshchat.module').then(m => m.NativescriptFreshchatModule) }, - { path: 'nativescript-input-mask', loadChildren: () => import('./plugin-demos/nativescript-input-mask.module').then(m => m.NativescriptInputMaskModule) }, - { path: 'nativescript-intercom', loadChildren: () => import('./plugin-demos/nativescript-intercom.module').then(m => m.NativescriptIntercomModule) }, - { path: 'nativescript-loading-indicator', loadChildren: () => import('./plugin-demos/nativescript-loading-indicator.module').then(m => m.NativescriptLoadingIndicatorModule) }, - { path: 'nativescript-onfido', loadChildren: () => import('./plugin-demos/nativescript-onfido.module').then(m => m.NativescriptOnfidoModule) }, - { path: 'nativescript-persona', loadChildren: () => import('./plugin-demos/nativescript-persona.module').then(m => m.NativescriptPersonaModule) }, - { 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: '', redirectTo: '/home', pathMatch: 'full' }, + { path: 'home', component: HomeComponent }, + { path: 'nativescript-airship', loadChildren: () => import('./plugin-demos/nativescript-airship.module').then((m) => m.NativescriptAirshipModule) }, + { path: 'nativescript-airship-adm', loadChildren: () => import('./plugin-demos/nativescript-airship-adm.module').then((m) => m.NativescriptAirshipAdmModule) }, + { path: 'nativescript-airship-fcm', loadChildren: () => import('./plugin-demos/nativescript-airship-fcm.module').then((m) => m.NativescriptAirshipFcmModule) }, + { path: 'nativescript-airship-hms', loadChildren: () => import('./plugin-demos/nativescript-airship-hms.module').then((m) => m.NativescriptAirshipHmsModule) }, + { path: 'nativescript-appcues', loadChildren: () => import('./plugin-demos/nativescript-appcues.module').then((m) => m.NativescriptAppcuesModule) }, + { path: 'nativescript-aptabase', loadChildren: () => import('./plugin-demos/nativescript-aptabase.module').then((m) => m.NativescriptAptabaseModule) }, + { 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-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) }, + { path: 'nativescript-checkbox', loadChildren: () => import('./plugin-demos/nativescript-checkbox.module').then((m) => m.NativescriptCheckboxModule) }, + { path: 'nativescript-dynatrace', loadChildren: () => import('./plugin-demos/nativescript-dynatrace.module').then((m) => m.NativescriptDynatraceModule) }, + { path: 'nativescript-embrace', loadChildren: () => import('./plugin-demos/nativescript-embrace.module').then((m) => m.NativescriptEmbraceModule) }, + { path: 'nativescript-exoplayer', loadChildren: () => import('./plugin-demos/nativescript-exoplayer.module').then((m) => m.NativescriptExoplayerModule) }, + { path: 'nativescript-fancyalert', loadChildren: () => import('./plugin-demos/nativescript-fancyalert.module').then((m) => m.NativescriptFancyalertModule) }, + { path: 'nativescript-filterable-listpicker', loadChildren: () => import('./plugin-demos/nativescript-filterable-listpicker.module').then((m) => m.NativescriptFilterableListpickerModule) }, + { path: 'nativescript-freshchat', loadChildren: () => import('./plugin-demos/nativescript-freshchat.module').then((m) => m.NativescriptFreshchatModule) }, + { path: 'nativescript-input-mask', loadChildren: () => import('./plugin-demos/nativescript-input-mask.module').then((m) => m.NativescriptInputMaskModule) }, + { path: 'nativescript-intercom', loadChildren: () => import('./plugin-demos/nativescript-intercom.module').then((m) => m.NativescriptIntercomModule) }, + { path: 'nativescript-loading-indicator', loadChildren: () => import('./plugin-demos/nativescript-loading-indicator.module').then((m) => m.NativescriptLoadingIndicatorModule) }, + { path: 'nativescript-onfido', loadChildren: () => import('./plugin-demos/nativescript-onfido.module').then((m) => m.NativescriptOnfidoModule) }, + { path: 'nativescript-persona', loadChildren: () => import('./plugin-demos/nativescript-persona.module').then((m) => m.NativescriptPersonaModule) }, + { 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-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..f7880057 100644 --- a/apps/demo-angular/src/home.component.ts +++ b/apps/demo-angular/src/home.component.ts @@ -6,86 +6,89 @@ import { Component } from '@angular/core'; }) export class HomeComponent { demos = [ - { - name: 'nativescript-airship' - }, - { - name: 'nativescript-airship-adm' - }, - { - name: 'nativescript-airship-fcm' - }, - { - name: 'nativescript-airship-hms' - }, - { - name: 'nativescript-appcues' - }, - { - name: 'nativescript-aptabase' - }, - { - name: 'nativescript-barcodescanner' - }, - { - name: 'nativescript-blur' - }, - { - name: 'nativescript-camera-plus' - }, - { - name: 'nativescript-cardview' - }, - { - name: 'nativescript-carousel' - }, - { - name: 'nativescript-checkbox' - }, - { - name: 'nativescript-dynatrace' - }, - { - name: 'nativescript-embrace' - }, - { - name: 'nativescript-exoplayer' - }, - { - name: 'nativescript-fancyalert' - }, - { - name: 'nativescript-filterable-listpicker' - }, - { - name: 'nativescript-freshchat' - }, - { - name: 'nativescript-input-mask' - }, - { - name: 'nativescript-intercom' - }, - { - name: 'nativescript-loading-indicator' - }, - { - name: 'nativescript-onfido' - }, - { - name: 'nativescript-persona' - }, - { - name: 'nativescript-plaid' - }, - { - name: 'nativescript-qr' - }, - { - name: 'nativescript-tracking-transparency' - }, - { - name: 'nativescript-walletconnect' - } -]; -} \ No newline at end of file + { + name: 'nativescript-airship', + }, + { + name: 'nativescript-airship-adm', + }, + { + name: 'nativescript-airship-fcm', + }, + { + name: 'nativescript-airship-hms', + }, + { + name: 'nativescript-appcues', + }, + { + name: 'nativescript-aptabase', + }, + { + name: 'nativescript-barcodescanner', + }, + { + name: 'nativescript-blur', + }, + { + name: 'nativescript-camera-plus', + }, + { + name: 'nativescript-cardview', + }, + { + name: 'nativescript-carousel', + }, + { + name: 'nativescript-checkbox', + }, + { + name: 'nativescript-dynatrace', + }, + { + name: 'nativescript-embrace', + }, + { + name: 'nativescript-exoplayer', + }, + { + name: 'nativescript-fancyalert', + }, + { + name: 'nativescript-filterable-listpicker', + }, + { + name: 'nativescript-freshchat', + }, + { + name: 'nativescript-input-mask', + }, + { + name: 'nativescript-intercom', + }, + { + name: 'nativescript-loading-indicator', + }, + { + name: 'nativescript-onfido', + }, + { + name: 'nativescript-persona', + }, + { + name: 'nativescript-plaid', + }, + { + name: 'nativescript-qr', + }, + { + name: 'nativescript-tracking-transparency', + }, + { + name: 'nativescript-walletconnect', + }, + { + name: 'nativescript-walletconnect-legacy', + }, + ]; +} 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..3953e82c 100644 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -1,38 +1,39 @@ { - "main": "./src/app.ts", - "description": "NativeScript Application", - "dependencies": { - "@nativescript/core": "file:../../node_modules/@nativescript/core", - "@nstudio/nativescript-appcues": "file:../../packages/nativescript-appcues", - "@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-aptabase": "file:../../packages/nativescript-aptabase", - "@nstudio/nativescript-barcodescanner": "file:../../packages/nativescript-barcodescanner", - "@nstudio/nativescript-blur": "file:../../packages/nativescript-blur", - "@nstudio/nativescript-camera-plus": "file:../../packages/nativescript-camera-plus", - "@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-exoplayer": "file:../../packages/nativescript-exoplayer", - "@nstudio/nativescript-fancyalert": "file:../../packages/nativescript-fancyalert", - "@nstudio/nativescript-filterable-listpicker": "file:../../packages/nativescript-filterable-listpicker", - "@nstudio/nativescript-freshchat": "file:../../packages/nativescript-freshchat", - "@nstudio/nativescript-input-mask": "file:../../packages/nativescript-input-mask", - "@nstudio/nativescript-intercom": "file:../../packages/nativescript-intercom", - "@nstudio/nativescript-loading-indicator": "file:../../packages/nativescript-loading-indicator", - "@nstudio/nativescript-onfido": "file:../../packages/nativescript-onfido", - "@nstudio/nativescript-persona": "file:../../packages/nativescript-persona", - "@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" - }, - "devDependencies": { - "@nativescript/android": "~8.5.0", - "@nativescript/ios": "~8.5.0" - } + "main": "./src/app.ts", + "description": "NativeScript Application", + "dependencies": { + "@nativescript/core": "file:../../node_modules/@nativescript/core", + "@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", + "@nstudio/nativescript-camera-plus": "file:../../packages/nativescript-camera-plus", + "@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-exoplayer": "file:../../packages/nativescript-exoplayer", + "@nstudio/nativescript-fancyalert": "file:../../packages/nativescript-fancyalert", + "@nstudio/nativescript-filterable-listpicker": "file:../../packages/nativescript-filterable-listpicker", + "@nstudio/nativescript-freshchat": "file:../../packages/nativescript-freshchat", + "@nstudio/nativescript-input-mask": "file:../../packages/nativescript-input-mask", + "@nstudio/nativescript-intercom": "file:../../packages/nativescript-intercom", + "@nstudio/nativescript-loading-indicator": "file:../../packages/nativescript-loading-indicator", + "@nstudio/nativescript-onfido": "file:../../packages/nativescript-onfido", + "@nstudio/nativescript-persona": "file:../../packages/nativescript-persona", + "@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" + }, + "devDependencies": { + "@nativescript/android": "~8.5.0", + "@nativescript/ios": "~8.5.0" + } } 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 @@