Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tizen_app_control] Update messageport_tizen dependency in example to fix build error #322

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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