Skip to content

Commit

Permalink
chore: remove Share plugin (ionic-team#3532)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Sep 15, 2020
1 parent 56fe55f commit f085f89
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 202 deletions.
2 changes: 0 additions & 2 deletions android/capacitor/src/main/java/com/getcapacitor/Bridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import com.getcapacitor.plugin.LocalNotifications;
import com.getcapacitor.plugin.Modals;
import com.getcapacitor.plugin.PushNotifications;
import com.getcapacitor.plugin.Share;
import com.getcapacitor.plugin.SplashScreen;
import com.getcapacitor.plugin.StatusBar;
import com.getcapacitor.plugin.background.BackgroundTask;
Expand Down Expand Up @@ -400,7 +399,6 @@ private void registerAllPlugins() {
this.registerPlugin(Keyboard.class);
this.registerPlugin(Modals.class);
this.registerPlugin(PushNotifications.class);
this.registerPlugin(Share.class);
this.registerPlugin(SplashScreen.class);
this.registerPlugin(StatusBar.class);
this.registerPlugin(com.getcapacitor.plugin.Toast.class);
Expand Down
83 changes: 0 additions & 83 deletions android/capacitor/src/main/java/com/getcapacitor/plugin/Share.java

This file was deleted.

30 changes: 0 additions & 30 deletions core/src/core-plugin-definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export interface PluginRegistry {
LocalNotifications: LocalNotificationsPlugin;
Modals: ModalsPlugin;
PushNotifications: PushNotificationsPlugin;
Share: SharePlugin;
SplashScreen: SplashScreenPlugin;
StatusBar: StatusBarPlugin;
Toast: ToastPlugin;
Expand Down Expand Up @@ -1375,35 +1374,6 @@ export interface PushNotificationsPlugin extends Plugin {

//

export interface SharePlugin extends Plugin {
/**
* Show a Share modal for sharing content in your app with other apps
*/
share(options: ShareOptions): Promise<any>;
}

export interface ShareOptions {
/**
* Set a title for any message. This will be the subject
* if sharing to email
*/
title?: string;
/**
* Set some text to share
*/
text?: string;
/**
* Set a URL to share, can be http, https or file URL
*/
url?: string;
/**
* Set a title for the share modal. Android only
*/
dialogTitle?: string;
}

//

export interface SplashScreenPlugin extends Plugin {
/**
* Show the splash screen
Expand Down
3 changes: 0 additions & 3 deletions core/src/web-plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Filesystem } from './web/filesystem';
import { Geolocation } from './web/geolocation';
import { LocalNotifications } from './web/local-notifications';
import { Modals } from './web/modals';
import { Share } from './web/share';
import { SplashScreen } from './web/splash-screen';
import { Toast } from './web/toast';

Expand All @@ -19,7 +18,6 @@ export * from './web/filesystem';
export * from './web/geolocation';
export * from './web/local-notifications';
export * from './web/modals';
export * from './web/share';
export * from './web/splash-screen';
export * from './web/toast';

Expand All @@ -31,6 +29,5 @@ mergeWebPlugin(Filesystem);
mergeWebPlugin(Geolocation);
mergeWebPlugin(LocalNotifications);
mergeWebPlugin(Modals);
mergeWebPlugin(Share);
mergeWebPlugin(SplashScreen);
mergeWebPlugin(Toast);
27 changes: 0 additions & 27 deletions core/src/web/share.ts

This file was deleted.

4 changes: 0 additions & 4 deletions ios/Capacitor/Capacitor/Plugins/DefaultPlugins.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@
CAP_PLUGIN_METHOD(removeAllListeners, CAPPluginReturnNone);
)

CAP_PLUGIN(CAPSharePlugin, "Share",
CAP_PLUGIN_METHOD(share, CAPPluginReturnPromise);
)

CAP_PLUGIN(CAPSplashScreenPlugin, "SplashScreen",
CAP_PLUGIN_METHOD(show, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(hide, CAPPluginReturnPromise);
Expand Down
53 changes: 0 additions & 53 deletions ios/Capacitor/Capacitor/Plugins/Share.swift

This file was deleted.

0 comments on commit f085f89

Please sign in to comment.