mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
chore(package): bump dependencies and lint rules
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
|
||||
export interface TwitterConnectResponse {
|
||||
/**
|
||||
@@ -56,7 +56,8 @@ export interface TwitterConnectResponse {
|
||||
plugin: 'twitter-connect-plugin',
|
||||
pluginRef: 'TwitterConnect',
|
||||
repo: 'https://github.com/chroa/twitter-connect-plugin',
|
||||
install: 'ionic cordova plugin add https://github.com/chroa/twitter-connect-plugin --variable FABRIC_KEY=<Fabric API Key> --variable TWITTER_KEY=<Twitter Consumer Key> --variable TWITTER_SECRET=<Twitter Consumer Secret>',
|
||||
install:
|
||||
'ionic cordova plugin add https://github.com/chroa/twitter-connect-plugin --variable FABRIC_KEY=<Fabric API Key> --variable TWITTER_KEY=<Twitter Consumer Key> --variable TWITTER_SECRET=<Twitter Consumer Secret>',
|
||||
installVariables: ['FABRIC_KEY', 'TWITTER_KEY', 'TWITTER_SECRET'],
|
||||
platforms: ['Android', 'iOS']
|
||||
})
|
||||
@@ -67,18 +68,24 @@ export class TwitterConnect extends IonicNativePlugin {
|
||||
* @returns {Promise<TwitterConnectResponse>} returns a promise that resolves if logged in and rejects if failed to login
|
||||
*/
|
||||
@Cordova()
|
||||
login(): Promise<TwitterConnectResponse> { return; }
|
||||
login(): Promise<TwitterConnectResponse> {
|
||||
return;
|
||||
}
|
||||
/**
|
||||
* Logs out
|
||||
* @returns {Promise<any>} returns a promise that resolves if logged out and rejects if failed to logout
|
||||
*/
|
||||
@Cordova()
|
||||
logout(): Promise<any> { return; }
|
||||
logout(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns user's profile information
|
||||
* @returns {Promise<any>} returns a promise that resolves if user profile is successfully retrieved and rejects if request fails
|
||||
*/
|
||||
@Cordova()
|
||||
showUser(): Promise<any> { return; }
|
||||
showUser(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user