Skip to content

Commit ef4b906

Browse files
committed
added cloudinary package stub
1 parent 1221ee4 commit ef4b906

24 files changed

+524
-318
lines changed

README.md

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
1-
- [@nativescript/animated-circle](packages/animated-circle/README.md)
2-
- [@nativescript/appavailability](packages/appavailability/README.md)
3-
- [@nativescript/auto-fit-text](packages/auto-fit-text/README.md)
4-
- [@nativescript/background-http](packages/background-http/README.md)
5-
- [@nativescript/brightness](packages/brightness/README.md)
6-
- [@nativescript/camera](packages/camera/README.md)
7-
- [@nativescript/datetimepicker](packages/datetimepicker/README.md)
8-
- [@nativescript/debug-android](packages/debug-android/README.md)
9-
- [@nativescript/debug-ios](packages/debug-ios/README.md)
10-
- [@nativescript/detox](packages/detox/README.md)
11-
- [@nativescript/directions](packages/directions/README.md)
12-
- [@nativescript/email](packages/email/README.md)
13-
- [@nativescript/facebook](packages/facebook/README.md)
14-
- [@nativescript/fingerprint-auth](packages/fingerprint-auth/README.md)
15-
- [@nativescript/geolocation](packages/geolocation/README.md)
16-
- [@nativescript/google-signin](packages/google-signin/README.md)
17-
- [@nativescript/imagepicker](packages/imagepicker/README.md)
18-
- [@nativescript/ios-security](packages/ios-security/README.md)
19-
- [@nativescript/iqkeyboardmanager](packages/iqkeyboardmanager/README.md)
20-
- [@nativescript/local-notifications](packages/local-notifications/README.md)
21-
- [@nativescript/localize](packages/localize/README.md)
22-
- [@nativescript/picker](packages/picker/README.md)
23-
- [@nativescript/shared-notification-delegate](packages/shared-notification-delegate/README.md)
24-
- [@nativescript/social-share](packages/social-share/README.md)
25-
- [@nativescript/twitter](packages/twitter/README.md)
26-
- [@nativescript/zip](packages/zip/README.md)
1+
- @nativescript/animated-circle
2+
- @nativescript/appavailability
3+
- @nativescript/auto-fit-text
4+
- @nativescript/background-http
5+
- @nativescript/brightness
6+
- @nativescript/camera
7+
- @nativescript/cloudinary
8+
- @nativescript/datetimepicker
9+
- @nativescript/debug-android
10+
- @nativescript/debug-ios
11+
- @nativescript/detox
12+
- @nativescript/directions
13+
- @nativescript/email
14+
- @nativescript/facebook
15+
- @nativescript/fingerprint-auth
16+
- @nativescript/geolocation
17+
- @nativescript/google-signin
18+
- @nativescript/imagepicker
19+
- @nativescript/ios-security
20+
- @nativescript/iqkeyboardmanager
21+
- @nativescript/local-notifications
22+
- @nativescript/localize
23+
- @nativescript/picker
24+
- @nativescript/shared-notification-delegate
25+
- @nativescript/social-share
26+
- @nativescript/twitter
27+
- @nativescript/zip
2728

2829
# How to use?
2930

30-
This workspace manages the suite of plugins listed above.
31+
This workspace manages the suite of plugins listed above.
3132

3233
In general, when in doubt with what to do, just `npm start`.
3334

