Skip to content

Commit 5afad0f

Browse files
Implement plugin architecture (#90)
Update HyperTrack SDK Android to 7.0.11 --------- Co-authored-by: Fero <[email protected]>
1 parent 89b6129 commit 5afad0f

File tree

135 files changed

+30911
-262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+30911
-262
lines changed

.circleci/config.yml

Lines changed: 0 additions & 98 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
*.pbxproj -text
22
# specific for windows script files
3-
*.bat text eol=crlf
3+
*.bat text eol=crlf

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18

.watchmanconfig

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
## [12.0.0] - 2023-12-12
7+
8+
### Changed
9+
10+
- Now the SDK uses the Plugin architecture. You need to add additionall NPM dependencies for the plugins for the SDK to work properly. See [Plugins](https://hypertrack.com/docs/plugins) and [Migration Guide](https://hypertrack.com/docs/install-sdk-react-native#migration-guide) for more information.
11+
- Updated HyperTrack Android SDK to [7.0.11](https://github.com/hypertrack/sdk-android/releases/tag/7.0.10)
12+
613
## [11.0.11] - 2023-12-11
714

815
### Changed
916

1017
- Updated HyperTrack Android SDK to [7.0.10](https://github.com/hypertrack/sdk-android/releases/tag/7.0.10)
1118
- Updated HyperTrack iOS SDK to [5.0.8](https://github.com/hypertrack/sdk-ios/releases/tag/5.0.8)
1219

13-
1420
## [11.0.10] - 2023-11-20
1521

1622
### Changed
@@ -731,3 +737,4 @@ Initial release.
731737
[11.0.9]: https://github.com/hypertrack/sdk-react-native/releases/tag/11.0.9
732738
[11.0.10]: https://github.com/hypertrack/sdk-react-native/releases/tag/11.0.10
733739
[11.0.11]: https://github.com/hypertrack/sdk-react-native/releases/tag/11.0.11
740+
[12.0.0]: https://github.com/hypertrack/sdk-react-native/releases/tag/12.0.0

CONTRIBUTING.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,46 @@
66

77
1. Update SDK version constant
88

9-
- android
10-
- [android/gradle.properties](android/gradle.properties)
11-
- HyperTrackSdk_HyperTrackSDKVersion
12-
- ios
13-
- [hypertrack-sdk-react-native.podspec](hypertrack-sdk-react-native.podspec)
14-
- s.dependency 'HyperTrack', '**version**'
9+
- Android
10+
- Change `<plugin name>_HyperTrackSDKVersion` in:
11+
- [sdk/android/gradle.properties](sdk/android/gradle.properties)
12+
- [plugin_android_location_services_google/android/gradle.properties](plugin_android_location_services_google/android/gradle.properties)
13+
- [plugin_android_location_services_google_19_0_1/android/gradle.properties](plugin_android_location_services_google_19_0_1/android/gradle.properties)
14+
- [plugin_android_push_service_firebase/android/gradle.properties](plugin_android_push_service_firebase/android/gradle.properties)
15+
- iOS
16+
- Change `s.dependency 'HyperTrack', '**version**'` in:
17+
- [sdk/hypertrack-sdk-react-native.podspec](sdk/hypertrack-sdk-react-native.podspec)
1518

1619
2. Increment wrapper version
1720

18-
- [package.json](package.json)
19-
- version
21+
Change `version` value in:
22+
23+
- `hypertrack-sdk-react-native` version in [sdk/package.json](sdk/package.json)
24+
- `hypertrack-sdk-react-native-plugin-android-location-services-google` in [plugin_android_location_services_google/package.json](plugin_android_location_services_google/package.json)
25+
- `hypertrack-sdk-react-native-plugin-android-location-services-google-19-0-1` in [plugin_android_location_services_google_19_0_1/package.json](plugin_android_location_services_google_19_0_1/package.json)
26+
- `hypertrack-sdk-react-native-plugin-android-push-service-firebase` in [plugin_android_push_service_firebase/package.json](plugin_android_push_service_firebase/package.json)
2027

2128
3. Update [CHANGELOG](CHANGELOG.md)
2229

2330
- **Add the release link to the bottom**
2431

2532
4. Update badge in [README](README.md)
26-
5. Do the release dry run with `just release` and verify that the release is correct (checklist is in the command output)
33+
34+
5. Do the release dry run with `just release` and verify that the release is correct
35+
2736
6. Commit and merge to master
37+
2838
7. Create a Github repo release
39+
2940
- Release title should be the current version tag
30-
8. Run `npm publish` to publish the package to npm
41+
42+
8. Run `just release publish` to publish the packages to npm:
3143

3244
### How to change build config
3345

3446
#### Android
3547

36-
Change Android build config in `android/gradle.properties`
48+
Change Android build config in `gradle.properties` of respective plugins
3749

3850
## Development workflow
3951

README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![GitHub](https://img.shields.io/github/license/hypertrack/sdk-react-native?color=orange)](./LICENSE)
44
[![npm](https://img.shields.io/npm/v/hypertrack-sdk-react-native.svg)](https://www.npmjs.com/package/hypertrack-sdk-react-native)
55
[![iOS SDK](https://img.shields.io/badge/iOS%20SDK-5.0.8-brightgreen.svg)](https://github.com/hypertrack/sdk-ios)
6-
[![Android SDK](https://img.shields.io/badge/Android%20SDK-7.0.10-brightgreen.svg)](https://github.com/hypertrack/sdk-android)
6+
[![Android SDK](https://img.shields.io/badge/Android%20SDK-7.0.11-brightgreen.svg)](https://github.com/hypertrack/sdk-android)
77

88
[HyperTrack](https://www.hypertrack.com) lets you add live location tracking to your mobile app. Live location is made available along with ongoing activity, tracking controls and tracking outage with reasons.
99

@@ -13,7 +13,13 @@ For information about how to get started with React Native HyperTrack SDK, pleas
1313

1414
## Installation
1515

16-
`yarn add hypertrack-sdk-react-native`
16+
```
17+
yarn add hypertrack-sdk-react-native \
18+
hypertrack-sdk-react-native-plugin-android-location-services-google \
19+
hypertrack-sdk-react-native-plugin-android-push-service-firebase
20+
```
21+
22+
[Learn more about plugins](https://hypertrack.com/docs/plugins)
1723

1824
## Sample code
1925

@@ -25,15 +31,7 @@ For information about how to get started with React Native HyperTrack SDK, pleas
2531

2632
## Requirements
2733

28-
### Android
29-
30-
- Gradle version 6.7.1+
31-
- compileSdkVersion 31+
32-
- minSdkVersion 19+
33-
34-
### iOS
35-
36-
- iOS version 12.4+
34+
[Requirements for React Native HyperTrack SDK](https://hypertrack.com/docs/install-sdk-react-native#requirements)
3735

3836
## Contributing
3937

docs/classes/HyperTrack.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/enums/HyperTrackError.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/index.html

Lines changed: 2 additions & 20 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)