Skip to content

Commit 3196114

Browse files
authored
[share_plus] Remove obsolete registration code (flutter-tizen#332)
1 parent ada85ae commit 3196114

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

packages/share_plus/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@
66

77
* Reimplement in Dart.
88
* Update the example app.
9+
10+
## 1.1.1
11+
12+
* Update share_plus to 3.0.5.
13+
* Remove obsolete registration code.

packages/share_plus/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ To use this plugin, add `share_plus` and `share_plus_tizen` as [dependencies in
1010

1111
```yaml
1212
dependencies:
13-
share_plus: ^3.0.4
14-
share_plus_tizen: ^1.1.0
13+
share_plus: ^3.0.5
14+
share_plus_tizen: ^1.1.1
1515
```
1616
1717
Then you can import `share_plus` in your Dart code.

packages/share_plus/example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88
image_picker: ^0.8.4+3
99
image_picker_tizen:
1010
path: ../../image_picker/
11-
share_plus: ^3.0.4
11+
share_plus: ^3.0.5
1212
share_plus_tizen:
1313
path: ../
1414

packages/share_plus/lib/share_plus_tizen.dart

-6
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@
44

55
import 'dart:ui';
66

7-
import 'package:share_plus/share_plus.dart';
87
import 'package:share_plus_platform_interface/share_plus_platform_interface.dart';
98
import 'package:tizen_app_control/app_control.dart';
109

1110
/// The Tizen implementation of [SharePlatform].
1211
class SharePlugin extends SharePlatform {
1312
/// Registers this class as the default instance of [SharePlatform].
1413
static void register() {
15-
// Remove this line once https://github.com/fluttercommunity/plus_plugins/pull/574
16-
// is released.
17-
// ignore: invalid_use_of_visible_for_testing_member
18-
Share.disableSharePlatformOverride = true;
19-
2014
SharePlatform.instance = SharePlugin();
2115
}
2216

packages/share_plus/pubspec.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: share_plus_tizen
22
description: Tizen implementation of the share_plus plugin
33
homepage: https://github.com/flutter-tizen/plugins
44
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/share_plus
5-
version: 1.1.0
5+
version: 1.1.1
66

77
flutter:
88
plugin:
@@ -13,9 +13,8 @@ flutter:
1313
dependencies:
1414
flutter:
1515
sdk: flutter
16-
share_plus: ^3.0.4
1716
share_plus_platform_interface: ^2.0.1
18-
tizen_app_control: ^0.1.0
17+
tizen_app_control: ^0.1.1
1918

2019
dev_dependencies:
2120
flutter_lints: ^1.0.4

0 commit comments

Comments
 (0)