apps/demo-angular/package.json

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,37 @@
11
{
2-
"main": "./src/main.ts",
3-
"dependencies": {
4-
"@nativescript/core": "file:../../node_modules/@nativescript/core",
5-
"@nativescript/facebook": "file:../../dist/packages/facebook",
6-
"@nativescript/animated-circle": "file:../../dist/packages/animated-circle",
7-
"@nativescript/appavailability": "file:../../dist/packages/appavailability",
8-
"@nativescript/auto-fit-text": "file:../../dist/packages/auto-fit-text",
9-
"@nativescript/background-http": "file:../../dist/packages/background-http",
10-
"@nativescript/brightness": "file:../../dist/packages/brightness",
11-
"@nativescript/camera": "file:../../dist/packages/camera",
12-
"@nativescript/datetimepicker": "file:../../dist/packages/datetimepicker",
13-
"@nativescript/debug-android": "file:../../dist/packages/debug-android",
14-
"@nativescript/debug-ios": "file:../../dist/packages/debug-ios",
15-
"@nativescript/detox": "file:../../dist/packages/detox",
16-
"@nativescript/directions": "file:../../dist/packages/directions",
17-
"@nativescript/email": "file:../../dist/packages/email",
18-
"@nativescript/fingerprint-auth": "file:../../dist/packages/fingerprint-auth",
19-
"@nativescript/geolocation": "file:../../dist/packages/geolocation",
20-
"@nativescript/google-signin": "file:../../dist/packages/google-signin",
21-
"@nativescript/imagepicker": "file:../../dist/packages/imagepicker",
22-
"@nativescript/ios-security": "file:../../dist/packages/ios-security",
23-
"@nativescript/iqkeyboardmanager": "file:../../dist/packages/iqkeyboardmanager",
24-
"@nativescript/local-notifications": "file:../../dist/packages/local-notifications",
25-
"@nativescript/localize": "file:../../dist/packages/localize",
26-
"@nativescript/picker": "file:../../dist/packages/picker",
27-
"@nativescript/shared-notification-delegate": "file:../../dist/packages/shared-notification-delegate",
28-
"@nativescript/social-share": "file:../../dist/packages/social-share",
29-
"@nativescript/twitter": "file:../../dist/packages/twitter",
30-
"@nativescript/zip": "file:../../dist/packages/zip"
31-
},
32-
"devDependencies": {
33-
"@nativescript/android": "~8.1.1",
34-
"@nativescript/ios": "~8.1.0"
35-
}
2+
"main": "./src/main.ts",
3+
"dependencies": {
4+
"@nativescript/core": "file:../../node_modules/@nativescript/core",
5+
"@nativescript/facebook": "file:../../dist/packages/facebook",
6+
"@nativescript/animated-circle": "file:../../dist/packages/animated-circle",
7+
"@nativescript/appavailability": "file:../../dist/packages/appavailability",
8+
"@nativescript/auto-fit-text": "file:../../dist/packages/auto-fit-text",
9+
"@nativescript/background-http": "file:../../dist/packages/background-http",
10+
"@nativescript/brightness": "file:../../dist/packages/brightness",
11+
"@nativescript/camera": "file:../../dist/packages/camera",
12+
"@nativescript/datetimepicker": "file:../../dist/packages/datetimepicker",
13+
"@nativescript/debug-android": "file:../../dist/packages/debug-android",
14+
"@nativescript/debug-ios": "file:../../dist/packages/debug-ios",
15+
"@nativescript/detox": "file:../../dist/packages/detox",
16+
"@nativescript/directions": "file:../../dist/packages/directions",
17+
"@nativescript/email": "file:../../dist/packages/email",
18+
"@nativescript/fingerprint-auth": "file:../../dist/packages/fingerprint-auth",
19+
"@nativescript/geolocation": "file:../../dist/packages/geolocation",
20+
"@nativescript/google-signin": "file:../../dist/packages/google-signin",
21+
"@nativescript/imagepicker": "file:../../dist/packages/imagepicker",
22+
"@nativescript/ios-security": "file:../../dist/packages/ios-security",
23+
"@nativescript/iqkeyboardmanager": "file:../../dist/packages/iqkeyboardmanager",
24+
"@nativescript/local-notifications": "file:../../dist/packages/local-notifications",
25+
"@nativescript/localize": "file:../../dist/packages/localize",
26+
"@nativescript/picker": "file:../../dist/packages/picker",
27+
"@nativescript/shared-notification-delegate": "file:../../dist/packages/shared-notification-delegate",
28+
"@nativescript/social-share": "file:../../dist/packages/social-share",
29+
"@nativescript/twitter": "file:../../dist/packages/twitter",
30+
"@nativescript/zip": "file:../../dist/packages/zip",
31+
"@nativescript/cloudinary": "file:../../dist/packages/cloudinary"
32+
},
33+
"devDependencies": {
34+
"@nativescript/android": "~8.1.1",
35+
"@nativescript/ios": "~8.1.0"
36+
}
3637
}

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

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,35 @@ import { NativeScriptRouterModule } from '@nativescript/angular';
55
import { HomeComponent } from './home.component';
66

