Skip to content

Commit

Permalink
Merge branch 'main' into feat/connectivity-multiple-types
Browse files Browse the repository at this point in the history
  • Loading branch information
suquant committed Feb 20, 2024
2 parents ef1c72f + baa336f commit 92398f5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:8.2.0'
classpath 'com.android.tools.build:gradle:8.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import android.os.Handler;
import android.os.Looper;
import io.flutter.plugin.common.EventChannel;
import java.util.Collections;

/**
* The ConnectivityBroadcastReceiver receives the connectivity updates and send them to the UIThread
Expand Down Expand Up @@ -88,7 +89,7 @@ private void sendEvent() {
}

private void sendEvent(final String networkType) {
Runnable runnable = () -> events.success(networkType);
Runnable runnable = () -> events.success(Collections.singletonList(networkType));
mainHandler.post(runnable);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void main() {
switch (methodCall.method) {
case 'check':
// Simulate returning a comma-separated string of connectivity statuses
return 'wifi,mobile';
return List<String>.from(['wifi', 'mobile']);
default:
return null;
}
Expand All @@ -45,7 +45,8 @@ void main() {
.handlePlatformMessage(
methodChannelConnectivity.eventChannel.name,
methodChannelConnectivity.eventChannel.codec
.encodeSuccessEnvelope('wifi,mobile'),
.encodeSuccessEnvelope(
List<String>.from(['wifi', 'mobile'])),
(_) {},
);
break;
Expand Down
4 changes: 2 additions & 2 deletions packages/package_info_plus/package_info_plus/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies:
meta: ^1.8.0
path: ^1.8.2
package_info_plus_platform_interface: ^2.0.1
web: '>=0.3.0 <0.5.0'
web: ">=0.3.0 <0.6.0"

# win32 is compatible across v4 and v5 for Win32 only (not COM)
win32: ">=4.0.0 <6.0.0"
Expand All @@ -46,4 +46,4 @@ dev_dependencies:

environment:
sdk: ^3.2.0
flutter: '>=3.6.0'
flutter: ">=3.6.0"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:8.1.2'
classpath 'com.android.tools.build:gradle:8.2.2'
}
}

Expand Down

0 comments on commit 92398f5

Please sign in to comment.