Skip to content

Commit 661834b

Browse files
committed
new mdns lib
1 parent 39554ab commit 661834b

File tree

12 files changed

+82
-25
lines changed

12 files changed

+82
-25
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [1.0.5+70]
2+
3+
* mdns
4+
15
## [1.0.5+69]
26

37
* new mdns lib

example/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
1113
migrate_working_dir/
1214

1315
# IntelliJ related

example/lib/main.dart

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import 'package:flutter/material.dart';
2+
3+
import 'package:flutter/material.dart';
4+
import 'package:flutter_localizations/flutter_localizations.dart';
25
import 'package:oktoast/oktoast.dart';
6+
import 'package:openiothub_common_pages/commPages/findmDNSClientList.dart';
7+
import 'package:openiothub_common_pages/l10n/generated/openiothub_common_localizations.dart';
38
import 'package:openiothub_common_pages/wifiConfig/airkiss.dart';
49

510
void main() {
611
runApp(const MyApp());
12+
// runApp(const FindmDNSClientListPage());
713
}
814

915
class MyApp extends StatelessWidget {
@@ -15,6 +21,17 @@ class MyApp extends StatelessWidget {
1521
return OKToast(
1622
child:MaterialApp(
1723
title: 'Flutter Demo',
24+
localizationsDelegates: const [
25+
OpenIoTHubCommonLocalizations.delegate,
26+
GlobalMaterialLocalizations.delegate,
27+
GlobalCupertinoLocalizations.delegate,
28+
GlobalWidgetsLocalizations.delegate
29+
],
30+
supportedLocales: OpenIoTHubCommonLocalizations.supportedLocales,
31+
localeListResolutionCallback: (locales, supportedLocales) {
32+
print("locales:$locales");
33+
return;
34+
},
1835
theme: ThemeData(
1936
// This is the theme of your application.
2037
//
@@ -34,7 +51,8 @@ class MyApp extends StatelessWidget {
3451
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
3552
useMaterial3: true,
3653
),
37-
home: const MyHomePage(title: 'Flutter Demo Home Page'),
54+
// home: const MyHomePage(title: 'Flutter Demo Home Page'),
55+
home: FindmDNSClientListPage(),
3856
));
3957
}
4058
}

example/macos/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
platform :osx, '10.14'
1+
platform :osx, '10.15'
22

33
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
44
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

example/macos/Podfile.lock

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
PODS:
2-
- flutter_nsd (0.0.1):
2+
- bonsoir_darwin (0.0.1):
3+
- Flutter
4+
- FlutterMacOS
5+
- file_picker (0.0.1):
6+
- FlutterMacOS
7+
- file_selector_macos (0.0.1):
38
- FlutterMacOS
49
- FlutterMacOS (1.0.0)
510
- network_info_plus (0.0.1):
@@ -12,25 +17,35 @@ PODS:
1217
- shared_preferences_foundation (0.0.1):
1318
- Flutter
1419
- FlutterMacOS
20+
- sqflite_darwin (0.0.4):
21+
- Flutter
22+
- FlutterMacOS
1523
- url_launcher_macos (0.0.1):
1624
- FlutterMacOS
1725
- webview_flutter_wkwebview (0.0.1):
1826
- Flutter
1927
- FlutterMacOS
2028

2129
DEPENDENCIES:
22-
- flutter_nsd (from `Flutter/ephemeral/.symlinks/plugins/flutter_nsd/macos`)
30+
- bonsoir_darwin (from `Flutter/ephemeral/.symlinks/plugins/bonsoir_darwin/darwin`)
31+
- file_picker (from `Flutter/ephemeral/.symlinks/plugins/file_picker/macos`)
32+
- file_selector_macos (from `Flutter/ephemeral/.symlinks/plugins/file_selector_macos/macos`)
2333
- FlutterMacOS (from `Flutter/ephemeral`)
2434
- network_info_plus (from `Flutter/ephemeral/.symlinks/plugins/network_info_plus/macos`)
2535
- package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`)
2636
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
2737
- shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`)
38+
- sqflite_darwin (from `Flutter/ephemeral/.symlinks/plugins/sqflite_darwin/darwin`)
2839
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)
2940
- webview_flutter_wkwebview (from `Flutter/ephemeral/.symlinks/plugins/webview_flutter_wkwebview/darwin`)
3041

3142
EXTERNAL SOURCES:
32-
flutter_nsd:
33-
:path: Flutter/ephemeral/.symlinks/plugins/flutter_nsd/macos
43+
bonsoir_darwin:
44+
:path: Flutter/ephemeral/.symlinks/plugins/bonsoir_darwin/darwin
45+
file_picker:
46+
:path: Flutter/ephemeral/.symlinks/plugins/file_picker/macos
47+
file_selector_macos:
48+
:path: Flutter/ephemeral/.symlinks/plugins/file_selector_macos/macos
3449
FlutterMacOS:
3550
:path: Flutter/ephemeral
3651
network_info_plus:
@@ -41,21 +56,26 @@ EXTERNAL SOURCES:
4156
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
4257
shared_preferences_foundation:
4358
:path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin
59+
sqflite_darwin:
60+
:path: Flutter/ephemeral/.symlinks/plugins/sqflite_darwin/darwin
4461
url_launcher_macos:
4562
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos
4663
webview_flutter_wkwebview:
4764
:path: Flutter/ephemeral/.symlinks/plugins/webview_flutter_wkwebview/darwin
4865

