Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# . "$(dirname -- "$0")/_/husky.sh"

npx lint-staged --allow-empty
# npx lint-staged --allow-empty
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
- [@triniwiz/nativescript-image-cache-it](packages/nativescript-image-cache-it/README.md)
- [@triniwiz/nativescript-image-zoom](packages/nativescript-image-zoom/README.md)
- [@triniwiz/nativescript-imageoptimize](packages/nativescript-imageoptimize/README.md)
- [@triniwiz/nativescript-klaviyo-push-sdk](packages/nativescript-klaviyo-push-sdk/README.md)
- [@triniwiz/nativescript-klaviyo-sdk](packages/nativescript-klaviyo-sdk/README.md)
- [@triniwiz/nativescript-messenger](packages/nativescript-messenger/README.md)
- [@triniwiz/nativescript-nested-scrollview](packages/nativescript-nested-scrollview/README.md)
- [@triniwiz/nativescript-opentok](packages/nativescript-opentok/README.md)
Expand Down
110 changes: 56 additions & 54 deletions apps/demo-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,57 @@
{
"main": "./src/main.ts",
"dependencies": {
"@nativescript/core": "file:../../node_modules/@nativescript/core",
"@triniwiz/nativescript-supabase": "file:../../dist/packages/nativescript-supabase",
"@triniwiz/nativescript-accelerometer": "file:../../dist/packages/nativescript-accelerometer",
"@triniwiz/nativescript-accordion": "file:../../dist/packages/nativescript-accordion",
"@triniwiz/nativescript-appwrite": "file:../../dist/packages/nativescript-appwrite",
"@triniwiz/nativescript-autocomplete": "file:../../dist/packages/nativescript-autocomplete",
"@triniwiz/nativescript-aws-sdk": "file:../../dist/packages/nativescript-aws-sdk",
"@triniwiz/nativescript-aws-sdk-s3": "file:../../dist/packages/nativescript-aws-sdk-s3",
"@triniwiz/nativescript-couchbase": "file:../../dist/packages/nativescript-couchbase",
"@triniwiz/nativescript-descope": "file:../../dist/packages/nativescript-descope",
"@triniwiz/nativescript-downloader": "file:../../dist/packages/nativescript-downloader",
"@triniwiz/nativescript-ffmpeg": "file:../../dist/packages/nativescript-ffmpeg",
"@triniwiz/nativescript-here": "file:../../dist/packages/nativescript-here",
"@triniwiz/nativescript-image-cache-it": "file:../../dist/packages/nativescript-image-cache-it",
"@triniwiz/nativescript-image-zoom": "file:../../dist/packages/nativescript-image-zoom",
"@triniwiz/nativescript-imageoptimize": "file:../../dist/packages/nativescript-imageoptimize",
"@triniwiz/nativescript-messenger": "file:../../dist/packages/nativescript-messenger",
"@triniwiz/nativescript-nested-scrollview": "file:../../dist/packages/nativescript-nested-scrollview",
"@triniwiz/nativescript-opentok": "file:../../dist/packages/nativescript-opentok",
"@triniwiz/nativescript-pager": "file:../../dist/packages/nativescript-pager",
"@triniwiz/nativescript-parsesdk": "file:../../dist/packages/nativescript-parsesdk",
"@triniwiz/nativescript-popup": "file:../../dist/packages/nativescript-popup",
"@triniwiz/nativescript-pubnub": "file:../../dist/packages/nativescript-pubnub",
"@triniwiz/nativescript-pusher-beams": "file:../../dist/packages/nativescript-pusher-beams",
"@triniwiz/nativescript-pusher-channels": "file:../../dist/packages/nativescript-pusher-channels",
"@triniwiz/nativescript-radar-io": "file:../../dist/packages/nativescript-radar-io",
"@triniwiz/nativescript-sinch": "file:../../dist/packages/nativescript-sinch",
"@triniwiz/nativescript-socketio": "file:../../dist/packages/nativescript-socketio",
"@triniwiz/nativescript-splashscreen": "file:../../dist/packages/nativescript-splashscreen",
"@triniwiz/nativescript-sse": "file:../../dist/packages/nativescript-sse",
"@triniwiz/nativescript-star-ratings": "file:../../dist/packages/nativescript-star-ratings",
"@triniwiz/nativescript-stripe": "file:../../dist/packages/nativescript-stripe",
"@triniwiz/nativescript-supabase-functions": "file:../../dist/packages/nativescript-supabase-functions",
"@triniwiz/nativescript-supabase-gotrue": "file:../../dist/packages/nativescript-supabase-gotrue",
"@triniwiz/nativescript-supabase-postgrest": "file:../../dist/packages/nativescript-supabase-postgrest",
"@triniwiz/nativescript-supabase-realtime": "file:../../dist/packages/nativescript-supabase-realtime",
"@triniwiz/nativescript-supabase-storage": "file:../../dist/packages/nativescript-supabase-storage",
"@triniwiz/nativescript-textdrawable": "file:../../dist/packages/nativescript-textdrawable",
"@triniwiz/nativescript-toasty": "file:../../dist/packages/nativescript-toasty",
"@triniwiz/nativescript-tooltip": "file:../../dist/packages/nativescript-tooltip",
"@triniwiz/nativescript-twitter": "file:../../dist/packages/nativescript-twitter",
"@triniwiz/nativescript-video-editor": "file:../../dist/packages/nativescript-video-editor",
"@triniwiz/nativescript-videorecorder": "file:../../dist/packages/nativescript-videorecorder",
"@triniwiz/nativescript-webrtc": "file:../../dist/packages/nativescript-webrtc",
"@triniwiz/nativescript-yogalayout": "file:../../dist/packages/nativescript-yogalayout",
"@triniwiz/nativescript-youtubeplayer": "file:../../dist/packages/nativescript-youtubeplayer"
},
"devDependencies": {
"@nativescript/android": "~8.9.0",
"@nativescript/ios": "~8.9.0"
}
}
"main": "./src/main.ts",
"dependencies": {
"@nativescript/core": "file:../../node_modules/@nativescript/core",
"@triniwiz/nativescript-supabase": "file:../../dist/packages/nativescript-supabase",
"@triniwiz/nativescript-accelerometer": "file:../../dist/packages/nativescript-accelerometer",
"@triniwiz/nativescript-accordion": "file:../../dist/packages/nativescript-accordion",
"@triniwiz/nativescript-appwrite": "file:../../dist/packages/nativescript-appwrite",
"@triniwiz/nativescript-autocomplete": "file:../../dist/packages/nativescript-autocomplete",
"@triniwiz/nativescript-aws-sdk": "file:../../dist/packages/nativescript-aws-sdk",
"@triniwiz/nativescript-aws-sdk-s3": "file:../../dist/packages/nativescript-aws-sdk-s3",
"@triniwiz/nativescript-couchbase": "file:../../dist/packages/nativescript-couchbase",
"@triniwiz/nativescript-descope": "file:../../dist/packages/nativescript-descope",
"@triniwiz/nativescript-downloader": "file:../../dist/packages/nativescript-downloader",
"@triniwiz/nativescript-ffmpeg": "file:../../dist/packages/nativescript-ffmpeg",
"@triniwiz/nativescript-here": "file:../../dist/packages/nativescript-here",
"@triniwiz/nativescript-image-cache-it": "file:../../dist/packages/nativescript-image-cache-it",
"@triniwiz/nativescript-image-zoom": "file:../../dist/packages/nativescript-image-zoom",
"@triniwiz/nativescript-imageoptimize": "file:../../dist/packages/nativescript-imageoptimize",
"@triniwiz/nativescript-messenger": "file:../../dist/packages/nativescript-messenger",
"@triniwiz/nativescript-nested-scrollview": "file:../../dist/packages/nativescript-nested-scrollview",
"@triniwiz/nativescript-opentok": "file:../../dist/packages/nativescript-opentok",
"@triniwiz/nativescript-pager": "file:../../dist/packages/nativescript-pager",
"@triniwiz/nativescript-parsesdk": "file:../../dist/packages/nativescript-parsesdk",
"@triniwiz/nativescript-popup": "file:../../dist/packages/nativescript-popup",
"@triniwiz/nativescript-pubnub": "file:../../dist/packages/nativescript-pubnub",
"@triniwiz/nativescript-pusher-beams": "file:../../dist/packages/nativescript-pusher-beams",
"@triniwiz/nativescript-pusher-channels": "file:../../dist/packages/nativescript-pusher-channels",
"@triniwiz/nativescript-radar-io": "file:../../dist/packages/nativescript-radar-io",
"@triniwiz/nativescript-sinch": "file:../../dist/packages/nativescript-sinch",
"@triniwiz/nativescript-socketio": "file:../../dist/packages/nativescript-socketio",
"@triniwiz/nativescript-splashscreen": "file:../../dist/packages/nativescript-splashscreen",
"@triniwiz/nativescript-sse": "file:../../dist/packages/nativescript-sse",
"@triniwiz/nativescript-star-ratings": "file:../../dist/packages/nativescript-star-ratings",
"@triniwiz/nativescript-stripe": "file:../../dist/packages/nativescript-stripe",
"@triniwiz/nativescript-supabase-functions": "file:../../dist/packages/nativescript-supabase-functions",
"@triniwiz/nativescript-supabase-gotrue": "file:../../dist/packages/nativescript-supabase-gotrue",
"@triniwiz/nativescript-supabase-postgrest": "file:../../dist/packages/nativescript-supabase-postgrest",
"@triniwiz/nativescript-supabase-realtime": "file:../../dist/packages/nativescript-supabase-realtime",
"@triniwiz/nativescript-supabase-storage": "file:../../dist/packages/nativescript-supabase-storage",
"@triniwiz/nativescript-textdrawable": "file:../../dist/packages/nativescript-textdrawable",
"@triniwiz/nativescript-toasty": "file:../../dist/packages/nativescript-toasty",
"@triniwiz/nativescript-tooltip": "file:../../dist/packages/nativescript-tooltip",
"@triniwiz/nativescript-twitter": "file:../../dist/packages/nativescript-twitter",
"@triniwiz/nativescript-video-editor": "file:../../dist/packages/nativescript-video-editor",
"@triniwiz/nativescript-videorecorder": "file:../../dist/packages/nativescript-videorecorder",
"@triniwiz/nativescript-webrtc": "file:../../dist/packages/nativescript-webrtc",
"@triniwiz/nativescript-yogalayout": "file:../../dist/packages/nativescript-yogalayout",
"@triniwiz/nativescript-youtubeplayer": "file:../../dist/packages/nativescript-youtubeplayer",
"@triniwiz/nativescript-klaviyo-sdk": "file:../../dist/packages/nativescript-klaviyo-sdk",
"@triniwiz/nativescript-klaviyo-push-sdk": "file:../../dist/packages/nativescript-klaviyo-push-sdk"
},
"devDependencies": {
"@nativescript/android": "~8.9.0",
"@nativescript/ios": "~8.9.0"
}
}
2 changes: 2 additions & 0 deletions apps/demo-angular/src/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const routes: Routes = [
{ path: 'nativescript-image-cache-it', loadChildren: () => import('./plugin-demos/nativescript-image-cache-it.module').then(m => m.NativescriptImageCacheItModule) },
{ path: 'nativescript-image-zoom', loadChildren: () => import('./plugin-demos/nativescript-image-zoom.module').then(m => m.NativescriptImageZoomModule) },
{ path: 'nativescript-imageoptimize', loadChildren: () => import('./plugin-demos/nativescript-imageoptimize.module').then(m => m.NativescriptImageoptimizeModule) },
{ path: 'nativescript-klaviyo-push-sdk', loadChildren: () => import('./plugin-demos/nativescript-klaviyo-push-sdk.module').then(m => m.NativescriptKlaviyoPushSdkModule) },
{ path: 'nativescript-klaviyo-sdk', loadChildren: () => import('./plugin-demos/nativescript-klaviyo-sdk.module').then(m => m.NativescriptKlaviyoSdkModule) },
{ path: 'nativescript-messenger', loadChildren: () => import('./plugin-demos/nativescript-messenger.module').then(m => m.NativescriptMessengerModule) },
{ path: 'nativescript-nested-scrollview', loadChildren: () => import('./plugin-demos/nativescript-nested-scrollview.module').then(m => m.NativescriptNestedScrollviewModule) },
{ path: 'nativescript-opentok', loadChildren: () => import('./plugin-demos/nativescript-opentok.module').then(m => m.NativescriptOpentokModule) },
Expand Down
8 changes: 7 additions & 1 deletion apps/demo-angular/src/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ export class HomeComponent {
{
name: 'nativescript-imageoptimize'
},
{
name: 'nativescript-klaviyo-push-sdk'
},
{
name: 'nativescript-klaviyo-sdk'
},
{
name: 'nativescript-messenger'
},
Expand Down Expand Up @@ -142,4 +148,4 @@ export class HomeComponent {
name: 'nativescript-youtubeplayer'
}
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<ActionBar title="nativescript-klaviyo-push-sdk" class="action-bar"> </ActionBar>
<StackLayout class="p-20">
<ScrollView class="h-full">
<StackLayout>
<Button text="Test nativescript-klaviyo-push-sdk" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
</StackLayout>
</ScrollView>
</StackLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Component, NgZone } from '@angular/core';
import { DemoSharedNativescriptKlaviyoPushSdk } from '@demo/shared';
import { } from '@triniwiz/nativescript-klaviyo-push-sdk';

@Component({
selector: 'demo-nativescript-klaviyo-push-sdk',
templateUrl: 'nativescript-klaviyo-push-sdk.component.html',
})
export class NativescriptKlaviyoPushSdkComponent {

demoShared: DemoSharedNativescriptKlaviyoPushSdk;

constructor(private _ngZone: NgZone) {}

ngOnInit() {
this.demoShared = new DemoSharedNativescriptKlaviyoPushSdk();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
import { NativescriptKlaviyoPushSdkComponent } from './nativescript-klaviyo-push-sdk.component';

@NgModule({
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptKlaviyoPushSdkComponent }])],
declarations: [NativescriptKlaviyoPushSdkComponent],
schemas: [ NO_ERRORS_SCHEMA]
})
export class NativescriptKlaviyoPushSdkModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<ActionBar title="nativescript-klaviyo-sdk" class="action-bar"> </ActionBar>
<StackLayout class="p-20">
<ScrollView class="h-full">
<StackLayout>
<Button text="Test nativescript-klaviyo-sdk" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
</StackLayout>
</ScrollView>
</StackLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Component, NgZone } from '@angular/core';
import { DemoSharedNativescriptKlaviyoSdk } from '@demo/shared';
import { } from '@triniwiz/nativescript-klaviyo-sdk';

