From 0ca2eb6ccb8740319857e5e7ef92ca716866ed7a Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Sat, 12 Aug 2023 19:00:35 -0700 Subject: [PATCH 1/2] fix(rive): touchups wip --- apps/demo-angular/package.json | 7 +- apps/demo-angular/src/app-routing.module.ts | 5 - apps/demo-angular/src/home.component.ts | 15 - apps/demo/package.json | 7 +- apps/demo/src/main-page.xml | 5 - .../{flutter.ts => flutter.ts_off} | 0 .../{flutter.xml => flutter.xml_off} | 0 ...{ionic-portals.ts => ionic-portals.ts_off} | 0 ...onic-portals.xml => ionic-portals.xml_off} | 0 ...pack-compose.ts => jetpack-compose.ts_off} | 0 ...ck-compose.xml => jetpack-compose.xml_off} | 0 .../{swift-ui.ts => swift-ui.ts_off} | 0 .../{swift-ui.xml => swift-ui.xml_off} | 0 .../{ui-charts.ts => ui-charts.ts_off} | 0 .../{ui-charts.xml => ui-charts.xml_off} | 0 packages/rive/README.md | 81 +- packages/rive/index.android.ts | 2 + packages/rive/package.json | 3 +- packages/rive/typings/android.d.ts | 993 ++++++++++++------ tools/assets/App_Resources/Android/app.gradle | 28 + .../App_Resources/Android/gradle.properties | 1 + .../java/{BasicView.kt => BasicView.ktOFF} | 0 .../{ColorPicker.kt => ColorPicker.ktOFF} | 0 .../{FlyingHearts.kt => FlyingHearts.ktOFF} | 0 tools/demo/index.ts | 5 - 25 files changed, 786 insertions(+), 366 deletions(-) rename apps/demo/src/plugin-demos/{flutter.ts => flutter.ts_off} (100%) rename apps/demo/src/plugin-demos/{flutter.xml => flutter.xml_off} (100%) rename apps/demo/src/plugin-demos/{ionic-portals.ts => ionic-portals.ts_off} (100%) rename apps/demo/src/plugin-demos/{ionic-portals.xml => ionic-portals.xml_off} (100%) rename apps/demo/src/plugin-demos/{jetpack-compose.ts => jetpack-compose.ts_off} (100%) rename apps/demo/src/plugin-demos/{jetpack-compose.xml => jetpack-compose.xml_off} (100%) rename apps/demo/src/plugin-demos/{swift-ui.ts => swift-ui.ts_off} (100%) rename apps/demo/src/plugin-demos/{swift-ui.xml => swift-ui.xml_off} (100%) rename apps/demo/src/plugin-demos/{ui-charts.ts => ui-charts.ts_off} (100%) rename apps/demo/src/plugin-demos/{ui-charts.xml => ui-charts.xml_off} (100%) create mode 100644 tools/assets/App_Resources/Android/gradle.properties rename tools/assets/App_Resources/Android/src/main/java/{BasicView.kt => BasicView.ktOFF} (100%) rename tools/assets/App_Resources/Android/src/main/java/{ColorPicker.kt => ColorPicker.ktOFF} (100%) rename tools/assets/App_Resources/Android/src/main/java/{FlyingHearts.kt => FlyingHearts.ktOFF} (100%) diff --git a/apps/demo-angular/package.json b/apps/demo-angular/package.json index 720c6d4..27b0a26 100644 --- a/apps/demo-angular/package.json +++ b/apps/demo-angular/package.json @@ -2,12 +2,7 @@ "main": "./src/main.ts", "dependencies": { "@nativescript/core": "file:../../node_modules/@nativescript/core", - "@nativescript/rive": "file:../../dist/packages/rive", - "@nativescript/flutter": "file:../../dist/packages/flutter", - "@nativescript/ionic-portals": "file:../../dist/packages/ionic-portals", - "@nativescript/jetpack-compose": "file:../../dist/packages/jetpack-compose", - "@nativescript/swift-ui": "file:../../dist/packages/swift-ui", - "@nativescript/ui-charts": "file:../../dist/packages/ui-charts" + "@nativescript/rive": "file:../../dist/packages/rive" }, "devDependencies": { "@nativescript/android": "~8.5.0", diff --git a/apps/demo-angular/src/app-routing.module.ts b/apps/demo-angular/src/app-routing.module.ts index cba9cea..5b9d568 100644 --- a/apps/demo-angular/src/app-routing.module.ts +++ b/apps/demo-angular/src/app-routing.module.ts @@ -7,12 +7,7 @@ import { HomeComponent } from './home.component'; const routes: Routes = [ { path: '', redirectTo: '/home', pathMatch: 'full' }, { path: 'home', component: HomeComponent }, - { path: 'flutter', loadChildren: () => import('./plugin-demos/flutter.module').then((m) => m.FlutterModule) }, - { path: 'ionic-portals', loadChildren: () => import('./plugin-demos/ionic-portals.module').then((m) => m.IonicPortalsModule) }, - { path: 'jetpack-compose', loadChildren: () => import('./plugin-demos/jetpack-compose.module').then((m) => m.JetpackComposeModule) }, { path: 'rive', loadChildren: () => import('./plugin-demos/rive.module').then((m) => m.RiveModule) }, - { path: 'swift-ui', loadChildren: () => import('./plugin-demos/swift-ui.module').then((m) => m.SwiftUiModule) }, - { path: 'ui-charts', loadChildren: () => import('./plugin-demos/ui-charts.module').then((m) => m.UiChartsModule) }, ]; @NgModule({ diff --git a/apps/demo-angular/src/home.component.ts b/apps/demo-angular/src/home.component.ts index f1a154a..539f520 100644 --- a/apps/demo-angular/src/home.component.ts +++ b/apps/demo-angular/src/home.component.ts @@ -6,23 +6,8 @@ import { Component } from '@angular/core'; }) export class HomeComponent { demos = [ - { - name: 'flutter', - }, - { - name: 'ionic-portals', - }, - { - name: 'jetpack-compose', - }, { name: 'rive', }, - { - name: 'swift-ui', - }, - { - name: 'ui-charts', - }, ]; } diff --git a/apps/demo/package.json b/apps/demo/package.json index fb5dcfc..f0ccfd4 100644 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -5,12 +5,7 @@ "repository": "", "dependencies": { "@nativescript/core": "file:../../node_modules/@nativescript/core", - "@nativescript/rive": "file:../../packages/rive", - "@nativescript/flutter": "file:../../packages/flutter", - "@nativescript/ionic-portals": "file:../../packages/ionic-portals", - "@nativescript/jetpack-compose": "file:../../packages/jetpack-compose", - "@nativescript/swift-ui": "file:../../packages/swift-ui", - "@nativescript/ui-charts": "file:../../packages/ui-charts" + "@nativescript/rive": "file:../../packages/rive" }, "devDependencies": { "@nativescript/android": "~8.5.0", diff --git a/apps/demo/src/main-page.xml b/apps/demo/src/main-page.xml index 385d532..4adb2a8 100644 --- a/apps/demo/src/main-page.xml +++ b/apps/demo/src/main-page.xml @@ -5,12 +5,7 @@ -