Skip to content

Commit 8795c0b

Browse files
committed
refactor: clean code
1 parent 0695b81 commit 8795c0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+69
-3034
lines changed

webrtc-flutter-client/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ lib/generated_plugin_registrant.dart
3434

3535
# Exceptions to above rules.
3636
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
37-
.flutter-plugins-dependencies
37+
.flutter-plugins-dependencies
38+
.last_build_id

webrtc-flutter-client/ios/Podfile.lock

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,32 @@
11
PODS:
2-
- appcenter (0.0.1):
3-
- AppCenter
4-
- Flutter
5-
- AppCenter (1.2.0):
6-
- AppCenter/Analytics (= 1.2.0)
7-
- AppCenter/Crashes (= 1.2.0)
8-
- AppCenter/Analytics (1.2.0):
9-
- AppCenter/Core
10-
- AppCenter/Core (1.2.0)
11-
- AppCenter/Crashes (1.2.0):
12-
- AppCenter/Core
13-
- appcenter_analytics (0.0.1):
14-
- AppCenter/Analytics
15-
- Flutter
16-
- appcenter_crashes (0.0.1):
17-
- AppCenter/Crashes
18-
- Flutter
19-
- connectivity (0.0.1):
20-
- Flutter
21-
- Reachability
222
- Flutter (1.0.0)
233
- flutter_webrtc (0.2.2):
244
- Flutter
255
- GoogleWebRTC (= 1.1.29400)
266
- Libyuv (= 1703)
27-
- FMDB (2.7.5):
28-
- FMDB/standard (= 2.7.5)
29-
- FMDB/standard (2.7.5)
307
- GoogleWebRTC (1.1.29400)
318
- Libyuv (1703)
32-
- path_provider (0.0.1):
33-
- Flutter
34-
- Reachability (3.2)
35-
- sqflite (0.0.1):
36-
- Flutter
37-
- FMDB (~> 2.7.2)
389

3910
DEPENDENCIES:
40-
- appcenter (from `.symlinks/plugins/appcenter/ios`)
41-
- appcenter_analytics (from `.symlinks/plugins/appcenter_analytics/ios`)
42-
- appcenter_crashes (from `.symlinks/plugins/appcenter_crashes/ios`)
43-
- connectivity (from `.symlinks/plugins/connectivity/ios`)
4411
- Flutter (from `Flutter`)
4512
- flutter_webrtc (from `.symlinks/plugins/flutter_webrtc/ios`)
46-
- path_provider (from `.symlinks/plugins/path_provider/ios`)
47-
- sqflite (from `.symlinks/plugins/sqflite/ios`)
4813

4914
SPEC REPOS:
5015
trunk:
51-
- AppCenter
52-
- FMDB
5316
- GoogleWebRTC
5417
- Libyuv
55-
- Reachability
5618

5719
EXTERNAL SOURCES:
58-
appcenter:
59-
:path: ".symlinks/plugins/appcenter/ios"
60-
appcenter_analytics:
61-
:path: ".symlinks/plugins/appcenter_analytics/ios"
62-
appcenter_crashes:
63-
:path: ".symlinks/plugins/appcenter_crashes/ios"
64-
connectivity:
65-
:path: ".symlinks/plugins/connectivity/ios"
6620
Flutter:
6721
:path: Flutter
6822
flutter_webrtc:
6923
:path: ".symlinks/plugins/flutter_webrtc/ios"
70-
path_provider:
71-
:path: ".symlinks/plugins/path_provider/ios"
72-
sqflite:
73-
:path: ".symlinks/plugins/sqflite/ios"
7424

7525
SPEC CHECKSUMS:
76-
AppCenter: d0b68b2a7a87ac0aed78e66f36d87fd321d0a29c
77-
appcenter: d85aaaf534125cf92375577f086ca0925c817d1d
78-
appcenter_analytics: 134239ec65a6097fee5f0407e24423f583bd5942
79-
appcenter_crashes: bfde7d247f431a7bbe6b038709261f0432c4b2a6
80-
connectivity: 6e94255659cc86dcbef1d452ad3e0491bb1b3e75
8126
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
8227
flutter_webrtc: 626ca239bcc4390a514a2ac2b21b16d0c58b33fe
83-
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
8428
GoogleWebRTC: cfb83bc346435a17fe06bb05f04ad826b858a7fb
8529
Libyuv: 5f79ced0ee66e60a612ca97de1e6ccacd187a437
86-
path_provider: f96fff6166a8867510d2c25fdcc346327cc4b259
87-
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
88-
sqflite: 4001a31ff81d210346b500c55b17f4d6c7589dd0
8930

9031
PODFILE CHECKSUM: d6a5eef966181cbcd5960a9cb4150f11d90176fe
9132

