Skip to content

Commit 0a6da61

Browse files
TF-3603: Integrate Cozy features
TF-3603 [TEMP] expose Cozy integration result to console.log
1 parent 64c4369 commit 0a6da61

24 files changed

+548
-4
lines changed

cozy/.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
**/ios/Flutter/.last_build_id
27+
.dart_tool/
28+
.flutter-plugins
29+
.flutter-plugins-dependencies
30+
.pub-cache/
31+
.pub/
32+
/build/
33+
34+
# Symbolication related
35+
app.*.symbols
36+
37+
# Obfuscation related
38+
app.*.map.json
39+
40+
# Android Studio will place build artifacts here
41+
/android/app/debug
42+
/android/app/profile
43+
/android/app/release

cozy/.metadata

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668"
8+
channel: "[user-branch]"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
17+
base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
18+
- platform: web
19+
create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
20+
base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
21+
22+
# User provided section
23+
24+
# List of Local paths (relative to this file) that should be
25+
# ignored by the migrate tool.
26+
#
27+
# Files that are not part of the templates will be ignored by default.
28+
unmanaged_files:
29+
- 'lib/main.dart'
30+
- 'ios/Runner.xcodeproj/project.pbxproj'

cozy/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# cozy
2+
3+
Cozy config for Cozy integration

cozy/analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:flutter_lints/flutter.yaml

