Skip to content

Commit bda0a93

Browse files
authored
Merge pull request #2 from logto-io/simeng-refactor-package
refactor(dart): refactor SDK structure
2 parents dc676e9 + ea1f415 commit bda0a93

File tree

78 files changed

+335
-216
lines changed

Some content is hidden

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

78 files changed

+335
-216
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,33 @@ jobs:
2323
with:
2424
channel: stable
2525

26-
- name: Setup Melos
27-
uses: bluefireteam/melos-action@v1 # will run bootstrap by default
26+
- name: Install
27+
run: flutter pub get
2828

29-
- name: analyze
30-
run: melos run analyze
29+
- name: Analyze
30+
run: flutter analyze --no-pub
3131

32-
- name: test
33-
run: melos run test
32+
- name: Test
33+
run: flutter test --no-pub --coverage
34+
35+
example:
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
- uses: actions/checkout@v3
40+
41+
- name: Setup Flutter
42+
uses: subosito/flutter-action@v2
43+
with:
44+
channel: stable
45+
46+
- name: Install
47+
run: flutter pub get
48+
49+
- name: Analyze
50+
working-directory: ./example
51+
run: flutter analyze --no-pub
52+
53+
- name: Test
54+
working-directory: ./example
55+
run: flutter test --no-pub --coverage

.gitignore

Lines changed: 10 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Miscellaneous
22
*.class
3-
*.lock
43
*.log
54
*.pyc
65
*.swp
@@ -9,99 +8,23 @@
98
.buildlog/
109
.history
1110
.svn/
11+
migrate_working_dir/
1212

1313
# IntelliJ related
1414
*.iml
1515
*.ipr
1616
*.iws
1717
.idea/
1818

19-
# Visual Studio Code related
20-
.classpath
21-
.project
22-
.settings/
23-
.vscode/
24-
25-
# Flutter repo-specific
26-
/bin/cache/
27-
/bin/internal/bootstrap.bat
28-
/bin/internal/bootstrap.sh
29-
/bin/mingit/
30-
/dev/benchmarks/mega_gallery/
31-
/dev/bots/.recipe_deps
32-
/dev/bots/android_tools/
33-
/dev/devicelab/ABresults*.json
34-
/dev/docs/doc/
35-
/dev/docs/flutter.docs.zip
36-
/dev/docs/lib/
37-
/dev/docs/pubspec.yaml
38-
/dev/integration_tests/**/xcuserdata
39-
/dev/integration_tests/**/Pods
40-
/packages/flutter/coverage/
41-
version
42-
analysis_benchmark.json
43-
44-
# packages file containing multi-root paths
45-
.packages.generated
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/
4623

4724
# Flutter/Dart/Pub related
25+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26+
/pubspec.lock
4827
**/doc/api/
49-
**/.dart_tool/
50-
**/.flutter-plugins
51-
**/.flutter-plugins-dependencies
52-
**/generated_plugin_registrant.dart
53-
**/.packages
54-
**/.pub-cache/
55-
**/.pub/
56-
**/build/
57-
**/flutter_*.png
58-
**/linked_*.ds
59-
**/unlinked.ds
60-
**/unlinked_spec.ds
61-
62-
# Android related
63-
**/android/**/gradle-wrapper.jar
64-
**/.gradle/
65-
**/android/captures/
66-
**/android/gradlew
67-
**/android/gradlew.bat
68-
**/android/local.properties
69-
**/android/**/GeneratedPluginRegistrant.java
70-
**/android/key.properties
71-
*.jks
72-
73-
# iOS/XCode related
74-
**/ios/**/*.mode1v3
75-
**/ios/**/*.mode2v3
76-
**/ios/**/*.moved-aside
77-
**/ios/**/*.pbxuser
78-
**/ios/**/*.perspectivev3
79-
**/ios/**/*sync/
80-
**/ios/**/.sconsign.dblite
81-
**/ios/**/.tags*
82-
**/ios/**/.vagrant/
83-
**/ios/**/DerivedData/
84-
**/ios/**/Icon?
85-
**/ios/**/Pods/
86-
**/ios/**/.symlinks/
87-
**/ios/**/profile
88-
**/ios/**/xcuserdata
89-
**/ios/.generated/
90-
**/ios/Flutter/.last_build_id
91-
**/ios/Flutter/App.framework
92-
**/ios/Flutter/Flutter.framework
93-
**/ios/Flutter/Flutter.podspec
94-
**/ios/Flutter/Generated.xcconfig
95-
**/ios/Flutter/ephemeral
96-
**/ios/Flutter/app.flx
97-
**/ios/Flutter/app.zip
98-
**/ios/Flutter/flutter_assets/
99-
**/ios/Flutter/flutter_export_environment.sh
100-
**/ios/ServiceDefinitions.json
101-
**/ios/Runner/GeneratedPluginRegistrant.*
102-
103-
# Coverage
104-
**/coverage/
105-
106-
# Symbols
107-
app.*.symbols
28+
.dart_tool/
29+
.packages
30+
build/
File renamed without changes.
File renamed without changes.

example/.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
.packages
31+
.pub-cache/
32+
.pub/
33+
/build/
34+
35+
# iOS related
36+
Podfile.lock
37+
38+
# Web related
39+
lib/generated_plugin_registrant.dart
40+
41+
# Symbolication related
42+
app.*.symbols
43+
44+
# Obfuscation related
45+
app.*.map.json
46+
47+
# Android Studio will place build artifacts here
48+
/android/app/debug
49+
/android/app/profile
50+
/android/app/release

packages/flutter_sample/.metadata renamed to example/.metadata

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ migration:
2121
- platform: ios
2222
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
2323
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
24+
2425
# User provided section
2526

2627
# List of Local paths (relative to this file) that should be

packages/flutter_sample/README.md renamed to example/README.md

Lines changed: 1 addition & 1 deletion

packages/flutter_sample/analysis_options.yaml renamed to example/analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ linter:
2424
rules:
2525
# avoid_print: false # Uncomment to disable the `avoid_print` rule
2626
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27+
2728
# Additional information about this file can be found at
2829
# https://dart.dev/guides/language/analysis-options

0 commit comments

Comments
 (0)