Skip to content

Commit

Permalink
fix: adjust new mapbox compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
polito-mobile committed May 15, 2024
1 parent 0e51ca8 commit 5bf8fd5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ android {

}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion src/features/places/components/MapNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
NativeStackNavigationOptions,
} from '@react-navigation/native-stack';
import { Camera, MapView } from '@rnmapbox/maps';
import { CameraProps } from '@rnmapbox/maps/lib/typescript/components/Camera';
import { CameraProps } from '@rnmapbox/maps/src/components/Camera';

import { IS_ANDROID, IS_IOS } from '../../../core/constants';
import { useDeviceOrientation } from '../../../core/hooks/useDeviceOrientation';
Expand Down
2 changes: 1 addition & 1 deletion src/features/places/utils/getCoordinatesBounds.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CameraBoundsWithPadding } from '@rnmapbox/maps/lib/typescript/components/Camera';
import { CameraBoundsWithPadding } from '@rnmapbox/maps/src/components/Camera';

export const getCoordinatesBounds = (
coordinates: [number, number][],
Expand Down

0 comments on commit 5bf8fd5

Please sign in to comment.