Skip to content

Commit

Permalink
fix plugin swift code, change example pub spec to use library from repo
Browse files Browse the repository at this point in the history
  • Loading branch information
charafau committed Aug 12, 2024
1 parent 631faca commit 92a88fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class ConnectivityPlusPlugin: NSObject, FlutterPlugin, FlutterStreamHandl
binaryMessenger: binaryMessenger)

let connectivityProvider = PathMonitorConnectivityProvider()
let instance = SwiftConnectivityPlusPlugin(connectivityProvider: connectivityProvider)
let instance = ConnectivityPlusPlugin(connectivityProvider: connectivityProvider)
streamChannel.setStreamHandler(instance)

registrar.addMethodCallDelegate(instance, channel: channel)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: connectivity_plus_example
description: Demonstrates how to use the connectivity_plus plugin.

environment:
sdk: '>=2.12.0 <4.0.0'
sdk: ">=2.12.0 <4.0.0"

dependencies:
flutter:
sdk: flutter
connectivity_plus: ^6.0.5

connectivity_plus:
path: ..
dev_dependencies:
flutter_driver:
sdk: flutter
Expand Down

0 comments on commit 92a88fb

Please sign in to comment.