cozy/lib/cozy_config/cozy_config.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export 'cozy_config_stub.dart' if (dart.library.html) 'cozy_config_web.dart';
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
class _CozyConfigManagerStub {
2+
Future<void> injectCozyScript() async {
3+
throw UnimplementedError();
4+
}
5+
6+
Future<void> initialize() async {
7+
throw UnimplementedError();
8+
}
9+
}
10+
11+
class CozyConfig {
12+
static final CozyConfig _instance = CozyConfig._internal();
13+
14+
factory CozyConfig() {
15+
return _instance;
16+
}
17+
18+
CozyConfig._internal();
19+
20+
final manager = _CozyConfigManagerStub();
21+
22+
Future<bool> get isInsideCozy async {
23+
return false;
24+
}
25+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import 'dart:async';
2+
3+
import 'package:linagora_design_flutter/cozy_config_manager/cozy_config_manager.dart';
4+
5+
class CozyConfig {
6+
static final CozyConfig _instance = CozyConfig._internal();
7+
8+
factory CozyConfig() {
9+
return _instance;
10+
}
11+
12+
CozyConfig._internal();
13+
14+
final manager = CozyConfigManager();
15+
16+
bool? _isInsideCozy;
17+
18+
Future<bool> get isInsideCozy async {
19+
return _isInsideCozy ??= await manager.isInsideCozy;
20+
}
21+
}

cozy/pubspec.lock

Lines changed: 262 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
1+
# Generated by pub
2+
# See https://dart.dev/tools/pub/glossary#lockfile
3+
packages:
4+
async:
5+
dependency: transitive
6+
description:
7+
name: async
8+
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9+
url: "https://pub.dev"
10+
source: hosted
11+
version: "2.11.0"
12+
auto_size_text:
13+
dependency: transitive
14+
description:
15+
name: auto_size_text
16+
sha256: "3f5261cd3fb5f2a9ab4e2fc3fba84fd9fcaac8821f20a1d4e71f557521b22599"
17+
url: "https://pub.dev"
18+
source: hosted
19+
version: "3.0.0"
20+
boolean_selector:
21+
dependency: transitive
22+
description:
23+
name: boolean_selector
24+
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
25+
url: "https://pub.dev"
26+
source: hosted
27+
version: "2.1.1"
28+
characters:
29+
dependency: transitive
30+
description:
31+
name: characters
32+
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
33+
url: "https://pub.dev"
34+
source: hosted
35+
version: "1.3.0"
36+
clock:
37+
dependency: transitive
38+
description:
39+
name: clock
40+
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
41+
url: "https://pub.dev"
42+
source: hosted
43+
version: "1.1.1"
44+
collection:
45+
dependency: transitive
46+
description:
47+
name: collection
48+
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
49+
url: "https://pub.dev"
50+
source: hosted
51+
version: "1.18.0"
52+
equatable:
53+
dependency: transitive
54+
description:
55+
name: equatable
56+
sha256: "567c64b3cb4cf82397aac55f4f0cbd3ca20d77c6c03bedbc4ceaddc08904aef7"
57+
url: "https://pub.dev"
58+
source: hosted
59+
version: "2.0.7"
60+
fake_async:
61+
dependency: transitive
62+
description:
63+
name: fake_async
64+
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
65+
url: "https://pub.dev"
66+
source: hosted
67+
version: "1.3.1"
68+
flutter:
69+
dependency: "direct main"
70+
description: flutter
71+
source: sdk
72+
version: "0.0.0"
73+
flutter_lints:
74+
dependency: "direct dev"
75+
description:
76+
name: flutter_lints
77+
sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
78+
url: "https://pub.dev"
79+
source: hosted
80+
version: "4.0.0"
81+
flutter_test:
82+
dependency: "direct dev"
83+
description: flutter
84+
source: sdk
85+
version: "0.0.0"
86+
leak_tracker:
87+
dependency: transitive
88+
description:
89+
name: leak_tracker
90+
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
91+
url: "https://pub.dev"
92+
source: hosted
93+
version: "10.0.5"
94+
leak_tracker_flutter_testing:
95+
dependency: transitive
96+
description:
97+
name: leak_tracker_flutter_testing
98+
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
99+
url: "https://pub.dev"
100+
source: hosted
101+
version: "3.0.5"
102+
leak_tracker_testing:
103+
dependency: transitive
104+
description:
105+
name: leak_tracker_testing
106+
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
107+
url: "https://pub.dev"
108+
source: hosted
109+
version: "3.0.1"
110+
linagora_design_flutter:
111+
dependency: "direct main"
112+
description:
113+
path: "."
114+
ref: cozy-integration
115+
resolved-ref: "59f30e4c5d21fbab49670a81bbe0d37804795d1b"
116+
url: "https://github.com/linagora/linagora-design-flutter.git"
117+
source: git
118+
version: "0.0.1"
119+
lints:
120+
dependency: transitive
121+
description:
122+
name: lints
123+
sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
124+
url: "https://pub.dev"
125+
source: hosted
126+
version: "4.0.0"
127+
matcher:
128+
dependency: transitive
129+
description:
130+
name: matcher
131+
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
132+
url: "https://pub.dev"
133+
source: hosted
134+
version: "0.12.16+1"
135+
material_color_utilities:
136+
dependency: transitive
137+
description:
138+
name: material_color_utilities
139+
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
140+
url: "https://pub.dev"
141+
source: hosted
142+
version: "0.11.1"
143+
meta:
144+
dependency: transitive
145+
description:
146+
name: meta
147+
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
148+
url: "https://pub.dev"
149+
source: hosted
150+
version: "1.15.0"
151+
path:
152+
dependency: transitive
153+
description:
154+
name: path
155+
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
156+
url: "https://pub.dev"
157+
source: hosted
158+
version: "1.9.0"
159+
permission_handler_platform_interface:
160+
dependency: transitive
161+
description:
162+
name: permission_handler_platform_interface
163+
sha256: "6760eb5ef34589224771010805bea6054ad28453906936f843a8cc4d3a55c4a4"
164+
url: "https://pub.dev"
165+
source: hosted
166+
version: "3.12.0"
167+
photo_manager:
168+
dependency: transitive
169+
description:
170+
name: photo_manager
171+
sha256: "0bc7548fd3111eb93a3b0abf1c57364e40aeda32512c100085a48dade60e574f"
172+
url: "https://pub.dev"
173+
source: hosted
174+
version: "3.6.4"
175+
photo_manager_image_provider:
176+
dependency: transitive
177+
description:
178+
name: photo_manager_image_provider
179+
sha256: b6015b67b32f345f57cf32c126f871bced2501236c405aafaefa885f7c821e4f
180+
url: "https://pub.dev"
181+
source: hosted
182+
version: "2.2.0"
183+
plugin_platform_interface:
184+
dependency: transitive
185+
description:
186+
name: plugin_platform_interface
187+
sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
188+
url: "https://pub.dev"
189+
source: hosted
190+
version: "2.1.8"
191+
sky_engine:
192+
dependency: transitive
193+
description: flutter
194+
source: sdk
195+
version: "0.0.99"
196+
source_span:
197+
dependency: transitive
198+
description:
199+
name: source_span
200+
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
201+
url: "https://pub.dev"
202+
source: hosted
203+
version: "1.10.0"
204+
stack_trace:
205+
dependency: transitive
206+
description:
207+
name: stack_trace
208+
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
209+
url: "https://pub.dev"
210+
source: hosted
211+
version: "1.11.1"
212+
stream_channel:
213+
dependency: transitive
214+
description:
215+
name: stream_channel
216+
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
217+
url: "https://pub.dev"
218+
source: hosted
219+
version: "2.1.2"
220+
string_scanner:
221+
dependency: transitive
222+
description:
223+
name: string_scanner
224+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
225+
url: "https://pub.dev"
226+
source: hosted
227+
version: "1.2.0"
228+
term_glyph:
229+
dependency: transitive
230+
description:
231+
name: term_glyph
232+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
233+
url: "https://pub.dev"
234+
source: hosted
235+
version: "1.2.1"
236+
test_api:
237+
dependency: transitive
238+
description:
239+
name: test_api
240+
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
241+
url: "https://pub.dev"
242+
source: hosted
243+
version: "0.7.2"
244+
vector_math:
245+
dependency: transitive
246+
description:
247+
name: vector_math
248+
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
249+
url: "https://pub.dev"
250+
source: hosted
251+
version: "2.1.4"
252+
vm_service:
253+
dependency: transitive
254+
description:
255+
name: vm_service
256+
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
257+
url: "https://pub.dev"
258+
source: hosted
259+
version: "14.2.5"
260+
sdks:
261+
dart: ">=3.5.4 <4.0.0"
262+
flutter: ">=3.18.0-18.0.pre.54"

0 commit comments

Comments
 (0)