4966
SPEC CHECKSUMS:
50-
flutter_nsd: 60e24f98ea47106c4f82e24d7f0fab78b3fbe8df
67+
bonsoir_darwin: 29c7ccf356646118844721f36e1de4b61f6cbd0e
68+
file_picker: 7584aae6fa07a041af2b36a2655122d42f578c1a
69+
file_selector_macos: 6280b52b459ae6c590af5d78fc35c7267a3c4b31
5170
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
52-
network_info_plus: 2cb02d8435635eae13b3b79279681985121cf30c
53-
package_info_plus: 12f1c5c2cfe8727ca46cbd0b26677728972d9a5b
54-
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
55-
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
56-
url_launcher_macos: c82c93949963e55b228a30115bd219499a6fe404
57-
webview_flutter_wkwebview: 0982481e3d9c78fd5c6f62a002fcd24fc791f1e4
71+
network_info_plus: 21d1cd6a015ccb2fdff06a1fbfa88d54b4e92f61
72+
package_info_plus: f0052d280d17aa382b932f399edf32507174e870
73+
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
74+
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
75+
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
76+
url_launcher_macos: 0fba8ddabfc33ce0a9afe7c5fef5aab3d8d2d673
77+
webview_flutter_wkwebview: 1821ceac936eba6f7984d89a9f3bcb4dea99ebb2
5878

59-
PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367
79+
PODFILE CHECKSUM: 9ebaf0ce3d369aaa26a9ea0e159195ed94724cf3
6080

61-
COCOAPODS: 1.15.2
81+
COCOAPODS: 1.16.2

example/macos/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@
557557
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
558558
GCC_WARN_UNUSED_FUNCTION = YES;
559559
GCC_WARN_UNUSED_VARIABLE = YES;
560-
MACOSX_DEPLOYMENT_TARGET = 10.14;
560+
MACOSX_DEPLOYMENT_TARGET = 10.15;
561561
MTL_ENABLE_DEBUG_INFO = NO;
562562
SDKROOT = macosx;
563563
SWIFT_COMPILATION_MODE = wholemodule;
@@ -639,7 +639,7 @@
639639
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
640640
GCC_WARN_UNUSED_FUNCTION = YES;
641641
GCC_WARN_UNUSED_VARIABLE = YES;
642-
MACOSX_DEPLOYMENT_TARGET = 10.14;
642+
MACOSX_DEPLOYMENT_TARGET = 10.15;
643643
MTL_ENABLE_DEBUG_INFO = YES;
644644
ONLY_ACTIVE_ARCH = YES;
645645
SDKROOT = macosx;
@@ -689,7 +689,7 @@
689689
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
690690
GCC_WARN_UNUSED_FUNCTION = YES;
691691
GCC_WARN_UNUSED_VARIABLE = YES;
692-
MACOSX_DEPLOYMENT_TARGET = 10.14;
692+
MACOSX_DEPLOYMENT_TARGET = 10.15;
693693
MTL_ENABLE_DEBUG_INFO = NO;
694694
SDKROOT = macosx;
695695
SWIFT_COMPILATION_MODE = wholemodule;

example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
ignoresPersistentStateOnLaunch = "NO"
6060
debugDocumentVersioning = "YES"
6161
debugServiceExtension = "internal"
62+
enableGPUValidationMode = "1"
6263
allowLocationSimulation = "YES">
6364
<BuildableProductRunnable
6465
runnableDebuggingMode = "0">

example/macos/Runner/AppDelegate.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ class AppDelegate: FlutterAppDelegate {
66
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
77
return true
88
}
9+
10+
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
11+
return true
12+
}
913
}

example/pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ packages:
367367
source: hosted
368368
version: "4.0.0"
369369
flutter_localizations:
370-
dependency: transitive
370+
dependency: "direct main"
371371
description: flutter
372372
source: sdk
373373
version: "0.0.0"
@@ -574,7 +574,7 @@ packages:
574574
source: hosted
575575
version: "0.2.1+1"
576576
intl:
577-
dependency: transitive
577+
dependency: "direct main"
578578
description:
579579
name: intl
580580
sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf
@@ -723,7 +723,7 @@ packages:
723723
path: ".."
724724
relative: true
725725
source: path
726-
version: "1.0.5+68"
726+
version: "1.0.5+69"
727727
openiothub_constants:
728728
dependency: "direct main"
729729
description:

example/pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ environment:
3030
dependencies:
3131
flutter:
3232
sdk: flutter
33-
33+
flutter_localizations:
34+
sdk: flutter
3435

3536
# The following adds the Cupertino Icons font to your application.
3637
# Use with the CupertinoIcons class for iOS style icons.
@@ -39,6 +40,7 @@ dependencies:
3940
openiothub_common_pages:
4041
path: ../
4142
openiothub_constants: ^1.0.0
43+
intl: '>=0.19.0 <= 1.0.0'
4244

4345
dev_dependencies:
4446
flutter_test:

0 commit comments

Comments
 (0)