Skip to content

Commit f5ccf43

Browse files
Merge branch 'cph-cachet:master' into master
2 parents fa6072a + 38519c1 commit f5ccf43

245 files changed

Lines changed: 5400 additions & 4168 deletions

File tree

Some content is hidden

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ These are the available plugins in this repository.
2727
| [audio_streamer](./packages/audio_streamer) | Stream audio as PCM from mic| ✔️ | ✔️ | [![pub package](https://img.shields.io/pub/v/audio_streamer.svg)](https://pub.dartlang.org/packages/audio_streamer) |
2828
| [mobility_features](./packages/mobility_features) | Compute daily mobility features from location data | ✔️ | ✔️ | [![pub package](https://img.shields.io/pub/v/mobility_features.svg)](https://pub.dartlang.org/packages/mobility_features) |
2929
| [carp_background_location](./packages/carp_background_location) | Track location, even when app is in the background | ✔️ | ✔️ | [![pub package](https://img.shields.io/pub/v/carp_background_location.svg)](https://pub.dartlang.org/packages/carp_background_location) |
30-
| [flutter_foreground_service](./packages/flutter_foreground_service) | Foreground service for Android | ✔️ | ✔️ | [![pub package](https://img.shields.io/pub/v/flutter_foreground_service.svg)](https://pub.dartlang.org/packages/flutter_foreground_service) |
30+
| [flutter_foreground_service](./packages/flutter_foreground_service) | Foreground service for Android | ✔️ | | [![pub package](https://img.shields.io/pub/v/flutter_foreground_service.svg)](https://pub.dartlang.org/packages/flutter_foreground_service) |
3131

3232
## Issues
3333

packages/activity_recognition_flutter/CHANGELOG.md

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,45 @@
1+
## 5.0.0
2+
3+
- upgraded Android SDK level
4+
- upgraded flutter version
5+
- upgraded AGP
6+
17
## 4.2.0
2-
* small refactor and improvement of docs
3-
* using `ActivityRecognition()` when creating a singleton -- standard practice in Dart.
8+
9+
- small refactor and improvement of docs
10+
- using `ActivityRecognition()` when creating a singleton -- standard practice in Dart.
411

512
## 4.1.0
6-
* [PR #474](https://github.com/cph-cachet/flutter-plugins/pull/474) - Android 12 intent-flag
7-
* the name of the stream has been changed from `startStream` to `activityStream`
8-
* cleanup in example app
13+
14+
- [PR #474](https://github.com/cph-cachet/flutter-plugins/pull/474) - Android 12 intent-flag
15+
- the name of the stream has been changed from `startStream` to `activityStream`
16+
- cleanup in example app
917

1018
## 4.0.5+1
11-
* [PR #408](https://github.com/cph-cachet/flutter-plugins/pull/408)
19+
20+
- [PR #408](https://github.com/cph-cachet/flutter-plugins/pull/408)
1221

1322
## 4.0.4
14-
* improvements to documentation
23+
24+
- improvements to documentation
1525

1626
## 4.0.3
17-
* [PR #358](https://github.com/cph-cachet/flutter-plugins/pull/358)
27+
28+
- [PR #358](https://github.com/cph-cachet/flutter-plugins/pull/358)
1829

1930
## 4.0.2
20-
* [PR #302](https://github.com/cph-cachet/flutter-plugins/pull/302)
21-
* [PR #351](https://github.com/cph-cachet/flutter-plugins/pull/351)
31+
32+
- [PR #302](https://github.com/cph-cachet/flutter-plugins/pull/302)
33+
- [PR #351](https://github.com/cph-cachet/flutter-plugins/pull/351)
2234

2335
## 4.0.1
24-
* Fix of issue #309, i.e. a null pointer that occurs when running the plugin on API 30.
25-
* Replaced the deprecated `IntentService` with a `JobIntentService`.
26-
* [PR #314](https://github.com/cph-cachet/flutter-plugins/pull/314)
36+
37+
- Fix of issue #309, i.e. a null pointer that occurs when running the plugin on API 30.
38+
- Replaced the deprecated `IntentService` with a `JobIntentService`.
39+
- [PR #314](https://github.com/cph-cachet/flutter-plugins/pull/314)
2740

2841
## 4.0.0
42+
2943
- Null safety migration
3044
- Updated swift code
3145

packages/activity_recognition_flutter/android/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,33 @@ version '1.0'
44
buildscript {
55
repositories {
66
google()
7-
jcenter()
7+
mavenCentral()
88
}
99

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.5.0'
11+
classpath 'com.android.tools.build:gradle:7.3.0'
1212
}
1313
}
1414

1515
rootProject.allprojects {
1616
repositories {
1717
google()
18-
jcenter()
18+
mavenCentral()
1919
}
2020
}
2121

2222
apply plugin: 'com.android.library'
2323

2424
android {
25-
compileSdkVersion 30
25+
compileSdkVersion 33
2626

2727
defaultConfig {
28-
minSdkVersion 21
28+
minSdkVersion 26
2929
}
3030
lintOptions {
3131
disable 'InvalidPackage'
3232
}
33+
namespace "dk.cachet.activity_recognition_flutter"
3334
}
3435

3536
dependencies {

packages/activity_recognition_flutter/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip

packages/activity_recognition_flutter/example/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
2525
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2626

2727
android {
28-
compileSdkVersion 30
28+
compileSdkVersion flutter.compileSdkVersion
2929

3030
lintOptions {
3131
disable 'InvalidPackage'
@@ -34,8 +34,8 @@ android {
3434
defaultConfig {
3535
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3636
applicationId "dk.cachet.activity_recognition_flutter_example"
37-
minSdkVersion 21
38-
targetSdkVersion 30
37+
minSdkVersion 26
38+
targetSdkVersion flutter.targetSdkVersion
3939
versionCode flutterVersionCode.toInteger()
4040
versionName flutterVersionName
4141
}

packages/activity_recognition_flutter/example/android/app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
additional functionality it is fine to subclass or reimplement
77
FlutterApplication and put your custom class here. -->
88
<application
9-
android:name="io.flutter.app.FlutterApplication"
9+
android:name="${applicationName}"
1010
android:icon="@mipmap/ic_launcher"
1111
android:label="activity_recognition_flutter_example">
1212
<activity
@@ -15,7 +15,8 @@
1515
android:hardwareAccelerated="true"
1616
android:launchMode="singleTop"
1717
android:theme="@style/LaunchTheme"
18-
android:windowSoftInputMode="adjustResize">
18+
android:windowSoftInputMode="adjustResize"
19+
android:exported="true">
1920
<!-- Specifies an Android theme to apply to this Activity as soon as
2021
the Android process has started. This theme is visible to the user
2122
while the Flutter UI initializes. After that, this theme continues
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
buildscript {
22
repositories {
33
google()
4-
jcenter()
4+
mavenCentral()
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.5.0'
8+
classpath 'com.android.tools.build:gradle:7.3.0'
99
}
1010
}
1111

1212
allprojects {
1313
repositories {
1414
google()
15-
jcenter()
15+
mavenCentral()
1616
}
1717
}
1818

@@ -24,6 +24,6 @@ subprojects {
2424
project.evaluationDependsOn(':app')
2525
}
2626

27-
task clean(type: Delete) {
27+
tasks.register("clean", Delete) {
2828
delete rootProject.buildDir
2929
}

packages/activity_recognition_flutter/example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip

packages/activity_recognition_flutter/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>9.0</string>
24+
<string>11.0</string>
2525
</dict>
2626
</plist>

packages/activity_recognition_flutter/example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
# platform :ios, '11.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

0 commit comments

Comments
 (0)