Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 65a8f86

Browse files
committed
## [1.1.1] - Updated plugins
1 parent ff11ea8 commit 65a8f86

22 files changed

+97
-178
lines changed

.flutter-plugins-dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.6/","native_build":true,"dependencies":[]}],"android":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.6/","native_build":true,"dependencies":[]}],"macos":[{"name":"connectivity_plus_macos","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_macos-1.2.4/","native_build":true,"dependencies":[]}],"linux":[{"name":"connectivity_plus_linux","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_linux-1.3.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"connectivity_plus_windows","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_windows-1.2.2/","native_build":true,"dependencies":[]}],"web":[{"name":"connectivity_plus_web","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_web-1.2.3/","dependencies":[]}]},"dependencyGraph":[{"name":"connectivity_plus","dependencies":["connectivity_plus_linux","connectivity_plus_macos","connectivity_plus_web","connectivity_plus_windows"]},{"name":"connectivity_plus_linux","dependencies":[]},{"name":"connectivity_plus_macos","dependencies":[]},{"name":"connectivity_plus_web","dependencies":[]},{"name":"connectivity_plus_windows","dependencies":[]}],"date_created":"2022-07-24 22:19:52.175336","version":"3.0.5"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/","native_build":true,"dependencies":[]}],"android":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/","native_build":true,"dependencies":[]}],"macos":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/","native_build":true,"dependencies":[]}],"linux":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/","native_build":false,"dependencies":[]}],"windows":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/","native_build":true,"dependencies":[]}],"web":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/","dependencies":[]}]},"dependencyGraph":[{"name":"connectivity_plus","dependencies":[]}],"date_created":"2022-12-20 15:49:52.195478","version":"3.3.7"}

