Skip to content

Commit ffc6502

Browse files
Realtime Updates Implementation (#59)
* Implemented realtime flags * Fix tests and upgrade some packages * Update Flutter version in CI script * Fixing CI * Add extra test and fix error parsing JSON * Fixing CI * Fixing CI * Fix reconnect timer * PR comments
1 parent c0a40ef commit ffc6502

29 files changed

Lines changed: 980 additions & 391 deletions

.github/workflows/publish_master.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: subosito/flutter-action@v2
1414
with:
15-
flutter-version: '2.x'
16-
channel: 'any'
15+
flutter-version: '3.x'
16+
channel: 'stable'
1717
- run: flutter pub get
1818
- run: flutter analyze
1919

.github/workflows/pull-request.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- uses: actions/checkout@v3
1919
- uses: subosito/flutter-action@v2
2020
with:
21-
flutter-version: '2.x'
22-
channel: 'any'
21+
flutter-version: '3.x'
22+
channel: 'stable'
2323
- run: flutter pub get
2424
- run: flutter analyze
2525

@@ -30,8 +30,8 @@ jobs:
3030
- uses: actions/checkout@v3
3131
- uses: subosito/flutter-action@v2
3232
with:
33-
flutter-version: '2.x'
34-
channel: 'any'
33+
flutter-version: '3.x'
34+
channel: 'stable'
3535

3636
- run: flutter pub get
3737
- run: flutter pub test
@@ -46,8 +46,8 @@ jobs:
4646
- uses: actions/checkout@v3
4747
- uses: subosito/flutter-action@v2
4848
with:
49-
flutter-version: '2.x'
50-
channel: 'any'
49+
flutter-version: '3.x'
50+
channel: 'stable'
5151

5252
- run: flutter pub publish --dry-run
5353

analysis_options.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
include: package:lints/recommended.yaml
22

33
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: true
74
exclude:
85
- "build/**"
96
- "lib/generated/**"

example/.metadata

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,45 @@
11
# This file tracks properties of this Flutter project.
22
# Used by Flutter tool to assess capabilities and perform upgrades etc.
33
#
4-
# This file should be version controlled and should not be manually edited.
4+
# This file should be version controlled.
55

66
version:
7-
revision: 216dee60c0cc9449f0b29bcf922974d612263e24
7+
revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
88
channel: stable
99

1010
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
17+
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
18+
- platform: android
19+
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
20+
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
21+
- platform: ios
22+
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
23+
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
24+
- platform: linux
25+
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
26+
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
27+
- platform: macos
28+
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
29+
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
30+
- platform: web
31+
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
32+
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
33+
- platform: windows
34+
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
35+
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

example/ios/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
**/dgph
12
*.mode1v3
23
*.mode2v3
34
*.moved-aside
@@ -18,6 +19,7 @@ Flutter/App.framework
1819
Flutter/Flutter.framework
1920
Flutter/Flutter.podspec
2021
Flutter/Generated.xcconfig
22+
Flutter/ephemeral/
2123
Flutter/app.flx
2224
Flutter/app.zip
2325
Flutter/flutter_assets/

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
6-
<string>$(DEVELOPMENT_LANGUAGE)</string>
6+
<string>en</string>
77
<key>CFBundleExecutable</key>
88
<string>App</string>
99
<key>CFBundleIdentifier</key>
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>8.0</string>
24+
<string>11.0</string>
2525
</dict>
2626
</plist>

example/ios/Flutter/Debug.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
22
#include "Generated.xcconfig"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
22
#include "Generated.xcconfig"

example/ios/Podfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
# platform :ios, '11.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
@@ -32,6 +32,9 @@ target 'Runner' do
3232
use_modular_headers!
3333

3434
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35+
target 'RunnerTests' do
36+
inherit! :search_paths
37+
end
3538
end
3639

3740
post_install do |installer|

example/ios/Podfile.lock

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,35 @@ PODS:
22
- Flutter (1.0.0)
33
- hexcolor (0.0.1):
44
- Flutter
5-
- path_provider (0.0.1):
5+
- path_provider_foundation (0.0.1):
66
- Flutter
7-
- shared_preferences (0.0.1):
7+
- FlutterMacOS
8+
- shared_preferences_foundation (0.0.1):
89
- Flutter
10+
- FlutterMacOS
911

1012
DEPENDENCIES:
1113
- Flutter (from `Flutter`)
1214
- hexcolor (from `.symlinks/plugins/hexcolor/ios`)
13-
- path_provider (from `.symlinks/plugins/path_provider/ios`)
14-
- shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
15+
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/ios`)
16+
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/ios`)
1517

1618
EXTERNAL SOURCES:
1719
Flutter:
1820
:path: Flutter
1921
hexcolor:
2022
:path: ".symlinks/plugins/hexcolor/ios"
21-
path_provider:
22-
:path: ".symlinks/plugins/path_provider/ios"
23-
shared_preferences:
24-
:path: ".symlinks/plugins/shared_preferences/ios"
23+
path_provider_foundation:
24+
:path: ".symlinks/plugins/path_provider_foundation/ios"
25+
shared_preferences_foundation:
26+
:path: ".symlinks/plugins/shared_preferences_foundation/ios"
2527

2628
SPEC CHECKSUMS:
27-
Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
29+
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
2830
hexcolor: fdfb9c4258ad96e949c2dbcdf790a62194b8aa89
29-
path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
30-
shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
31+
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
32+
shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
3133

32-
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
34+
PODFILE CHECKSUM: 70d9d25280d0dd177a5f637cdb0f0b0b12c6a189
3335

34-
COCOAPODS: 1.10.1
36+
COCOAPODS: 1.12.1

0 commit comments

Comments
 (0)