@Component({
selector: 'demo-nativescript-klaviyo-sdk',
templateUrl: 'nativescript-klaviyo-sdk.component.html',
})
export class NativescriptKlaviyoSdkComponent {

demoShared: DemoSharedNativescriptKlaviyoSdk;

constructor(private _ngZone: NgZone) {}

ngOnInit() {
this.demoShared = new DemoSharedNativescriptKlaviyoSdk();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
import { NativescriptKlaviyoSdkComponent } from './nativescript-klaviyo-sdk.component';

@NgModule({
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptKlaviyoSdkComponent }])],
declarations: [NativescriptKlaviyoSdkComponent],
schemas: [ NO_ERRORS_SCHEMA]
})
export class NativescriptKlaviyoSdkModule {}
8 changes: 7 additions & 1 deletion apps/demo-angular/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@
],
"@triniwiz/nativescript-supabase-functions": [
"../../packages/nativescript-supabase-functions/index.d.ts"
],
"@triniwiz/nativescript-klaviyo-sdk": [
"../../packages/nativescript-klaviyo-sdk/index.d.ts"
],
"@triniwiz/nativescript-klaviyo-push-sdk": [
"../../packages/nativescript-klaviyo-push-sdk/index.d.ts"
]
}
},
Expand All @@ -207,4 +213,4 @@
"include": [
"../../packages/**/references.d.ts"
]
}
}
Loading