CHANGELOG.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1+
## [1.1.1] - Updated plugins
2+
13
## [1.1.0] - Updated plugins
2-
- Resolved [#12](https://github.com/ajaynonstopio/connectivity_wrapper/issues/12)
4+
- Resolved [#12](https://github.com/ProjectAj14/connectivity_wrapper/issues/12)
35
- Updated example for showing the widget for the entire app
46

57
## [1.0.6] - Maintenance issues and suggestions.
68

7-
- Resolved [#6](https://github.com/ajaynonstopio/connectivity_wrapper/issues/6)
9+
- Resolved [#6](https://github.com/ProjectAj14/connectivity_wrapper/issues/6)
810

911
## [1.0.5] - Maintenance issues and suggestions.
1012

11-
- Migrating to null safety and updated provider to: ^5.0.0 [#7](https://github.com/ajaynonstopio/connectivity_wrapper/issues/7)
13+
- Migrating to null safety and updated provider to: ^5.0.0 [#7](https://github.com/ProjectAj14/connectivity_wrapper/issues/7)
1214

1315
## [1.0.4] - Maintenance issues and suggestions.
1416

15-
- Added New ConnectivityScreenWrapper for [#1](https://github.com/ajaynonstopio/connectivity_wrapper/issues/1)
16-
- Updated to provider: ^4.3.2 [#2](https://github.com/ajaynonstopio/connectivity_wrapper/issues/2)
17+
- Added New ConnectivityScreenWrapper for [#1](https://github.com/ProjectAj14/connectivity_wrapper/issues/1)
18+
- Updated to provider: ^4.3.2 [#2](https://github.com/ProjectAj14/connectivity_wrapper/issues/2)
1719
- Exposed `lastStatus` as an API
1820

1921
## [1.0.3] - Maintenance issues and suggestions.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ connectivity_wrapper
22

33
MIT
44

5-
Copyright 2020 Nonstop io Technologies Pvt Ltd
5+
Copyright 2022 Nonstop io Technologies Pvt Ltd
66

77
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
88

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![](https://img.shields.io/badge/build-1.0.6-brightgreen)](https://github.com/ajaynonstopio/connectivity_wrapper)
1+
[![](https://img.shields.io/badge/build-1.1.1-brightgreen)](https://github.com/ProjectAj14/connectivity_wrapper)
22
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
33

44
# connectivity_wrapper
@@ -100,7 +100,7 @@ class MyApp extends StatelessWidget {
100100
```
101101

102102

103-
##STEP 2: The last step, Wrap your body widget with `ConnectivityWidgetWrapper` or use [`ConnectivityScreenWrapper`](https://github.com/ajaynonstopio/connectivity_wrapper/blob/master/example/lib/screens/menu_screen.dart) for In-build animation
103+
##STEP 2: The last step, Wrap your body widget with `ConnectivityWidgetWrapper` or use [`ConnectivityScreenWrapper`](https://github.com/ProjectAj14/connectivity_wrapper/blob/master/example/lib/screens/menu_screen.dart) for In-build animation
104104

105105
```dart
106106
@@ -301,4 +301,15 @@ There are couple of ways in which you can contribute.
301301
- Participate in a discussion and help in decision making
302302
- Write and improve some **documentation**. Documentation is super critical and its importance
303303
cannot be overstated!
304-
- Send in a Pull Request :-)
304+
- Send in a Pull Request :-)
305+
306+
307+
308+
<br>
309+
<div align="center" >
310+
<p>Thanks to all contributors of this package</p>
311+
<a href="https://github.com/ProjectAJ14/connectivity_wrapper/graphs/contributors">
312+
<img src="https://contrib.rocks/image?repo=ProjectAJ14/connectivity_wrapper" />
313+
</a>
314+
</div>
315+
<br>

example/.flutter-plugins-dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.6/","native_build":true,"dependencies":[]}],"android":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.6/","native_build":true,"dependencies":[]}],"macos":[{"name":"connectivity_plus_macos","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_macos-1.2.4/","native_build":true,"dependencies":[]}],"linux":[{"name":"connectivity_plus_linux","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_linux-1.3.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"connectivity_plus_windows","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_windows-1.2.2/","native_build":true,"dependencies":[]}],"web":[{"name":"connectivity_plus_web","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_web-1.2.3/","dependencies":[]}]},"dependencyGraph":[{"name":"connectivity_plus","dependencies":["connectivity_plus_linux","connectivity_plus_macos","connectivity_plus_web","connectivity_plus_windows"]},{"name":"connectivity_plus_linux","dependencies":[]},{"name":"connectivity_plus_macos","dependencies":[]},{"name":"connectivity_plus_web","dependencies":[]},{"name":"connectivity_plus_windows","dependencies":[]}],"date_created":"2022-07-24 22:19:53.486296","version":"3.0.5"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/","native_build":true,"dependencies":[]}],"android":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/","native_build":true,"dependencies":[]}],"macos":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/","native_build":true,"dependencies":[]}],"linux":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/","native_build":false,"dependencies":[]}],"windows":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/","native_build":true,"dependencies":[]}],"web":[{"name":"connectivity_plus","path":"/Users/ajaykumar/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/","dependencies":[]}]},"dependencyGraph":[{"name":"connectivity_plus","dependencies":[]}],"date_created":"2022-12-20 15:49:52.469159","version":"3.3.7"}

example/README.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1 @@
1-
# connectivity_wrapper_example
2-
3-
Demonstrates how to use the connectivity_wrapper plugin
4-
5-
## Getting Started
6-
7-
This project is a starting point for a Flutter application.
8-
9-
A few resources to get you started if this is your first Flutter project:
10-
11-
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12-
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13-
14-
For help getting started with Flutter, view our
15-
[online documentation](https://flutter.dev/docs), which offers tutorials,
16-
samples, guidance on mobile development, and a full API reference.
1+
../README.md

example/lib/generated_plugin_registrant.dart

Lines changed: 0 additions & 17 deletions
This file was deleted.

example/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import FlutterMacOS
66
import Foundation
77

8-
import connectivity_plus_macos
8+
import connectivity_plus
99

1010
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1111
ConnectivityPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlugin"))

example/pubspec.lock

Lines changed: 32 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ packages:
1414
name: async
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "2.8.2"
17+
version: "2.9.0"
1818
boolean_selector:
1919
dependency: transitive
2020
description:
@@ -28,21 +28,14 @@ packages:
2828
name: characters
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "1.2.0"
32-
charcode:
33-
dependency: transitive
34-
description:
35-
name: charcode
36-
url: "https://pub.dartlang.org"
37-
source: hosted
38-
version: "1.3.1"
31+
version: "1.2.1"
3932
clock:
4033
dependency: transitive
4134
description:
4235
name: clock
4336
url: "https://pub.dartlang.org"
4437
source: hosted
45-
version: "1.1.0"
38+
version: "1.1.1"
4639
collection:
4740
dependency: transitive
4841
description:
@@ -56,49 +49,21 @@ packages:
5649
name: connectivity_plus
5750
url: "https://pub.dartlang.org"
5851
source: hosted
59-
version: "2.3.6"
60-
connectivity_plus_linux:
61-
dependency: transitive
62-
description:
63-
name: connectivity_plus_linux
64-
url: "https://pub.dartlang.org"
65-
source: hosted
66-
version: "1.3.1"
67-
connectivity_plus_macos:
68-
dependency: transitive
69-
description:
70-
name: connectivity_plus_macos
71-
url: "https://pub.dartlang.org"
72-
source: hosted
73-
version: "1.2.4"
52+
version: "3.0.2"
7453
connectivity_plus_platform_interface:
7554
dependency: transitive
7655
description:
7756
name: connectivity_plus_platform_interface
7857
url: "https://pub.dartlang.org"
7958
source: hosted
80-
version: "1.2.0"
81-
connectivity_plus_web:
82-
dependency: transitive
83-
description:
84-
name: connectivity_plus_web
85-
url: "https://pub.dartlang.org"
86-
source: hosted
8759
version: "1.2.3"
88-
connectivity_plus_windows:
89-
dependency: transitive
90-
description:
91-
name: connectivity_plus_windows
92-
url: "https://pub.dartlang.org"
93-
source: hosted
94-
version: "1.2.2"
9560
connectivity_wrapper:
9661
dependency: "direct main"
9762
description:
9863
path: ".."
9964
relative: true
10065
source: path
101-
version: "1.1.0"
66+
version: "1.1.1"
10267
cupertino_icons:
10368
dependency: "direct main"
10469
description:
@@ -119,7 +84,7 @@ packages:
11984
name: fake_async
12085
url: "https://pub.dartlang.org"
12186
source: hosted
122-
version: "1.3.0"
87+
version: "1.3.1"
12388
ffi:
12489
dependency: transitive
12590
description:
@@ -132,6 +97,13 @@ packages:
13297
description: flutter
13398
source: sdk
13499
version: "0.0.0"
100+
flutter_lints:
101+
dependency: "direct dev"
102+
description:
103+
name: flutter_lints
104+
url: "https://pub.dartlang.org"
105+
source: hosted
106+
version: "2.0.1"
135107
flutter_test:
136108
dependency: "direct dev"
137109
description: flutter
@@ -149,27 +121,34 @@ packages:
149121
url: "https://pub.dartlang.org"
150122
source: hosted
151123
version: "0.6.4"
124+
lints:
125+
dependency: transitive
126+
description:
127+
name: lints
128+
url: "https://pub.dartlang.org"
129+
source: hosted
130+
version: "2.0.1"
152131
matcher:
153132
dependency: transitive
154133
description:
155134
name: matcher
156135
url: "https://pub.dartlang.org"
157136
source: hosted
158-
version: "0.12.11"
137+
version: "0.12.12"
159138
material_color_utilities:
160139
dependency: transitive
161140
description:
162141
name: material_color_utilities
163142
url: "https://pub.dartlang.org"
164143
source: hosted
165-
version: "0.1.4"
144+
version: "0.1.5"
166145
meta:
167146
dependency: transitive
168147
description:
169148
name: meta
170149
url: "https://pub.dartlang.org"
171150
source: hosted
172-
version: "1.7.0"
151+
version: "1.8.0"
173152
nested:
174153
dependency: transitive
175154
description:
@@ -190,7 +169,7 @@ packages:
190169
name: path
191170
url: "https://pub.dartlang.org"
192171
source: hosted
193-
version: "1.8.1"
172+
version: "1.8.2"
194173
petitparser:
195174
dependency: transitive
196175
description:
@@ -204,14 +183,14 @@ packages:
204183
name: plugin_platform_interface
205184
url: "https://pub.dartlang.org"
206185
source: hosted
207-
version: "2.0.2"
186+
version: "2.1.3"
208187
provider:
209188
dependency: transitive
210189
description:
211190
name: provider
212191
url: "https://pub.dartlang.org"
213192
source: hosted
214-
version: "6.0.3"
193+
version: "6.0.5"
215194
sky_engine:
216195
dependency: transitive
217196
description: flutter
@@ -223,7 +202,7 @@ packages:
223202
name: source_span
224203
url: "https://pub.dartlang.org"
225204
source: hosted
226-
version: "1.8.2"
205+
version: "1.9.0"
227206
stack_trace:
228207
dependency: transitive
229208
description:
@@ -244,21 +223,21 @@ packages:
244223
name: string_scanner
245224
url: "https://pub.dartlang.org"
246225
source: hosted
247-
version: "1.1.0"
226+
version: "1.1.1"
248227
term_glyph:
249228
dependency: transitive
250229
description:
251230
name: term_glyph
252231
url: "https://pub.dartlang.org"
253232
source: hosted
254-
version: "1.2.0"
233+
version: "1.2.1"
255234
test_api:
256235
dependency: transitive
257236
description:
258237
name: test_api
259238
url: "https://pub.dartlang.org"
260239
source: hosted
261-
version: "0.4.9"
240+
version: "0.4.12"
262241
vector_math:
263242
dependency: transitive
264243
description:
@@ -274,5 +253,5 @@ packages:
274253
source: hosted
275254
version: "6.1.0"
276255
sdks:
277-
dart: ">=2.17.0 <3.0.0"
278-
flutter: ">=1.20.0"
256+
dart: ">=2.18.4 <3.0.0"
257+
flutter: ">=2.11.0"

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
dev_dependencies:
1717
flutter_test:
1818
sdk: flutter
19-
19+
flutter_lints: ^2.0.1
2020
flutter:
2121
uses-material-design: true
2222

example/windows/flutter/generated_plugin_registrant.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include "generated_plugin_registrant.h"
88

9-
#include <connectivity_plus_windows/connectivity_plus_windows_plugin.h>
9+
#include <connectivity_plus/connectivity_plus_windows_plugin.h>
1010

1111
void RegisterPlugins(flutter::PluginRegistry* registry) {
1212
ConnectivityPlusWindowsPluginRegisterWithRegistrar(

example/windows/flutter/generated_plugins.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6-
connectivity_plus_windows
6+
connectivity_plus
77
)
88

99
list(APPEND FLUTTER_FFI_PLUGIN_LIST

lib/connectivity_wrapper.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ class ConnectivityWrapper {
8585
List<AddressCheckResult> _lastTryResults = <AddressCheckResult>[];
8686

8787
Future<bool> get isConnected async {
88-
if (kIsWeb) return await _checkWebConnection();
88+
bool connected = await _checkWebConnection();
89+
if (kIsWeb) return connected;
90+
if (!connected) return connected;
91+
8992
List<Future<AddressCheckResult>> requests = [];
9093

9194
for (var addressOptions in addresses) {

lib/src/providers/connectivity_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:async';
22

33
import 'package:connectivity_wrapper/connectivity_wrapper.dart';
4-
// Flutter imports:
4+
55
import 'package:flutter/material.dart';
66

77
/// [ConnectivityProvider] event ChangeNotifier class for ConnectivityStatus .

0 commit comments

Comments
 (0)