-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1053 from cph-cachet/bardram/mobility-features-up…
…date mobility_features 6.0.0
- Loading branch information
Showing
32 changed files
with
723 additions
and
785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,120 +1,126 @@ | ||
## 6.0.0 | ||
|
||
* using carp_serialization for JSON serialization resulting in a new JSON schema for serialization | ||
* upgrade of example app to use new Flutter Android Gradle build setup | ||
* improvements of code structure and documentation | ||
|
||
## 5.0.0 | ||
|
||
- upgrade to Dart 3.2 and Flutter 3.16 | ||
- improvements to API docs | ||
- improvements to example apps (permissions - PR [#971](https://github.com/cph-cachet/flutter-plugins/pull/971)). | ||
* upgrade to Dart 3.2 and Flutter 3.16 | ||
* improvements to API docs | ||
* improvements to example apps (permissions - PR [#971](https://github.com/cph-cachet/flutter-plugins/pull/971)). | ||
|
||
## 4.0.1 | ||
|
||
- Fixed formatting | ||
- Lowered minSdk | ||
* Fixed formatting | ||
* Lowered minSdk | ||
|
||
## 4.0.0 | ||
|
||
- Updated kotlin and AGP | ||
- Upgraded example app to `carp_background_location` 4.0.0 | ||
- Implemented minor fixes | ||
* Updated kotlin and AGP | ||
* Upgraded example app to `carp_background_location` 4.0.0 | ||
* Implemented minor fixes | ||
|
||
## 3.1.0 | ||
|
||
- improvement to `MobilityContext` API. | ||
- misc updates to documentation. | ||
* improvement to `MobilityContext` API. | ||
* misc updates to documentation. | ||
|
||
## 3.0.0+2 | ||
|
||
- update to null-safety | ||
- rename of `MobilityFactory` to `MobilityFeatures`and using the standard Dart singleton syntax for `MobilityFeatures()`. | ||
- misc updates to documentation | ||
* update to null-safety | ||
* rename of `MobilityFactory` to `MobilityFeatures`and using the standard Dart singleton syntax for `MobilityFeatures()`. | ||
* misc updates to documentation | ||
|
||
## 2.0.6+1 | ||
|
||
- removal of exception | ||
- update to use `carp_background_location` | ||
* removal of exception | ||
* update to use `carp_background_location` | ||
|
||
## 2.0.5 | ||
|
||
- Documentation | ||
- Added images and changed documentation somewhat | ||
* Documentation | ||
* Added images and changed documentation somewhat | ||
|
||
## 2.0.4 | ||
|
||
- Move Consolidation | ||
- Moves are now recomputed each time a stop is computed | ||
- This means that the number of moves is always one less that the number of stops | ||
* Move Consolidation | ||
* Moves are now recomputed each time a stop is computed | ||
* This means that the number of moves is always one less that the number of stops | ||
|
||
## 2.0.3 | ||
|
||
- Move Calculation | ||
- Fixed a bug when creating moves between two stops belonging to the same place | ||
- To avoid inaccuracy distance as a resulting of noisy readings when inside buildings, this path should be computed as a straight line, rather than from a list of points | ||
* Move Calculation | ||
* Fixed a bug when creating moves between two stops belonging to the same place | ||
* To avoid inaccuracy distance as a resulting of noisy readings when inside buildings, this path should be computed as a straight line, rather than from a list of points | ||
|
||
## 2.0.2 | ||
|
||
- Stop merging | ||
- Implemented stop merging to prevent gaps in the data | ||
- This was especially a problem on iOS devices during the night, where location sampling is automatically limited by the OS | ||
- Gaps in the data during the night would cause the home stay feature to be very unreliable | ||
* Stop merging | ||
* Implemented stop merging to prevent gaps in the data | ||
* This was especially a problem on iOS devices during the night, where location sampling is automatically limited by the OS | ||
* Gaps in the data during the night would cause the home stay feature to be very unreliable | ||
|
||
## 2.0.1 | ||
|
||
- Stream-based API | ||
- Removed Routine Index temporarily | ||
* Stream-based API | ||
* Removed Routine Index temporarily | ||
|
||
## 2.0.0 | ||
|
||
- Stream-based API | ||
- The API is now fully streaming-based. | ||
* Stream-based API | ||
* The API is now fully streaming-based. | ||
|
||
## 1.3.4 | ||
|
||
- Flushing data | ||
- Fixed an error where location samples were being flushed when they shouldn't | ||
* Flushing data | ||
* Fixed an error where location samples were being flushed when they shouldn't | ||
|
||
## 1.3.3 | ||
|
||
- Dependencies | ||
- Updated dependencies | ||
* Dependencies | ||
* Updated dependencies | ||
|
||
## 1.3.2 | ||
|
||
- Streaming based API | ||
- Renamed GeoPosition to GeoLocation due to naming conflicts with another package. | ||
* Streaming based API | ||
* Renamed GeoPosition to GeoLocation due to naming conflicts with another package. | ||
|
||
## 1.3.0 | ||
|
||
- Streaming based API | ||
- Refactored API to support streaming | ||
- An example app is now included | ||
* Streaming based API | ||
* Refactored API to support streaming | ||
* An example app is now included | ||
|
||
## 1.2.0 | ||
|
||
- Restructuring | ||
- MobilitySerializer is now private. | ||
* Restructuring | ||
* MobilitySerializer is now private. | ||
|
||
## 1.1.5 | ||
|
||
- Major refactoring | ||
- Renamed and refactored classes such as Location and SingleLocationPoint to GeoPosition and LocationSample respectively. | ||
* Major refactoring | ||
* Renamed and refactored classes such as Location and SingleLocationPoint to GeoPosition and LocationSample respectively. | ||
|
||
## 1.1.0 | ||
|
||
- Private classes | ||
- Made a series of classes private such that they cannot be instantiated from outside the package | ||
* Private classes | ||
* Made a series of classes private such that they cannot be instantiated from outside the package | ||
|
||
## 1.0.0 | ||
|
||
- Formatting | ||
- Fixed a series of formatting issues which caused the package to score lower on pub.dev | ||
- Upgraded the release number to 1.x.x to increase the package score on pub.dev | ||
* Formatting | ||
* Fixed a series of formatting issues which caused the package to score lower on pub.dev | ||
* Upgraded the release number to 1.x.x to increase the package score on pub.dev | ||
|
||
## 0.1.5 | ||
|
||
- Private constructor. | ||
- The Mobility Context constructor is now private | ||
- A Mobility Context should always be instantiated via the ContextGenerator class. | ||
* Private constructor. | ||
* The Mobility Context constructor is now private | ||
* A Mobility Context should always be instantiated via the ContextGenerator class. | ||
|
||
## 0.1.0 | ||
|
||
- First release. | ||
- The first official release with working unit tests | ||
- Includes a minimalistic API which allows the application programmer to generate features with very few lines of code. | ||
* First release. | ||
* The first official release with working unit tests | ||
* Includes a minimalistic API which allows the application programmer to generate features with very few lines of code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 22 additions & 41 deletions
63
packages/mobility_features/example/android/app/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,44 @@ | ||
def localProperties = new Properties() | ||
def localPropertiesFile = rootProject.file('local.properties') | ||
if (localPropertiesFile.exists()) { | ||
localPropertiesFile.withReader('UTF-8') { reader -> | ||
localProperties.load(reader) | ||
} | ||
} | ||
|
||
def flutterRoot = localProperties.getProperty('flutter.sdk') | ||
if (flutterRoot == null) { | ||
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") | ||
} | ||
|
||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode') | ||
if (flutterVersionCode == null) { | ||
flutterVersionCode = '1' | ||
plugins { | ||
id "com.android.application" | ||
id "kotlin-android" | ||
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. | ||
id "dev.flutter.flutter-gradle-plugin" | ||
} | ||
|
||
def flutterVersionName = localProperties.getProperty('flutter.versionName') | ||
if (flutterVersionName == null) { | ||
flutterVersionName = '1.0' | ||
} | ||
|
||
apply plugin: 'com.android.application' | ||
apply plugin: 'kotlin-android' | ||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" | ||
|
||
android { | ||
compileSdkVersion 33 | ||
namespace = "com.example.example" | ||
compileSdk = flutter.compileSdkVersion | ||
ndkVersion = flutter.ndkVersion | ||
|
||
sourceSets { | ||
main.java.srcDirs += 'src/main/kotlin' | ||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
lintOptions { | ||
disable 'InvalidPackage' | ||
kotlinOptions { | ||
jvmTarget = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
defaultConfig { | ||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). | ||
applicationId "com.example.example" | ||
minSdkVersion 23 | ||
targetSdkVersion 33 | ||
versionCode flutterVersionCode.toInteger() | ||
versionName flutterVersionName | ||
applicationId = "com.example.example" | ||
// You can update the following values to match your application needs. | ||
// For more information, see: https://flutter.dev/to/review-gradle-config. | ||
minSdk = 23 | ||
targetSdk = flutter.targetSdkVersion | ||
versionCode = flutter.versionCode | ||
versionName = flutter.versionName | ||
} | ||
|
||
buildTypes { | ||
release { | ||
// TODO: Add your own signing config for the release build. | ||
// Signing with the debug keys for now, so `flutter run --release` works. | ||
signingConfig signingConfigs.debug | ||
signingConfig = signingConfigs.debug | ||
} | ||
} | ||
} | ||
|
||
flutter { | ||
source '../..' | ||
} | ||
|
||
dependencies { | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | ||
source = "../.." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.