|
1 | | -# hypertrack_plugin |
2 | | - |
3 | | -Plugin for HyperTrack SDK that allows you instantly feed location data in the cloud. |
| 1 | +# HyperTrack SDK Flutter plugin |
4 | 2 |
|
5 | 3 |  |
6 | 4 | [](https://pub.dev/packages/hypertrack_plugin) |
7 | 5 | [](https://cocoapods.org/pods/HyperTrack) |
8 | | - |
9 | | - |
10 | | -### Usage |
| 6 | + |
11 | 7 |
|
12 | | -To use this plugin, add `hypertrack_plugin` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/). |
| 8 | +[HyperTrack](https://www.hypertrack.com) lets you add live location tracking to your mobile app in a reliable and battery efficient way. |
13 | 9 |
|
14 | | -### Example |
| 10 | +HyperTrack SDK Flutter plugin is a wrapper around native iOS and Android SDKs that allows to integrate them into Flutter apps. |
15 | 11 |
|
16 | | -``` dart |
17 | | -// Import package |
18 | | -import 'package:hypertrack_plugin/hypertrack.dart'; |
| 12 | +For information about how to get started with HyperTrack SDK for Flutter, please visit this [HyperTrack Guide](https://hypertrack.com/docs/install-sdk-flutter). |
19 | 13 |
|
20 | | -// Instantiate it |
21 | | -final sdk = await HyperTrack.initialize(my_publishable_key); |
| 14 | +## How to update HyperTrack SDK version? |
22 | 15 |
|
| 16 | +1. Update SDK constant |
23 | 17 |
|
24 | | -// Set device name |
25 | | -sdk.setDeviceName("Elvis"); |
| 18 | + - android |
| 19 | + - android/build.gradle |
| 20 | + - implementation 'com.hypertrack:hypertrack:**version** |
| 21 | + - ios |
| 22 | + - hypertrack_plugin.podspec |
| 23 | + - s.dependency 'HyperTrack/Objective-C', '**version**' |
26 | 24 |
|
27 | | -// Get device id |
28 | | -final deviceId = await sdk.getDeviceId(); |
29 | | -``` |
| 25 | +2. Increment wrapper version |
| 26 | + - pubspec.yaml |
| 27 | + - version |
30 | 28 |
|
31 | | -Visit https://hypertrack.com/ for more. |
| 29 | +3. Update CHANGELOG |
| 30 | +4. Update badge in README |
| 31 | +5. Commit and create a version tag (without v) |
| 32 | +6. Push |
| 33 | +7. Create a release |
| 34 | + - Release title - version |
| 35 | +9. Publish Flutter package |
| 36 | + 1. flutter pub publish --dry-run |
| 37 | + - to test is everything OK with release |
| 38 | + 2. flutter pub publish |
0 commit comments