Skip to content
Merged
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- [@nstudio/nativescript-persona](packages/nativescript-persona/README.md)
- [@nstudio/nativescript-plaid](packages/nativescript-plaid/README.md)
- [@nstudio/nativescript-qr](packages/nativescript-qr/README.md)
- [@nstudio/nativescript-tiktok](packages/nativescript-tiktok/README.md)
- [@nstudio/nativescript-tracking-transparency](packages/nativescript-tracking-transparency/README.md)
- [@nstudio/nativescript-walletconnect](packages/nativescript-walletconnect/README.md)
- [@nstudio/nativescript-web-server](packages/nativescript-web-server/README.md)
Expand Down
3 changes: 2 additions & 1 deletion apps/demo-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"@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-branch": "file:../../dist/packages/nativescript-branch"
"@nstudio/nativescript-branch": "file:../../dist/packages/nativescript-branch",
"@nstudio/nativescript-tiktok": "file:../../dist/packages/nativescript-tiktok"
},
"devDependencies": {
"@nativescript/android": "~8.9.0",
Expand Down
1 change: 1 addition & 0 deletions apps/demo-angular/src/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const routes: Routes = [
{ 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-tiktok', loadChildren: () => import('./plugin-demos/nativescript-tiktok.module').then((m) => m.NativescriptTiktokModule) },
{ 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-web-server', loadChildren: () => import('./plugin-demos/nativescript-web-server.module').then((m) => m.NativescriptWebServerModule) },
Expand Down
3 changes: 3 additions & 0 deletions apps/demo-angular/src/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ export class HomeComponent {
{
name: 'nativescript-qr',
},
{
name: 'nativescript-tiktok',
},
{
name: 'nativescript-tracking-transparency',
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<ActionBar title="nativescript-tiktok" class="action-bar"> </ActionBar>
<StackLayout class="p-20">
<ScrollView class="h-full">
<StackLayout>
<Button text="Test nativescript-tiktok" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
</StackLayout>
</ScrollView>
</StackLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Component, NgZone } from '@angular/core';
import { DemoSharedNativescriptTiktok } from '@demo/shared';
import {} from '@nstudio/nativescript-tiktok';

@Component({
selector: 'demo-nativescript-tiktok',
templateUrl: 'nativescript-tiktok.component.html',
})
export class NativescriptTiktokComponent {
demoShared: DemoSharedNativescriptTiktok;

constructor(private _ngZone: NgZone) {}

ngOnInit() {
this.demoShared = new DemoSharedNativescriptTiktok();
}
}
10 changes: 10 additions & 0 deletions apps/demo-angular/src/plugin-demos/nativescript-tiktok.module.ts
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 { NativescriptTiktokComponent } from './nativescript-tiktok.component';

@NgModule({
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptTiktokComponent }])],
declarations: [NativescriptTiktokComponent],
schemas: [NO_ERRORS_SCHEMA],
})
export class NativescriptTiktokModule {}
3 changes: 2 additions & 1 deletion apps/demo-angular/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"@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"]
"@nstudio/nativescript-auth0": ["../../packages/nativescript-auth0/index.d.ts"],
"@nstudio/nativescript-tiktok": ["../../packages/nativescript-tiktok/index.d.ts"]
}
},
"files": ["./references.d.ts", "./src/main.ts", "./src/polyfills.ts"],
Expand Down
3 changes: 2 additions & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"@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-branch": "file:../../packages/nativescript-branch"
"@nstudio/nativescript-branch": "file:../../packages/nativescript-branch",
"@nstudio/nativescript-tiktok": "file:../../packages/nativescript-tiktok"
},
"devDependencies": {
"@nativescript/android": "~9.0.0",
Expand Down
1 change: 1 addition & 0 deletions apps/demo/src/main-page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<Button text="nativescript-walletconnect" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
<Button text="nativescript-web-server" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
<Button text="nativescript-branch" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
<Button text="nativescript-tiktok" tap="{{ viewDemo }}" class="btn btn-primary rounded view-demo"/>
</StackLayout>
</ScrollView>
</StackLayout>
Expand Down
10 changes: 10 additions & 0 deletions apps/demo/src/plugin-demos/nativescript-tiktok.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Observable, EventData, Page } from '@nativescript/core';
import { DemoSharedNativescriptTiktok } from '@demo/shared';
import {} from '@nstudio/nativescript-tiktok';

export function navigatingTo(args: EventData) {
const page = <Page>args.object;
page.bindingContext = new DemoModel();
}

export class DemoModel extends DemoSharedNativescriptTiktok {}
14 changes: 14 additions & 0 deletions apps/demo/src/plugin-demos/nativescript-tiktok.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo" class="page">
<Page.actionBar>
<ActionBar title="nativescript-tiktok" icon="" class="action-bar">
</ActionBar>
</Page.actionBar>
<StackLayout class="p-20">
<ScrollView class="h-full">
<StackLayout>
<Button text="Test nativescript-tiktok" tap="{{ testIt }}" class="btn btn-primary"/>

</StackLayout>
</ScrollView>
</StackLayout>
</Page>
3 changes: 2 additions & 1 deletion apps/demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"@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"]
"@nstudio/nativescript-auth0": ["../../packages/nativescript-auth0/index.d.ts"],
"@nstudio/nativescript-tiktok": ["../../packages/nativescript-tiktok/index.d.ts"]
}
}
}
18 changes: 18 additions & 0 deletions packages/nativescript-tiktok/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*", "node_modules/**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
13 changes: 13 additions & 0 deletions packages/nativescript-tiktok/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @nstudio/nativescript-tiktok

```javascript
npm install @nstudio/nativescript-tiktok
```

## Usage

// TODO

## License

Apache License Version 2.0
Loading