webrtc-flutter-client/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
TargetAttributes = {
170170
97C146ED1CF9000F007C117D = {
171171
CreatedOnToolsVersion = 7.3.1;
172+
DevelopmentTeam = 4KLF9TSX4R;
172173
LastSwiftMigration = 0910;
173174
ProvisioningStyle = Automatic;
174175
};
@@ -309,7 +310,6 @@
309310
/* Begin XCBuildConfiguration section */
310311
249021D3217E4FDB00AE95B9 /* Profile */ = {
311312
isa = XCBuildConfiguration;
312-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
313313
buildSettings = {
314314
ALWAYS_SEARCH_USER_PATHS = NO;
315315
CLANG_ANALYZER_NONNULL = YES;
@@ -366,7 +366,7 @@
366366
CODE_SIGN_IDENTITY = "Apple Development";
367367
CODE_SIGN_STYLE = Automatic;
368368
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
369-
DEVELOPMENT_TEAM = "";
369+
DEVELOPMENT_TEAM = 4KLF9TSX4R;
370370
ENABLE_BITCODE = NO;
371371
FRAMEWORK_SEARCH_PATHS = (
372372
"$(inherited)",
@@ -378,7 +378,7 @@
378378
"$(inherited)",
379379
"$(PROJECT_DIR)/Flutter",
380380
);
381-
PRODUCT_BUNDLE_IDENTIFIER = com.app.nft;
381+
PRODUCT_BUNDLE_IDENTIFIER = com.beesightsoft.testing.webrtctest;
382382
PRODUCT_NAME = "$(TARGET_NAME)";
383383
PROVISIONING_PROFILE_SPECIFIER = "";
384384
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
@@ -389,7 +389,6 @@
389389
};
390390
97C147031CF9000F007C117D /* Debug */ = {
391391
isa = XCBuildConfiguration;
392-
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
393392
buildSettings = {
394393
ALWAYS_SEARCH_USER_PATHS = NO;
395394
CLANG_ANALYZER_NONNULL = YES;
@@ -445,7 +444,6 @@
445444
};
446445
97C147041CF9000F007C117D /* Release */ = {
447446
isa = XCBuildConfiguration;
448-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
449447
buildSettings = {
450448
ALWAYS_SEARCH_USER_PATHS = NO;
451449
CLANG_ANALYZER_NONNULL = YES;
@@ -503,7 +501,7 @@
503501
CODE_SIGN_IDENTITY = "Apple Development";
504502
CODE_SIGN_STYLE = Automatic;
505503
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
506-
DEVELOPMENT_TEAM = "";
504+
DEVELOPMENT_TEAM = 4KLF9TSX4R;
507505
ENABLE_BITCODE = NO;
508506
FRAMEWORK_SEARCH_PATHS = (
509507
"$(inherited)",
@@ -515,7 +513,7 @@
515513
"$(inherited)",
516514
"$(PROJECT_DIR)/Flutter",
517515
);
518-
PRODUCT_BUNDLE_IDENTIFIER = com.app.nft;
516+
PRODUCT_BUNDLE_IDENTIFIER = com.beesightsoft.testing.webrtctest;
519517
PRODUCT_NAME = "$(TARGET_NAME)";
520518
PROVISIONING_PROFILE_SPECIFIER = "";
521519
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
@@ -534,7 +532,7 @@
534532
CODE_SIGN_IDENTITY = "Apple Development";
535533
CODE_SIGN_STYLE = Automatic;
536534
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
537-
DEVELOPMENT_TEAM = "";
535+
DEVELOPMENT_TEAM = 4KLF9TSX4R;
538536
ENABLE_BITCODE = NO;
539537
FRAMEWORK_SEARCH_PATHS = (
540538
"$(inherited)",
@@ -546,7 +544,7 @@
546544
"$(inherited)",
547545
"$(PROJECT_DIR)/Flutter",
548546
);
549-
PRODUCT_BUNDLE_IDENTIFIER = com.app.nft;
547+
PRODUCT_BUNDLE_IDENTIFIER = com.beesightsoft.testing.webrtctest;
550548
PRODUCT_NAME = "$(TARGET_NAME)";
551549
PROVISIONING_PROFILE_SPECIFIER = "";
552550
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";

webrtc-flutter-client/lib/anims/expandable_widget.dart

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

webrtc-flutter-client/lib/anims/rotatable_widget.dart

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

webrtc-flutter-client/lib/provider/global.dart renamed to webrtc-flutter-client/lib/app_config.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ class Env {
3737
}
3838

3939
/// Global env
40-
class Global {
41-
Global._private();
40+
class Config {
41+
Config._private();
4242

43-
static final Global instance = Global._private();
43+
static final Config instance = Config._private();
4444

45-
factory Global({Env environment}) {
45+
factory Config({Env environment}) {
4646
if (environment != null) {
4747
instance.env = environment;
4848
}

webrtc-flutter-client/lib/main.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
*/
2424

2525
import 'package:nft/my_app.dart';
26-
import 'package:nft/provider/global.dart' as global;
26+
import 'package:nft/app_config.dart';
2727

2828
void main() async {
29-
//init dev Global
30-
global.Global(environment: global.Env.dev());
29+
// Init dev global
30+
Config(environment: Env.dev());
3131
await myMain();
3232
}

0 commit comments

Comments
 (0)