8000 feat: facebook, google-signin & twitter · NativeScript/plugins@5ca0bc6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ca0bc6

Browse files
committed
feat: facebook, google-signin & twitter
1 parent 9c738b5 commit 5ca0bc6

File tree

169 files changed

+34376
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+34376
-12
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
# @nativescript/\* plugins
2-
3-
```
4-
npm run setup
5-
npm start
6-
```
7-
81
- [@nativescript/animated-circle](packages/animated-circle/README.md)
92
- [@nativescript/appavailability](packages/appavailability/README.md)
103
- [@nativescript/auto-fit-text](packages/auto-fit-text/README.md)
@@ -17,8 +10,10 @@ npm start
1710
- [@nativescript/detox](packages/detox/README.md)
1811
- [@nativescript/directions](packages/directions/README.md)
1912
- [@nativescript/email](packages/email/README.md)
13+
- [@nativescript/facebook](packages/facebook/README.md)
2014
- [@nativescript/fingerprint-auth](packages/fingerprint-auth/README.md)
2115
- [@nativescript/geolocation](packages/geolocation/README.md)
16+
- [@nativescript/google-signin](packages/google-signin/README.md)
2217
- [@nativescript/imagepicker](packages/imagepicker/README.md)
2318
- [@nativescript/ios-security](packages/ios-security/README.md)
2419
- [@nativescript/iqkeyboardmanager](packages/iqkeyboardmanager/README.md)
@@ -27,6 +22,7 @@ npm start
2722
- [@nativescript/picker](packages/picker/README.md)
2823
- [@nativescript/shared-notification-delegate](packages/shared-notification-delegate/README.md)
2924
- [@nativescript/social-share](packages/social-share/README.md)
25+
- [@nativescript/twitter](packages/twitter/README.md)
3026
- [@nativescript/zip](packages/zip/README.md)
3127

3228
# How to use?

apps/demo-angular/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
"@nativescript/picker": "file:../../dist/packages/picker",
2525
"@nativescript/shared-notification-delegate": "file:../../dist/packages/shared-notification-delegate",
2626
"@nativescript/social-share": "file:../../dist/packages/social-share",
27-
"@nativescript/zip": "file:../../dist/packages/zip"
27+
"@nativescript/zip": "file:../../dist/packages/zip",
28+
"@nativescript/facebook": "file:../../dist/packages/facebook",
29+
"@nativescript/google-signin": "file:../../dist/packages/google-signin",
30+
"@nativescript/twitter": "file:../../dist/packages/twitter"
2831
},
2932
"devDependencies": {
3033
"@nativescript/android": "~8.1.1",

apps/demo-angular/src/app-routing.module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ const routes: Routes = [
1919
{ path: 'detox', loadChildren: () => import('./plugin-demos/detox.module').then(m => m.DetoxModule) },
2020
{ path: 'directions', loadChildren: () => import('./plugin-demos/directions.module').then(m => m.DirectionsModule) },
2121
{ path: 'email', loadChildren: () => import('./plugin-demos/email.module').then(m => m.EmailModule) },
22+
{ path: 'facebook', loadChildren: () => import('./plugin-demos/facebook.module').then(m => m.FacebookModule) },
2223
{ path: 'fingerprint-auth', loadChildren: () => import('./plugin-demos/fingerprint-auth.module').then(m => m.FingerprintAuthModule) },
2324
{ path: 'geolocation', loadChildren: () => import('./plugin-demos/geolocation.module').then(m => m.GeolocationModule) },
25+
{ path: 'google-signin', loadChildren: () => import('./plugin-demos/google-signin.module').then(m => m.GoogleSigninModule) },
2426
{ path: 'imagepicker', loadChildren: () => import('./plugin-demos/imagepicker.module').then(m => m.ImagepickerModule) },
2527
{ path: 'ios-security', loadChildren: () => import('./plugin-demos/ios-security.module').then(m => m.IosSecurityModule) },
2628
{ path: 'iqkeyboardmanager', loadChildren: () => import('./plugin-demos/iqkeyboardmanager.module').then(m => m.IqkeyboardmanagerModule) },
@@ -29,6 +31,7 @@ const routes: Routes = [
2931
{ path: 'picker', loadChildren: () => import('./plugin-demos/picker.module').then(m => m.PickerModule) },
3032
{ path: 'shared-notification-delegate', loadChildren: () => import('./plugin-demos/shared-notification-delegate.module').then(m => m.SharedNotificationDelegateModule) },
3133
{ path: 'social-share', loadChildren: () => import('./plugin-demos/social-share.module').then(m => m.SocialShareModule) },
34+
{ path: 'twitter', loadChildren: () => import('./plugin-demos/twitter.module').then(m => m.TwitterModule) },
3235
{ path: 'zip', loadChildren: () => import('./plugin-demos/zip.module').then(m => m.ZipModule) }
3336
];
3437

apps/demo-angular/src/home.component.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,18 @@ export class HomeComponent {
4242
{
4343
name: 'email'
4444
},
45+
{
46+
name: 'facebook'
47+
},
4548
{
4649
name: 'fingerprint-auth'
4750
},
4851
{
4952
name: 'geolocation'
5053
},
54+
{
55+
name: 'google-signin'
56+
},
5157
{
5258
name: 'imagepicker'
5359
},
@@ -72,6 +78,9 @@ export class HomeComponent {
7278
{
7379
name: 'social-share'
7480
},
81+
{
82+
name: 'twitter'
83+
},
7584
{
7685
name: 'zip'
7786
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="facebook" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test facebook" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import { DemoSharedFacebook } from '@demo/shared';
3+
import { } from '@nativescript/facebook';
4+
5+
@Component({
6+
selector: 'demo-facebook',
7+
templateUrl: 'facebook.component.html',
8+
})
9+
export class FacebookComponent {
10+
11+
demoShared: DemoSharedFacebook;
12+
13+
constructor(private _ngZone: NgZone) {}
14+
15+
ngOnInit() {
16+
this.demoShared = new DemoSharedFacebook();
17+
}
18+
19+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2+
import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3+
import { FacebookComponent } from './facebook.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FacebookComponent }])],
7+
declarations: [FacebookComponent],
8+
schemas: [ NO_ERRORS_SCHEMA]
9+
})
10+
export class FacebookModule {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="google-signin" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test google-signin" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import { DemoSharedGoogleSignin } from '@demo/shared';
3+
import { } from '@nativescript/google-signin';
4+
5+
@Component({
6+
selector: 'demo-google-signin',
7+
templateUrl: 'google-signin.component.html',
8+
})
9+
export class GoogleSigninComponent {
10+
11+
demoShared: DemoSharedGoogleSignin;
12+
13+
constructor(private _ngZone: NgZone) {}
14+
15+
ngOnInit() {
16+
this.demoShared = new DemoSharedGoogleSignin();
17+
}
18+
19+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2+
import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3+
import { GoogleSigninComponent } from './google-signin.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: GoogleSigninComponent }])],
7+
declarations: [GoogleSigninComponent],
8+
schemas: [ NO_ERRORS_SCHEMA]
9+
})
10+
export class GoogleSigninModule {}

0 commit comments

Comments
 (0)
0