Skip to content

Commit

Permalink
Merge pull request #1 from nextbillion-ai/release/v2.0.0
Browse files Browse the repository at this point in the history
(Release) Bumped version to align with product matrix
  • Loading branch information
zhengshenqiu authored Feb 12, 2025
2 parents ccdbb7c + ba77695 commit 669d205
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.22.0"
flutter-version: "3.27.1"

- name: Install dependencies
run: flutter pub get
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v2.0.0, Feb 11, 2025
* bump version to 2.0.0 to align with Nextbillion.ai SDK matrix.

## v1.2.0, Dec 16, 2024
* Adapting to Android Gradle Plugin 8.0 Without Using the AGP Upgrading Assistant

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Nextbillion Maps Flutter
[![codecov](https://codecov.io/github/nextbillion-ai/nb-maps-flutter/graph/badge.svg?token=3S22ZLBW7O)](https://codecov.io/github/nextbillion-ai/nb-maps-flutter)
[![codecov](https://codecov.io/github/nextbillion-ai/nextbillion-maps-flutter/graph/badge.svg?token=900HR97IZ6)](https://codecov.io/github/nextbillion-ai/nextbillion-maps-flutter)

## Instroduction
![Nextbillion_Maps_IMG](https://github.com/nextbillion-ai/nb-maps-flutter/assets/100656364/5b8cedb6-a839-45b4-bc04-a760ba562329)
Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class _MapsDemoState extends State<MapsDemo> {
if (!kIsWeb && Platform.isAndroid) {
final androidInfo = await DeviceInfoPlugin().androidInfo;
final sdkVersion = androidInfo.version.sdkInt;
if (sdkVersion != null && sdkVersion >= 29) {
if (sdkVersion >= 29) {
NBMap.useHybridComposition = true;
} else {
NBMap.useHybridComposition = false;
Expand Down
8 changes: 4 additions & 4 deletions lib/src/color_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ part of nb_maps_flutter;

extension NbMapColorConversion on Color {
String toHexStringRGB() {
final r = red.toRadixString(16).padLeft(2, '0');
final g = green.toRadixString(16).padLeft(2, '0');
final b = blue.toRadixString(16).padLeft(2, '0');
return '#$r$g$b';
final rHex = ((r * 255).toInt() & 0xff).toRadixString(16).padLeft(2, '0');
final gHex = ((g * 255).toInt() & 0xff).toRadixString(16).padLeft(2, '0');
final bHex = ((b * 255).toInt() & 0xff).toRadixString(16).padLeft(2, '0');
return '#$rHex$gHex$bHex';
}
}
1 change: 0 additions & 1 deletion lib/src/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ class NextbillionMapController extends ChangeNotifier {
symbolManager = SymbolManager(this,
onTap: onSymbolTapped, enableInteraction: enableInteraction);
break;
default:
}
}
if (onStyleLoadedCallback != null) {
Expand Down
7 changes: 4 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: nb_maps_flutter
description: A Flutter plugin for integrating Nextbillion's Maps SDK to your Flutter Project.
version: 1.2.0
homepage: https://github.com/nextbillion-ai/nb-maps-flutter
description: Nextbillion.ai Maps SDK for Flutter
version: 2.0.0
homepage: https://github.com/nextbillion-ai/nextbillion-maps-flutter
repository: https://github.com/nextbillion-ai/nextbillion-maps-flutter

dependencies:
flutter:
Expand Down

0 comments on commit 669d205

Please sign in to comment.