Skip to content

Commit

Permalink
feat: Migrate to Federated plugin structure (#67)
Browse files Browse the repository at this point in the history
* 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 <rene.floor@ah.nl>
Co-authored-by: Jan van den Berg <koozz@linux.com>
Co-authored-by: Michele Volpato <mvolpato@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 3, 2024
1 parent d2db88c commit b722116
Show file tree
Hide file tree
Showing 157 changed files with 3,915 additions and 1,266 deletions.
3 changes: 3 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"flutter": "3.19.6"
}
39 changes: 24 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,36 @@ on:
pull_request:
branches: [ master ]

env:
JAVA_VERSION: "17.x"
JAVA_DISTRIBUTION: "zulu"

jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- name: Install Flutter
uses: subosito/flutter-action@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
flutter-version: '3.19.1'
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
- uses: dart-lang/setup-dart@v1
- name: Install fvm
run: |
dart pub global activate fvm 3.1.4
fvm install
- name: Install melos
run: dart pub global activate melos 6.0.0
- name: Install dependencies
run: flutter pub get
run: melos bs
- name: Run dart analyze
run: dart analyze
run: melos analyze
- name: build iOS example project
working-directory: ./example
run: flutter build ios --release --no-codesign
working-directory: ./packages/platform_maps_flutter/example
run: fvm flutter build ios --release --no-codesign
- name: build android example project
working-directory: ./example
run: flutter build apk
- name: publish --dry-run
run: flutter pub publish --dry-run
working-directory: ./packages/platform_maps_flutter/example
run: fvm flutter build apk
# disabled for now, because will fail with multi-package setup
# - name: publish --dry-run
# run: flutter pub publish --dry-run
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,8 @@ pubspec.lock
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3

# FVM Version Cache
.fvm/
# Melos pubspec overrides
pubspec_overrides.yaml
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BSD 2-Clause License

Copyright (c) 2024, Albert Heijn Technology
Copyright (c) 2019, Luis Thein
All rights reserved.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This package combines the `google_maps_flutter` plugin with `apple_maps_flutter`

# iOS

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.
You will have to add the key `Privacy - Location When In Use Usage Description` with the value of your usage description.

# Android

Expand Down
2 changes: 0 additions & 2 deletions analysis_options.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions example/analysis_options.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions example/ios/Podfile.lock

This file was deleted.

5 changes: 0 additions & 5 deletions example/test/widget_test.dart

This file was deleted.

25 changes: 0 additions & 25 deletions lib/platform_maps_flutter.dart

This file was deleted.

61 changes: 0 additions & 61 deletions lib/src/bitmap.dart

This file was deleted.

168 changes: 0 additions & 168 deletions lib/src/camera.dart

This file was deleted.

Loading

0 comments on commit b722116

Please sign in to comment.