Skip to content

Commit

Permalink
🚚 restructure folders with basic melos (#453)
Browse files Browse the repository at this point in the history
move base project in seperate folder
prefix all folders with 'flutter_'
update folders where needed in code
update folders in .githubworkflows
add code-workspace file for those who want it 😄

---------

Co-authored-by: XanderD99 <[email protected]>
Co-authored-by: Joscha <[email protected]>
  • Loading branch information
3 people committed Jun 7, 2024
1 parent cdc68bf commit 8e35f0a
Show file tree
Hide file tree
Showing 75 changed files with 1,038 additions and 1,075 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/flutter_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
channel: ${{ env.FLUTTER_CHANNEL }}
cache: true
- run: flutter pub get
- uses: bluefireteam/melos-action@v3
- name: Build example APK
run: flutter build apk
- name: Upload apk as artifact
Expand All @@ -46,10 +46,10 @@ jobs:
with:
channel: ${{ env.FLUTTER_CHANNEL }}
cache: true
- uses: bluefireteam/melos-action@v3
- uses: maxim-lobanov/setup-cocoapods@v1
with:
podfile-path: example/ios/Podfile.lock
- run: flutter pub get
- name: Build iOS package
run: flutter build ios --simulator
- name: Upload Runner.app as artifact
Expand All @@ -70,6 +70,6 @@ jobs:
with:
channel: ${{ env.FLUTTER_CHANNEL }}
cache: true
- run: flutter pub get
- uses: bluefireteam/melos-action@v3
- name: Build web
run: flutter build web
17 changes: 7 additions & 10 deletions .github/workflows/flutter_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
- uses: subosito/flutter-action@v2
with:
cache: true
- uses: bluefireteam/melos-action@v3
- name: Lint analysis
run: dart format --set-exit-if-changed .
run: melos format --set-exit-if-changed .

lint:
name: "Static code analysis"
Expand All @@ -27,13 +28,9 @@ jobs:
- uses: subosito/flutter-action@v2
with:
cache: true
- run: flutter pub get
- run: |
cd scripts
flutter pub get
cd ..
- uses: bluefireteam/melos-action@v3
- name: Lint analysis
run: flutter analyze
run: melos analyze

build-android:
name: "Build Android apk"
Expand All @@ -51,12 +48,12 @@ jobs:
with:
flutter-version: ${{ matrix.sdk }}
cache: true
- uses: bluefireteam/melos-action@v3
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- run: flutter pub get
- name: Build example APK
run: flutter build apk
- name: Upload apk as artifact
Expand All @@ -82,10 +79,10 @@ jobs:
with:
flutter-version: ${{ matrix.sdk }}
cache: true
- uses: bluefireteam/melos-action@v3
- uses: maxim-lobanov/setup-cocoapods@v1
with:
podfile-path: example/ios/Podfile.lock
- run: flutter pub get
- name: Build iOS package
run: flutter build ios --simulator
- name: Upload Runner.app as artifact
Expand All @@ -111,6 +108,6 @@ jobs:
with:
flutter-version: ${{ matrix.sdk }}
cache: true
- run: flutter pub get
- uses: bluefireteam/melos-action@v3
- name: Build web
run: flutter build web
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
needs: [publish_maplibre_gl_platform_interface, publish_maplibre_gl_web]
uses: ./.github/workflows/publish-single.yml
with:
working-directory: .
working-directory: maplibre_gl
12 changes: 7 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ migrate_working_dir/
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/
/example/build/
pubspec.lock

# Coverage
Expand All @@ -43,9 +43,11 @@ app.*.symbols
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
android/app/debug
android/app/profile
android/app/release

# Misc
GeneratedPluginRegistrant.swift
GeneratedPluginRegistrant.swift

pubspec_overrides.yaml
Loading

0 comments on commit 8e35f0a

Please sign in to comment.