Skip to content

Commit b722116

Browse files
renefloorkoozzmvolpato
authored
feat: Migrate to Federated plugin structure (#67)
* feat: Created platform interface * feat: Implement Google version as federated package * feat: create Apple Maps federated package * fix: bitmap descriptor * test: Add git reference for testing * chore: Add fvm and melos * test: Added more unit tests * style: formatting * ci: update workflow * chore: Update versions * docs: Update changelog, license and readme * docs: update pubspec descriptions * chore: update license files * refactor: update if statements to switch statement * docs: add link to github issue on platform plugin * fix: camera update class check --------- Signed-off-by: Rene Floor <[email protected]> Co-authored-by: Jan van den Berg <[email protected]> Co-authored-by: Michele Volpato <[email protected]>
1 parent d2db88c commit b722116

File tree

157 files changed

+3915
-1266
lines changed

Some content is hidden

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

157 files changed

+3915
-1266
lines changed

.fvmrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"flutter": "3.19.6"
3+
}

.github/workflows/publish.yml

+24-15
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,36 @@ on:
66
pull_request:
77
branches: [ master ]
88

9+
env:
10+
JAVA_VERSION: "17.x"
11+
JAVA_DISTRIBUTION: "zulu"
12+
913
jobs:
1014
build:
1115
runs-on: macos-latest
1216
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-java@v1
15-
with:
16-
java-version: '12.x'
17-
- name: Install Flutter
18-
uses: subosito/flutter-action@v1
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-java@v4
1919
with:
20-
flutter-version: '3.19.1'
20+
java-version: ${{ env.JAVA_VERSION }}
21+
distribution: ${{ env.JAVA_DISTRIBUTION }}
22+
- uses: dart-lang/setup-dart@v1
23+
- name: Install fvm
24+
run: |
25+
dart pub global activate fvm 3.1.4
26+
fvm install
27+
- name: Install melos
28+
run: dart pub global activate melos 6.0.0
2129
- name: Install dependencies
22-
run: flutter pub get
30+
run: melos bs
2331
- name: Run dart analyze
24-
run: dart analyze
32+
run: melos analyze
2533
- name: build iOS example project
26-
working-directory: ./example
27-
run: flutter build ios --release --no-codesign
34+
working-directory: ./packages/platform_maps_flutter/example
35+
run: fvm flutter build ios --release --no-codesign
2836
- name: build android example project
29-
working-directory: ./example
30-
run: flutter build apk
31-
- name: publish --dry-run
32-
run: flutter pub publish --dry-run
37+
working-directory: ./packages/platform_maps_flutter/example
38+
run: fvm flutter build apk
39+
# disabled for now, because will fail with multi-package setup
40+
# - name: publish --dry-run
41+
# run: flutter pub publish --dry-run

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,8 @@ pubspec.lock
7373
!**/ios/**/default.mode2v3
7474
!**/ios/**/default.pbxuser
7575
!**/ios/**/default.perspectivev3
76+
77+
# FVM Version Cache
78+
.fvm/
79+
# Melos pubspec overrides
80+
pubspec_overrides.yaml

LICENSE

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
BSD 2-Clause License
22

3+
Copyright (c) 2024, Albert Heijn Technology
34
Copyright (c) 2019, Luis Thein
45
All rights reserved.
56

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This package combines the `google_maps_flutter` plugin with `apple_maps_flutter`
2323

2424
# iOS
2525

26-
To use this plugin on iOS you need to opt-in for the embedded views preview by adding a boolean property to the app's Info.plist file, with the key `io.flutter.embedded_views_preview` and the value `YES`. You will also have to add the key `Privacy - Location When In Use Usage Description` with the value of your usage description.
26+
You will have to add the key `Privacy - Location When In Use Usage Description` with the value of your usage description.
2727

2828
# Android
2929

analysis_options.yaml

-2
This file was deleted.

example/analysis_options.yaml

-2
This file was deleted.

example/ios/Podfile.lock

-39
This file was deleted.

example/test/widget_test.dart

-5
This file was deleted.

lib/platform_maps_flutter.dart

-25
This file was deleted.

lib/src/bitmap.dart

-61
This file was deleted.

lib/src/camera.dart

-168
This file was deleted.

0 commit comments

Comments
 (0)