Commit 20ea89f1 by Maurits van Beusekom Committed by GitHub

Adds BODY_SENSORS_BACKGROUND support (#1075)

* Adds BODY_SENSORS_BACKGROUND support

* Adds BODY_SENSORS_BACKGROUND support

* Update JAVA version of build agent
parent 1363823f
...@@ -32,7 +32,13 @@ jobs: ...@@ -32,7 +32,13 @@ jobs:
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3 - uses: actions/checkout@v3
# Make sure JAVA version 17 is installed on build agent.
- uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
# Make sure the stable version of Flutter is available # Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2 - uses: subosito/flutter-action@v2
with: with:
......
## 10.4.0
* Adds support for the new Android 13 permission: BODY_SENSORS_BACKGROUND.
## 10.3.0 ## 10.3.0
* Adds support for the "Provisional" permission status introduced with iOS 12+. * Adds support for the "Provisional" permission status introduced with iOS 12+.
......
...@@ -25,6 +25,9 @@ apply plugin: 'com.android.application' ...@@ -25,6 +25,9 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android { android {
if (project.android.hasProperty("namespace")) {
namespace 'com.baseflow.permissionhandlerexample'
}
compileSdkVersion 33 compileSdkVersion 33
compileOptions { compileOptions {
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
<!-- Permissions options for the `sensors` group --> <!-- Permissions options for the `sensors` group -->
<uses-permission android:name="android.permission.BODY_SENSORS" /> <uses-permission android:name="android.permission.BODY_SENSORS" />
<uses-permission android:name="android.permission.BODY_SENSORS_BACKGROUND" />
<!-- Permissions options for the `accessMediaLocation` group --> <!-- Permissions options for the `accessMediaLocation` group -->
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
<!-- Permissions options for the `sensors` group --> <!-- Permissions options for the `sensors` group -->
<uses-permission android:name="android.permission.BODY_SENSORS" /> <uses-permission android:name="android.permission.BODY_SENSORS" />
<uses-permission android:name="android.permission.BODY_SENSORS_BACKGROUND" />
<!-- Permissions options for the `access notification policy` group --> <!-- Permissions options for the `access notification policy` group -->
<uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY"/> <uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY"/>
......
...@@ -5,7 +5,7 @@ buildscript { ...@@ -5,7 +5,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:4.1.0' classpath 'com.android.tools.build:gradle:7.1.2'
} }
} }
...@@ -22,6 +22,6 @@ subprojects { ...@@ -22,6 +22,6 @@ subprojects {
project.evaluationDependsOn(':app') project.evaluationDependsOn(':app')
} }
task clean(type: Delete) { tasks.register("clean", Delete) {
delete rootProject.buildDir delete rootProject.buildDir
} }
...@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME ...@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
...@@ -2,7 +2,7 @@ name: permission_handler_example ...@@ -2,7 +2,7 @@ name: permission_handler_example
description: Demonstrates how to use the permission_handler plugin. description: Demonstrates how to use the permission_handler plugin.
environment: environment:
sdk: ">=2.15.0 <3.0.0" sdk: ">=2.15.0 <4.0.0"
dependencies: dependencies:
baseflow_plugin_template: ^2.1.1 baseflow_plugin_template: ^2.1.1
...@@ -21,7 +21,7 @@ dev_dependencies: ...@@ -21,7 +21,7 @@ dev_dependencies:
# the parent directory to use the current plugin's version. # the parent directory to use the current plugin's version.
path: ../ path: ../
url_launcher: ^6.0.12 url_launcher: ^6.1.11
flutter: flutter:
uses-material-design: true uses-material-design: true
......
...@@ -7,6 +7,9 @@ list(APPEND FLUTTER_PLUGIN_LIST ...@@ -7,6 +7,9 @@ list(APPEND FLUTTER_PLUGIN_LIST
url_launcher_windows url_launcher_windows
) )
list(APPEND FLUTTER_FFI_PLUGIN_LIST
)
set(PLUGIN_BUNDLED_LIBRARIES) set(PLUGIN_BUNDLED_LIBRARIES)
foreach(plugin ${FLUTTER_PLUGIN_LIST}) foreach(plugin ${FLUTTER_PLUGIN_LIST})
...@@ -15,3 +18,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST}) ...@@ -15,3 +18,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>) list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
endforeach(plugin) endforeach(plugin)
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
endforeach(ffi_plugin)
...@@ -2,7 +2,7 @@ name: permission_handler ...@@ -2,7 +2,7 @@ name: permission_handler
description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions. description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
repository: https://github.com/baseflow/flutter-permission-handler repository: https://github.com/baseflow/flutter-permission-handler
issue_tracker: https://github.com/Baseflow/flutter-permission-handler/issues issue_tracker: https://github.com/Baseflow/flutter-permission-handler/issues
version: 10.3.0 version: 10.4.0
environment: environment:
sdk: ">=2.15.0 <4.0.0" sdk: ">=2.15.0 <4.0.0"
...@@ -22,10 +22,10 @@ dependencies: ...@@ -22,10 +22,10 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
meta: ^1.7.0 meta: ^1.7.0
permission_handler_android: ^10.2.0 permission_handler_android: ^10.3.0
permission_handler_apple: ^9.1.0 permission_handler_apple: ^9.1.1
permission_handler_windows: ^0.1.2 permission_handler_windows: ^0.1.3
permission_handler_platform_interface: ^3.10.0 permission_handler_platform_interface: ^3.11.0
dev_dependencies: dev_dependencies:
flutter_lints: ^1.0.4 flutter_lints: ^1.0.4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment