Skip to content

Commit abe2b49

Browse files
chore: added melos workspace pubspec, further linter refactor
1 parent 3f13a53 commit abe2b49

33 files changed

+476
-57
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
.vscode
33
.idea
44
.DS_Store
5+
.dart_tool
56

67
*.iml
78
*.ipr
89
*.iws
910
.idea/
1011

12+
1113
coverage/
1214
*.class
1315
*.log

example/basic/ios/Podfile.lock

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
PODS:
2+
- Flutter (1.0.0)
3+
- shared_preferences_ios (0.0.1):
4+
- Flutter
5+
6+
DEPENDENCIES:
7+
- Flutter (from `Flutter`)
8+
- shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
9+
10+
EXTERNAL SOURCES:
11+
Flutter:
12+
:path: Flutter
13+
shared_preferences_ios:
14+
:path: ".symlinks/plugins/shared_preferences_ios/ios"
15+
16+
SPEC CHECKSUMS:
17+
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
18+
shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
19+
20+
PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
21+
22+
COCOAPODS: 1.12.1

example/basic/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 50;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1111
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12+
45C9BD16C6D177B86D69DDED /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F06B8F6A11373D248CE71ADC /* Pods_Runner.framework */; };
1213
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
1314
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
1415
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
@@ -32,6 +33,7 @@
3233
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
3334
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
3435
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
36+
4DABF744704BBC9B57CF8FC2 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
3537
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
3638
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
3739
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
@@ -42,19 +44,31 @@
4244
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4345
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
4446
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
47+
CE795523245457A22BF79A69 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
48+
EEB5E5919069710C8FB2FED5 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
49+
F06B8F6A11373D248CE71ADC /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4550
/* End PBXFileReference section */
4651

4752
/* Begin PBXFrameworksBuildPhase section */
4853
97C146EB1CF9000F007C117D /* Frameworks */ = {
4954
isa = PBXFrameworksBuildPhase;
5055
buildActionMask = 2147483647;
5156
files = (
57+
45C9BD16C6D177B86D69DDED /* Pods_Runner.framework in Frameworks */,
5258
);
5359
runOnlyForDeploymentPostprocessing = 0;
5460
};
5561
/* End PBXFrameworksBuildPhase section */
5662

5763
/* Begin PBXGroup section */
64+
135F89CB1E0F80C3A64FFAF0 /* Frameworks */ = {
65+
isa = PBXGroup;
66+
children = (
67+
F06B8F6A11373D248CE71ADC /* Pods_Runner.framework */,
68+
);
69+
name = Frameworks;
70+
sourceTree = "<group>";
71+
};
5872
9740EEB11CF90186004384FC /* Flutter */ = {
5973
isa = PBXGroup;
6074
children = (
@@ -72,6 +86,8 @@
7286
9740EEB11CF90186004384FC /* Flutter */,
7387
97C146F01CF9000F007C117D /* Runner */,
7488
97C146EF1CF9000F007C117D /* Products */,
89+
D7C89CB3E77B266A32D73BA5 /* Pods */,
90+
135F89CB1E0F80C3A64FFAF0 /* Frameworks */,
7591
);
7692
sourceTree = "<group>";
7793
};
@@ -98,19 +114,32 @@
98114
path = Runner;
99115
sourceTree = "<group>";
100116
};
117+
D7C89CB3E77B266A32D73BA5 /* Pods */ = {
118+
isa = PBXGroup;
119+
children = (
120+
4DABF744704BBC9B57CF8FC2 /* Pods-Runner.debug.xcconfig */,
121+
CE795523245457A22BF79A69 /* Pods-Runner.release.xcconfig */,
122+
EEB5E5919069710C8FB2FED5 /* Pods-Runner.profile.xcconfig */,
123+
);
124+
name = Pods;
125+
path = Pods;
126+
sourceTree = "<group>";
127+
};
101128
/* End PBXGroup section */
102129

103130
/* Begin PBXNativeTarget section */
104131
97C146ED1CF9000F007C117D /* Runner */ = {
105132
isa = PBXNativeTarget;
106133
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107134
buildPhases = (
135+
2E2A5FB5FA5B7C21D04276A1 /* [CP] Check Pods Manifest.lock */,
108136
9740EEB61CF901F6004384FC /* Run Script */,
109137
97C146EA1CF9000F007C117D /* Sources */,
110138
97C146EB1CF9000F007C117D /* Frameworks */,
111139
97C146EC1CF9000F007C117D /* Resources */,
112140
9705A1C41CF9048500538489 /* Embed Frameworks */,
113141
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
142+
D0549AE03933A66777FE55CF /* [CP] Embed Pods Frameworks */,
114143
);
115144
buildRules = (
116145
);
@@ -169,8 +198,31 @@
169198
/* End PBXResourcesBuildPhase section */
170199

171200
/* Begin PBXShellScriptBuildPhase section */
201+
2E2A5FB5FA5B7C21D04276A1 /* [CP] Check Pods Manifest.lock */ = {
202+
isa = PBXShellScriptBuildPhase;
203+
buildActionMask = 2147483647;
204+
files = (
205+
);
206+
inputFileListPaths = (
207+
);
208+
inputPaths = (
209+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
210+
"${PODS_ROOT}/Manifest.lock",
211+
);
212+
name = "[CP] Check Pods Manifest.lock";
213+
outputFileListPaths = (
214+
);
215+
outputPaths = (
216+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
217+
);
218+
runOnlyForDeploymentPostprocessing = 0;
219+
shellPath = /bin/sh;
220+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
221+
showEnvVarsInLog = 0;
222+
};
172223
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173224
isa = PBXShellScriptBuildPhase;
225+
alwaysOutOfDate = 1;
174226
buildActionMask = 2147483647;
175227
files = (
176228
);
@@ -185,6 +237,7 @@
185237
};
186238
9740EEB61CF901F6004384FC /* Run Script */ = {
187239
isa = PBXShellScriptBuildPhase;
240+
alwaysOutOfDate = 1;
188241
buildActionMask = 2147483647;
189242
files = (
190243
);
@@ -197,6 +250,23 @@
197250
shellPath = /bin/sh;
198251
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199252
};
253+
D0549AE03933A66777FE55CF /* [CP] Embed Pods Frameworks */ = {
254+
isa = PBXShellScriptBuildPhase;
255+
buildActionMask = 2147483647;
256+
files = (
257+
);
258+
inputFileListPaths = (
259+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
260+
);
261+
name = "[CP] Embed Pods Frameworks";
262+
outputFileListPaths = (
263+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
264+
);
265+
runOnlyForDeploymentPostprocessing = 0;
266+
shellPath = /bin/sh;
267+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
268+
showEnvVarsInLog = 0;
269+
};
200270
/* End PBXShellScriptBuildPhase section */
201271

202272
/* Begin PBXSourcesBuildPhase section */

example/basic/ios/Runner.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/feature_packages/analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:lint/analysis_options.yaml
1+
include: package:linteo/analysis_options.yaml
22

33
linter:
44
rules:

example/feature_packages/bin/main.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ void main() async {
2525
}
2626

2727
final counter = GetItServiceLocator.instance.get<CounterRepository>();
28-
print("Initial value: ${counter.getValue()}");
29-
print("Call increment method...");
28+
print('Initial value: ${counter.getValue()}');
29+
print('Call increment method...');
3030
counter.increment();
31-
print("New value: ${counter.getValue()}");
31+
print('New value: ${counter.getValue()}');
3232

3333
final a = GetItServiceLocator.instance<Logger>();
3434
final b = GetItServiceLocator.instance.get<Logger>();
3535
print(
36-
"Proof that instances are identical (supposed to be a singleton): identical: ${identical(a, b)}, equals: ${a == b}",
36+
'Proof that instances are identical (supposed to be a singleton): identical: ${identical(a, b)}, equals: ${a == b}',
3737
);
38-
a.d("Sample debug log");
39-
b.e("Sample error log");
38+
a.d('Sample debug log');
39+
b.e('Sample error log');
4040
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include: package:lints/recommended.yaml
1+
include: package:linteo/analysis_options.yaml

example/feature_packages/packages/counter/lib/counter.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// Counter library
12
library counter;
23

34
export 'src/di/di.config.dart';

example/feature_packages/packages/counter/lib/src/data/counter_data_source.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,17 @@ import 'package:logger/logger.dart';
55
@singleton
66
@counterInjectionModule
77
class CounterDataSource {
8+
CounterDataSource(this._logger);
89
final Logger _logger;
910
int _counter = 0;
1011

11-
CounterDataSource(this._logger);
12-
1312
int getValue() {
1413
return _counter;
1514
}
1615

17-
void increment() async {
18-
_logger.d("Before update: $_counter");
16+
void increment() {
17+
_logger.d('Before update: $_counter');
1918
_counter = _counter + 1;
20-
_logger.d("After update: $_counter");
19+
_logger.d('After update: $_counter');
2120
}
2221
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import 'package:injecteo/injecteo.dart';
22

3-
const counterInjectionModule = InjectionModule(name: "CounterInjectionModule");
3+
const counterInjectionModule = InjectionModule(name: 'CounterInjectionModule');

0 commit comments

Comments
 (0)