77
const routes: Routes = [
8-
{ path: '', redirectTo: '/home', pathMatch: 'full' },
9-
{ path: 'home', component: HomeComponent },
10-
{ path: 'animated-circle', loadChildren: () => import('./plugin-demos/animated-circle.module').then(m => m.AnimatedCircleModule) },
11-
{ path: 'appavailability', loadChildren: () => import('./plugin-demos/appavailability.module').then(m => m.AppavailabilityModule) },
12-
{ path: 'auto-fit-text', loadChildren: () => import('./plugin-demos/auto-fit-text.module').then(m => m.AutoFitTextModule) },
13-
{ path: 'background-http', loadChildren: () => import('./plugin-demos/background-http.module').then(m => m.BackgroundHttpModule) },
14-
{ path: 'brightness', loadChildren: () => import('./plugin-demos/brightness.module').then(m => m.BrightnessModule) },
15-
{ path: 'camera', loadChildren: () => import('./plugin-demos/camera.module').then(m => m.CameraModule) },
16-
{ path: 'datetimepicker', loadChildren: () => import('./plugin-demos/datetimepicker.module').then(m => m.DatetimepickerModule) },
17-
{ path: 'debug-android', loadChildren: () => import('./plugin-demos/debug-android.module').then(m => m.DebugAndroidModule) },
18-
{ path: 'debug-ios', loadChildren: () => import('./plugin-demos/debug-ios.module').then(m => m.DebugIosModule) },
19-
{ path: 'detox', loadChildren: () => import('./plugin-demos/detox.module').then(m => m.DetoxModule) },
20-
{ path: 'directions', loadChildren: () => import('./plugin-demos/directions.module').then(m => m.DirectionsModule) },
21-
{ 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) },
23-
{ path: 'fingerprint-auth', loadChildren: () => import('./plugin-demos/fingerprint-auth.module').then(m => m.FingerprintAuthModule) },
24-
{ 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) },
26-
{ path: 'imagepicker', loadChildren: () => import('./plugin-demos/imagepicker.module').then(m => m.ImagepickerModule) },
27-
{ path: 'ios-security', loadChildren: () => import('./plugin-demos/ios-security.module').then(m => m.IosSecurityModule) },
28-
{ path: 'iqkeyboardmanager', loadChildren: () => import('./plugin-demos/iqkeyboardmanager.module').then(m => m.IqkeyboardmanagerModule) },
29-
{ path: 'local-notifications', loadChildren: () => import('./plugin-demos/local-notifications.module').then(m => m.LocalNotificationsModule) },
30-
{ path: 'localize', loadChildren: () => import('./plugin-demos/localize.module').then(m => m.LocalizeModule) },
31-
{ path: 'picker', loadChildren: () => import('./plugin-demos/picker.module').then(m => m.PickerModule) },
32-
{ path: 'shared-notification-delegate', loadChildren: () => import('./plugin-demos/shared-notification-delegate.module').then(m => m.SharedNotificationDelegateModule) },
33-
{ 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) },
35-
{ path: 'zip', loadChildren: () => import('./plugin-demos/zip.module').then(m => m.ZipModule) }
8+
{ path: '', redirectTo: '/home', pathMatch: 'full' },
9+
{ path: 'home', component: HomeComponent },
10+
{ path: 'animated-circle', loadChildren: () => import('./plugin-demos/animated-circle.module').then((m) => m.AnimatedCircleModule) },
11+
{ path: 'appavailability', loadChildren: () => import('./plugin-demos/appavailability.module').then((m) => m.AppavailabilityModule) },
12+
{ path: 'auto-fit-text', loadChildren: () => import('./plugin-demos/auto-fit-text.module').then((m) => m.AutoFitTextModule) },
13+
{ path: 'background-http', loadChildren: () => import('./plugin-demos/background-http.module').then((m) => m.BackgroundHttpModule) },
14+
{ path: 'brightness', loadChildren: () => import('./plugin-demos/brightness.module').then((m) => m.BrightnessModule) },
15+
{ path: 'camera', loadChildren: () => import('./plugin-demos/camera.module').then((m) => m.CameraModule) },
16+
{ path: 'cloudinary', loadChildren: () => import('./plugin-demos/cloudinary.module').then((m) => m.CloudinaryModule) },
17+
{ path: 'datetimepicker', loadChildren: () => import('./plugin-demos/datetimepicker.module').then((m) => m.DatetimepickerModule) },
18+
{ path: 'debug-android', loadChildren: () => import('./plugin-demos/debug-android.module').then((m) => m.DebugAndroidModule) },
19+
{ path: 'debug-ios', loadChildren: () => import('./plugin-demos/debug-ios.module').then((m) => m.DebugIosModule) },
20+
{ path: 'detox', loadChildren: () => import('./plugin-demos/detox.module').then((m) => m.DetoxModule) },
21+
{ path: 'directions', loadChildren: () => import('./plugin-demos/directions.module').then((m) => m.DirectionsModule) },
22+
{ path: 'email', loadChildren: () => import('./plugin-demos/email.module').then((m) => m.EmailModule) },
23+
{ path: 'facebook', loadChildren: () => import('./plugin-demos/facebook.module').then((m) => m.FacebookModule) },
24+
{ path: 'fingerprint-auth', loadChildren: () => import('./plugin-demos/fingerprint-auth.module').then((m) => m.FingerprintAuthModule) },
25+
{ path: 'geolocation', loadChildren: () => import('./plugin-demos/geolocation.module').then((m) => m.GeolocationModule) },
26+
{ path: 'google-signin', loadChildren: () => import('./plugin-demos/google-signin.module').then((m) => m.GoogleSigninModule) },
27+
{ path: 'imagepicker', loadChildren: () => import('./plugin-demos/imagepicker.module').then((m) => m.ImagepickerModule) },
28+
{ path: 'ios-security', loadChildren: () => import('./plugin-demos/ios-security.module').then((m) => m.IosSecurityModule) },
29+
{ path: 'iqkeyboardmanager', loadChildren: () => import('./plugin-demos/iqkeyboardmanager.module').then((m) => m.IqkeyboardmanagerModule) },
30+
{ path: 'local-notifications', loadChildren: () => import('./plugin-demos/local-notifications.module').then((m) => m.LocalNotificationsModule) },
31+
{ path: 'localize', loadChildren: () => import('./plugin-demos/localize.module').then((m) => m.LocalizeModule) },
32+
{ path: 'picker', loadChildren: () => import('./plugin-demos/picker.module').then((m) => m.PickerModule) },
33+
{ path: 'shared-notification-delegate', loadChildren: () => import('./plugin-demos/shared-notification-delegate.module').then((m) => m.SharedNotificationDelegateModule) },
34+
{ path: 'social-share', loadChildren: () => import('./plugin-demos/social-share.module').then((m) => m.SocialShareModule) },
35+
{ path: 'twitter', loadChildren: () => import('./plugin-demos/twitter.module').then((m) => m.TwitterModule) },
36+
{ path: 'zip', loadChildren: () => import('./plugin-demos/zip.module').then((m) => m.ZipModule) },
3637
];
3738

