flutter/examples/platform_channel_swift
Polina Cherkasova dcbb2de0ad
Add dependency on leak_tracker to flutter_test. (#137069)
Contributes to: https://github.com/flutter/flutter/issues/135856

This PR also adds transitive dependency on  web_socket_channel, crypto, typed_data. `web_socket_channel` is needed to request retaining path for not GCed objects from VM Service. Two others are needed to serve web_socket_channel.

The dependency on leak_tracker is pinned:
aea562114c/packages/flutter_tools/lib/src/commands/update_packages.dart (L40)
2023-10-25 02:45:26 +00:00
..
ios iOS info.plist template: make UIViewControllerBasedStatusBar to be true (#128970) 2023-06-20 18:11:18 +00:00
lib Prepare examples for use_super_parameters (#100514) 2022-03-29 12:53:08 -07:00
test_driver Reland "Migrate driver tests in example/ to NNBD (#75022)" (#75264) 2021-02-04 11:11:03 -08:00
pubspec.yaml Add dependency on leak_tracker to flutter_test. (#137069) 2023-10-25 02:45:26 +00:00
README.md ✒ Spell Check All .md Files Related to Flutter 💙 (#61564) 2020-07-22 18:23:47 -07:00

Example of calling platform services from Flutter

This project demonstrates how to connect a Flutter app to platform-specific services on iOS using Swift. The equivalent version of this project in Objective C is found in examples/platform_channel.

You can read more about accessing platform and third-party services in Flutter.

iOS

You can use the commands flutter build and flutter run from the app's root directory to build/run the app or you can open ios/Runner.xcworkspace in Xcode and build/run the project as usual.

Android

We refer to the platform_channel project.