Skip to content

Commit

Permalink
Pushing version 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Matias Dahlin Holst committed Nov 28, 2024
1 parent 9be4e9d commit c4464f0
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 12 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,23 @@ on:
- '[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.3'
- name: Install dependencies
run: flutter pub get
- name: Analyze
run: flutter analyze
- name: Check Publish Warnings
run: dart pub publish --dry-run
- name: Publish
uses: sakebook/actions-flutter-pub-publisher@v1.4.1
uses: k-paxian/dart-package-publisher@v1.5.1
with:
credential: ${{ secrets.PUB_CREDENTIALS }}
skip_test: true
dry_run: true
credentialJson: ${{ secrets.PUB_CREDENTIALS }}
flutter: true
skipTests: true
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# Changelog

## 4.0.0
See the [main](https://pub.dev/packages/mapsindoors_googlemaps/changelog) package for the changelog.

## 3.1.3
See the [main](https://pub.dev/packages/mapsindoors_googlemaps/changelog) package for the changelog.

## 3.1.2
See the [main](https://pub.dev/packages/mapsindoors_googlemaps/changelog) package for the changelog.

## 3.1.1
See the [main](https://pub.dev/packages/mapsindoors_googlemaps/changelog) package for the changelog.

## 3.1.0
See the [main](https://pub.dev/packages/mapsindoors_googlemaps/changelog) package for the changelog.

## 3.0.2
See the [main](https://pub.dev/packages/mapsindoors_googlemaps/changelog) package for the changelog.

## 3.0.1
See the [main](https://pub.dev/packages/mapsindoors_googlemaps/changelog) package for the changelog.

## 3.0.0
See the [main](https://pub.dev/packages/mapsindoors_googlemaps/changelog) package for the changelog.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ android {

dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1'
implementation "com.mapspeople.mapsindoors:googlemaps:4.8.12"
implementation "com.mapspeople.mapsindoors:googlemaps:4.9.0"
implementation "com.google.android.gms:play-services-maps:18.1.0"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.3.0"
implementation 'com.github.bumptech.glide:glide:4.16.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import com.mapsindoors.core.MPFloorSelectorInterface
import com.mapsindoors.googlemaps.MPMapConfig
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.OnMapReadyCallback
import com.google.android.gms.maps.CameraUpdateFactory
import com.google.android.gms.maps.CameraUpdate as GMCameraUpdate
import com.google.android.gms.maps.GoogleMap.CancelableCallback
import com.google.android.gms.maps.MapView
import com.google.gson.Gson
import android.view.View

abstract class PlatformMapView(private val context: Context) : PlatformMapViewInterface, OnMapReadyCallback {
abstract class PlatformMapView(private val context: Context, private val args: HashMap<*,*>?) : PlatformMapViewInterface, OnMapReadyCallback {
private val mMap: MapView = MapView(context)
private var mGoogleMap: GoogleMap? = null

Expand Down Expand Up @@ -58,6 +60,10 @@ abstract class PlatformMapView(private val context: Context) : PlatformMapViewIn
override fun onMapReady(p0: GoogleMap) {
mGoogleMap = p0
mMap.onStart()
val position = Gson().fromJson(args?.get("initialCameraPosition") as? String, CameraPosition::class.java)?.toGMCameraPosition()
if (position != null) {
p0.moveCamera(CameraUpdateFactory.newCameraPosition(position))
}
whenMapReady()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch

class MapView(context: Context, binaryMessenger: BinaryMessenger, val args: HashMap<*,*>?, private val lifecycleProvider: MapsindoorsPlugin.LifecycleProvider) : PlatformMapView(context), PlatformView, MethodCallHandler, DefaultLifecycleObserver {
class MapView(context: Context, binaryMessenger: BinaryMessenger, val args: HashMap<*,*>?, private val lifecycleProvider: MapsindoorsPlugin.LifecycleProvider) : PlatformMapView(context, args), PlatformView, MethodCallHandler, DefaultLifecycleObserver {
private val channel : MethodChannel = MethodChannel(binaryMessenger, "MapControlMethodChannel")
private val listenerChannel : MethodChannel = MethodChannel(binaryMessenger, "MapControlListenerMethodChannel")
private val floorSelectorChannel : MethodChannel = MethodChannel(binaryMessenger, "MapControlFloorSelectorChannel")
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mapsindoors_googlemaps_android
description: Android implementation of the mapsindoors plugin using the Google Maps platform
version: 3.1.3
version: 4.0.0
repository: https://github.com/MapsPeople/mapsindoors_flutter_googlemaps_android
homepage: https://www.mapsindoors.com/

Expand All @@ -20,7 +20,7 @@ dependencies:
flutter:
sdk: flutter
flutter_plugin_android_lifecycle: ^2.0.15
mapsindoors_platform_interface: ^3.1.3
mapsindoors_platform_interface: ^4.0.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit c4464f0

Please sign in to comment.