3839
@NgModule({

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

Lines changed: 83 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -6,83 +6,86 @@ import { Component } from '@angular/core';
66
})
77
export class HomeComponent {
88
demos = [
9-
{
10-
name: 'animated-circle'
11-
},
12-
{
13-
name: 'appavailability'
14-
},
15-
{
16-
name: 'auto-fit-text'
17-
},
18-
{
19-
name: 'background-http'
20-
},
21-
{
22-
name: 'brightness'
23-
},
24-
{
25-
name: 'camera'
26-
},
27-
{
28-
name: 'datetimepicker'
29-
},
30-
{
31-
name: 'debug-android'
32-
},
33-
{
34-
name: 'debug-ios'
35-
},
36-
{
37-
name: 'detox'
38-
},
39-
{
40-
name: 'directions'
41-
},
42-
{
43-
name: 'email'
44-
},
45-
{
46-
name: 'facebook'
47-
},
48-
{
49-
name: 'fingerprint-auth'
50-
},
51-
{
52-
name: 'geolocation'
53-
},
54-
{
55-
name: 'google-signin'
56-
},
57-
{
58-
name: 'imagepicker'
59-
},
60-
{
61-
name: 'ios-security'
62-
},
63-
{
64-
name: 'iqkeyboardmanager'
65-
},
66-
{
67-
name: 'local-notifications'
68-
},
69-
{
70-
name: 'localize'
71-
},
72-
{
73-
name: 'picker'
74-
},
75-
{
76-
name: 'shared-notification-delegate'
77-
},
78-
{
79-
name: 'social-share'
80-
},
81-
{
82-
name: 'twitter'
83-
},
84-
{
85-
name: 'zip'
86-
}
87-
];
88-
}
9+
{
10+
name: 'animated-circle',
11+
},
12+
{
13+
name: 'appavailability',
14+
},
15+
{
16+
name: 'auto-fit-text',
17+
},
18+
{
19+
name: 'background-http',
20+
},
21+
{
22+
name: 'brightness',
23+
},
24+
{
25+
name: 'camera',
26+
},
27+
{
28+
name: 'cloudinary',
29+
},
30+
{
31+
name: 'datetimepicker',
32+
},
33+
{
34+
name: 'debug-android',
35+
},
36+
{
37+
name: 'debug-ios',
38+
},
39+
{
40+
name: 'detox',
41+
},
42+
{
43+
name: 'directions',
44+
},
45+
{
46+
name: 'email',
47+
},
48+
{
49+
name: 'facebook',
50+
},
51+
{
52+
name: 'fingerprint-auth',
53+
},
54+
{
55+
name: 'geolocation',
56+
},
57+
{
58+
name: 'google-signin',
59+
},
60+
{
61+
name: 'imagepicker',
62+
},
63+
{
64+
name: 'ios-security',
65+
},
66+
{
67+
name: 'iqkeyboardmanager',
68+
},
69+
{
70+
name: 'local-notifications',
71+
},
72+
{
73+
name: 'localize',
74+
},
75+
{
76+
name: 'picker',
77+
},
78+
{
79+
name: 'shared-notification-delegate',
80+
},
81+
{
82+
name: 'social-share',
83+
},
84+
{
85+
name: 'twitter',
86+
},
87+
{
88+
name: 'zip',
89+
},
90+
];
91+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="cloudinary" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test cloudinary" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import { DemoSharedCloudinary } from '@demo/shared';
3+
import {} from '@nativescript/cloudinary';
4+
5+
@Component({
6+
selector: 'demo-cloudinary',
7+
templateUrl: 'cloudinary.component.html',
8+
})
9+
export class CloudinaryComponent {
10+
demoShared: DemoSharedCloudinary;
11+
12+
constructor(private _ngZone: NgZone) {}
13+
14+
ngOnInit() {
15+
this.demoShared = new DemoSharedCloudinary();
16+
}
17+
}

0 commit comments

Comments
 (0)