File tree Expand file tree Collapse file tree 8 files changed +40
-27
lines changed
permission_handler_android Expand file tree Collapse file tree 8 files changed +40
-27
lines changed Original file line number Diff line number Diff line change 3333 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3434 - uses : actions/checkout@v3
3535
36+ # Make sure JAVA version 17 is installed on build agent.
37+ - uses : actions/setup-java@v3
38+ with :
39+ distribution : ' temurin' # See 'Supported distributions' for available options
40+ java-version : ' 17'
41+
3642 # Make sure the stable version of Flutter is available
3743 - uses : subosito/flutter-action@v2
3844 with :
Original file line number Diff line number Diff line change 1+ ## 12.0.13
2+
3+ * Updates the Android min SDK to 19 (from 16).
4+ * Migrates example app away from deprecated imperative apply in gradle (see: https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply ).
5+
16## 12.0.12
27
38* Fixes permission status returned from ` Permission.photos.request() ` or ` Permission.videos.request() ` when limited access selected
Original file line number Diff line number Diff line change @@ -34,6 +34,6 @@ android {
3434 }
3535
3636 defaultConfig {
37- minSdkVersion 16
37+ minSdkVersion 19
3838 }
3939}
Original file line number Diff line number Diff line change 1+ plugins {
2+ id " com.android.application"
3+ id " dev.flutter.flutter-gradle-plugin"
4+ }
5+
16def localProperties = new Properties ()
27def localPropertiesFile = rootProject. file(' local.properties' )
38if (localPropertiesFile. exists()) {
@@ -21,9 +26,6 @@ if (flutterVersionName == null) {
2126 flutterVersionName = ' 1.0'
2227}
2328
24- apply plugin : ' com.android.application'
25- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
26-
2729android {
2830 namespace ' com.baseflow.permissionhandler.example'
2931 compileSdk 34
Original file line number Diff line number Diff line change 1- buildscript {
2- repositories {
3- google()
4- mavenCentral()
5- }
6-
7- dependencies {
8- classpath ' com.android.tools.build:gradle:7.4.2'
9- }
10- }
11-
121allprojects {
132 repositories {
143 google()
@@ -19,6 +8,8 @@ allprojects {
198rootProject. buildDir = ' ../build'
209subprojects {
2110 project. buildDir = " ${ rootProject.buildDir} /${ project.name} "
11+ }
12+ subprojects {
2213 project. evaluationDependsOn(' :app' )
2314}
2415
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-7.6 .3-all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-8 .3-all.zip
Original file line number Diff line number Diff line change 1- include ' :app'
1+ pluginManagement {
2+ def flutterSdkPath = {
3+ def properties = new Properties ()
4+ file(" local.properties" ). withInputStream { properties. load(it) }
5+ def flutterSdkPath = properties. getProperty(" flutter.sdk" )
6+ assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
7+ return flutterSdkPath
8+ }()
29
3- def flutterProjectRoot = rootProject . projectDir . parentFile . toPath( )
10+ includeBuild( " $f lutterSdkPath /packages/flutter_tools/gradle " )
411
5- def plugins = new Properties ()
6- def pluginsFile = new File (flutterProjectRoot. toFile(), ' .flutter-plugins' )
7- if (pluginsFile. exists()) {
8- pluginsFile. withReader(' UTF-8' ) { reader -> plugins. load(reader) }
12+ repositories {
13+ google()
14+ mavenCentral()
15+ gradlePluginPortal()
16+ }
917}
1018
11- plugins. each { name, path ->
12- def pluginDirectory = flutterProjectRoot. resolve(path). resolve(' android' ). toFile()
13- include " :$name "
14- project(" :$name " ). projectDir = pluginDirectory
19+ plugins {
20+ id " dev.flutter.flutter-plugin-loader" version " 1.0.0"
21+ id " com.android.application" version " 8.1.0" apply false
1522}
23+
24+ include " :app"
Original file line number Diff line number Diff line change 11name : permission_handler_android
22description : Permission plugin for Flutter. This plugin provides the Android API to request and check permissions.
33homepage : https://github.com/baseflow/flutter-permission-handler
4- version : 12.0.12
4+ version : 12.0.13
55
66environment :
77 sdk : " >=2.15.0 <4.0.0"
You can’t perform that action at this time.
0 commit comments