Skip to content

Commit

Permalink
[tizen_app_control] Update messageport_tizen dependency in example to…
Browse files Browse the repository at this point in the history
… fix build error (#322)

* Update dependency in example to fix build error

* Replace deprecated members in example
  • Loading branch information
HakkyuKim authored Jan 6, 2022
1 parent 6500512 commit 3fb51bd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions packages/tizen_app_control/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.1.0

* Initial release.

## 0.1.1

* Update messageport_tizen to 0.2.0 in example.
* Replace deprecated members in example app.
2 changes: 1 addition & 1 deletion packages/tizen_app_control/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ To use this package, add `tizen_app_control` as a dependency in your `pubspec.ya

```yaml
dependencies:
tizen_app_control: ^0.1.0
tizen_app_control: ^0.1.1
```
### Sending a launch request
Expand Down
5 changes: 2 additions & 3 deletions packages/tizen_app_control/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ void serviceMain() {

// Connect to the UI app and send messages.
// An exception will be thrown if the UI app is not running.
TizenMessagePort.connectToRemotePort(_kAppId, _kPortName)
.then((RemotePort remotePort) async {
RemotePort.connect(_kAppId, _kPortName).then((RemotePort remotePort) async {
while (true) {
if (await remotePort.check()) {
await remotePort.send(null);
Expand Down Expand Up @@ -73,7 +72,7 @@ class _MyAppState extends State<MyApp> {
super.initState();

// Open a message port to receive messages from the service app.
TizenMessagePort.createLocalPort(_kPortName).then((LocalPort value) {
LocalPort.create(_kPortName).then((LocalPort value) {
_localPort = value;
_localPort?.register((dynamic message, [RemotePort? remotePort]) {
setState(() {
Expand Down
2 changes: 1 addition & 1 deletion packages/tizen_app_control/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: "none"
dependencies:
flutter:
sdk: flutter
messageport_tizen: ^0.1.0
messageport_tizen: ^0.2.0
tizen_app_control:
path: ../

Expand Down
2 changes: 1 addition & 1 deletion packages/tizen_app_control/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Tizen application control APIs. Used for launching and terminating
applications on a Tizen device.
homepage: https://github.com/flutter-tizen/plugins
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/tizen_app_control
version: 0.1.0
version: 0.1.1

dependencies:
ffi: ^1.1.2
Expand Down

0 comments on commit 3fb51bd

Please sign in to comment.