Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
0ee5882
Added ACCESS_LOCAL_NETWORK permission for android 17
zeyus May 27, 2026
2593bec
bump main package version
zeyus May 27, 2026
5512a65
bump compilesdk version for android
zeyus May 27, 2026
980eaf0
Updated android pakcage version to 14 (breaking)
zeyus May 27, 2026
38f1e21
Just a typo
zeyus May 27, 2026
8f21da5
missing defs
zeyus May 27, 2026
5f213a4
...
zeyus May 27, 2026
a83e0ad
...
zeyus May 27, 2026
4d93013
Added ACCESS_LOCAL_NETWORK permission for android 17
zeyus Jun 3, 2026
5fd825e
bump main package version
zeyus Jun 3, 2026
5dd7467
bump compilesdk version for android
zeyus May 27, 2026
98ae892
Updated android pakcage version to 14 (breaking)
zeyus May 27, 2026
7aa86a3
Just a typo
zeyus May 27, 2026
3b21c91
missing defs
zeyus Jun 3, 2026
473cbcb
...
zeyus Jun 3, 2026
586f421
...
zeyus May 27, 2026
b28b5a1
dart formatting
zeyus Jun 3, 2026
c1d0ac1
Update to use monorepo for managing development
zeyus Jun 3, 2026
88ca052
Linting, formatting, fix analysis issues
zeyus Jun 3, 2026
910859d
Fix test for number of permissions
zeyus Jun 3, 2026
8cbc4c1
Build after test (build is more time-costly)
zeyus Jun 3, 2026
5639fb5
Fix permission_handler android build compileSdk
zeyus Jun 3, 2026
a803e14
Forgot to bump compilesdk version for android example app
zeyus Jun 3, 2026
886cd98
update code coverage for permission_handler_platform_interface, add a…
zeyus Jun 3, 2026
2be9ae3
...it is android 37.0, not android 37
zeyus Jun 3, 2026
84fbc3e
try to symlink the android-37.0 directory to android-37?
zeyus Jun 3, 2026
3d6dfcd
ohhh...i think it is flutter.
zeyus Jun 3, 2026
0bbd390
yes, flutter, but also outdated kotlin / gradle, etc
zeyus Jun 3, 2026
97418fd
feat(apple): add Swift Package Manager support (#1523)
zeyus Jun 3, 2026
1869c31
Update version to 12.0.2
zeyus Jun 3, 2026
d89e5c0
fix typo in README about the compileSdkVersion (#1472)
assanbayg Jun 1, 2026
0b5afe8
docs: fix completeSdkVersion typo to compileSdkVersion (#1494)
harshitsaini98 Jun 1, 2026
246caae
Improved the iOS Setup section in permission_handler/README.md (#1488)
Hemo-Sul Jun 1, 2026
ccdb98d
Rewrite copyleft code from stackoverflow
mvanbeusekom Jun 1, 2026
eb78117
Bump permission_handler_apple to 9.4.9
mvanbeusekom Jun 1, 2026
d6cf58e
Bump permission_handler to 12.0.3
zeyus Jun 3, 2026
01be4d6
Bump permission_handler_apple to 9.4.9
mvanbeusekom Jun 1, 2026
653e93b
Added ACCESS_LOCAL_NETWORK permission for android 17
zeyus Jun 3, 2026
5fc38c8
bump main package version
zeyus Jun 3, 2026
765bae3
missing defs
zeyus Jun 3, 2026
2e642c0
dart formatting
zeyus Jun 3, 2026
68bfa36
Update to use monorepo for managing development
zeyus Jun 3, 2026
c3f5677
Linting, formatting, fix analysis issues
zeyus Jun 3, 2026
5be8c06
Fix test for number of permissions
zeyus Jun 3, 2026
f67b8e9
Build after test (build is more time-costly)
zeyus Jun 3, 2026
684d96c
Fix permission_handler android build compileSdk
zeyus Jun 3, 2026
6bebe49
Forgot to bump compilesdk version for android example app
zeyus Jun 3, 2026
33e4a18
update code coverage for permission_handler_platform_interface, add a…
zeyus Jun 3, 2026
62ceea6
...it is android 37.0, not android 37
zeyus Jun 3, 2026
8d432c2
try to symlink the android-37.0 directory to android-37?
zeyus Jun 3, 2026
344f735
ohhh...i think it is flutter.
zeyus Jun 3, 2026
10c2f28
yes, flutter, but also outdated kotlin / gradle, etc
zeyus Jun 3, 2026
8ea5109
accidental extra case during merge
zeyus Jun 3, 2026
b783bc1
Merge remote-tracking branch 'upstream'
zeyus Jun 3, 2026
3cbd39b
updated gitignore for ios
zeyus Jun 3, 2026
6ea2e70
Merge branch 'main' into feature/android-local-network
zeyus Jun 3, 2026
a556786
Updated android plugin gradle / config
zeyus Jun 3, 2026
8a40c21
remove ios ephemeral
zeyus Jun 3, 2026
aa3061a
remove main permission_handler example ios ephemeral
zeyus Jun 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions .github/workflows/permission_handler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# TODO(mvanbeusekom): Manually set to macOS 15 to support Xcode 16 and iOS 18 SDKs.
# Currently `macos-latest` is based on macOS 14 and doesn't support iOS 18 SDK. This
# should be moved back to `macos-latest` when GitHub Actions images are updated.
runs-on: macos-15
runs-on: macos-15

env:
source-directory: ./permission_handler
Expand All @@ -42,7 +42,6 @@ jobs:
with:
distribution: "temurin" # See 'Supported distributions' for available options
java-version: "17"

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
with:
Expand All @@ -62,18 +61,7 @@ jobs:
- name: Run Flutter Analyzer
run: flutter analyze
working-directory: ${{env.source-directory}}

# Build Android version of the example App
- name: Run Android build
run: flutter build apk --release
working-directory: ${{env.example-directory}}

# Build iOS version of the example App
- name: Run iOS build
run: flutter build ios --release --no-codesign
working-directory: ${{env.example-directory}}

# Run all unit-tests with code coverage
# Run all unit-tests with code coverage
- name: Run unit tests
run: flutter test --coverage
working-directory: ${{env.source-directory}}
Expand All @@ -85,3 +73,13 @@ jobs:
file: ${{env.source-directory}}/coverage/lcov.info # optional
flags: unittests # optional
name: permission_handler # optional

# Build Android version of the example App
- name: Run Android build
run: flutter build apk --release
working-directory: ${{env.example-directory}}

# Build iOS version of the example App
- name: Run iOS build
run: flutter build ios --release --no-codesign
working-directory: ${{env.example-directory}}
22 changes: 10 additions & 12 deletions .github/workflows/permission_handler_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ name: permission_handler_android
# events but only for the main branch
on:
push:
branches: [ main ]
branches: [main]
paths:
- 'permission_handler_android/**'
- '.github/workflows/permission_handler_android.yaml'
- "permission_handler_android/**"
- ".github/workflows/permission_handler_android.yaml"
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'permission_handler_android/**'
- '.github/workflows/permission_handler_android.yaml'
- "permission_handler_android/**"
- ".github/workflows/permission_handler_android.yaml"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -26,7 +26,7 @@ jobs:

env:
source-directory: ./permission_handler_android
example-directory: ./permission_handler_android/example
example-directory: ./permission_handler_android/example

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -36,13 +36,12 @@ jobs:
# 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'

distribution: "temurin" # See 'Supported distributions' for available options
java-version: "17"
# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: "stable"

# Download all Flutter packages
- name: Download dependencies
Expand All @@ -63,4 +62,3 @@ jobs:
- name: Run Android build
run: flutter build apk --release
working-directory: ${{env.example-directory}}

27 changes: 14 additions & 13 deletions .github/workflows/permission_handler_platform_interface.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ name: permission_handler_platform_interface
# events but only for the main branch
on:
push:
branches: [ main ]
branches: [main]
paths:
- 'permission_handler_platform_interface/**'
- '.github/workflows/permission_handler_platform_interface.yaml'
- "permission_handler_platform_interface/**"
- ".github/workflows/permission_handler_platform_interface.yaml"
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'permission_handler_platform_interface/**'
- '.github/workflows/permission_handler_platform_interface.yaml'
- "permission_handler_platform_interface/**"
- ".github/workflows/permission_handler_platform_interface.yaml"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -25,17 +25,17 @@ jobs:
runs-on: ubuntu-latest

env:
source-directory: ./permission_handler_platform_interface
source-directory: ./permission_handler_platform_interface

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: "stable"

# Download all Flutter packages
- name: Download dependencies
Expand All @@ -46,20 +46,21 @@ jobs:
- name: Run Dart Format
run: dart format --set-exit-if-changed .
working-directory: ${{env.source-directory}}

# Run Flutter Analyzer
- name: Run Flutter Analyzer
run: flutter analyze
working-directory: ${{env.source-directory}}

# Run all unit-tests with code coverage
- name: Run unit tests
run: flutter test --coverage
working-directory: ${{env.source-directory}}

# Upload code coverage information
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ${{env.source-directory}}/coverage/lcov.info # optional
name: permission_handler_platform_interface (Platform Interface Package) # optional
fail_ci_if_error: true
flags: unittests
9 changes: 9 additions & 0 deletions permission_handler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 13.0.1

- version bump

## 13.0.0

- **BREAKING CHANGE:** , android compilesdk now set to version `compileSdkVersion 37`
- Added support for the new Android 17 permission `ACCESS_LOCAL_NETWORK`

## 12.0.3

- Rewrites the "iOS - CocaoPods" section in the README.md to match version 8.0.0 of the permission_handler.
Expand Down
55 changes: 0 additions & 55 deletions permission_handler/example/android/app/build.gradle

This file was deleted.

45 changes: 45 additions & 0 deletions permission_handler/example/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
plugins {
id("com.android.application")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}

android {
namespace = "com.baseflow.permissionhandler.example"
compileSdk = 37
ndkVersion = flutter.ndkVersion

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.baseflow.permissionhandler.example"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
targetSdk = 35
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.getByName("debug")
}
}
}

kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
}
}

flutter {
source = "../.."
}
18 changes: 0 additions & 18 deletions permission_handler/example/android/build.gradle

This file was deleted.

24 changes: 24 additions & 0 deletions permission_handler/example/android/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
allprojects {
repositories {
google()
mavenCentral()
}
}

val newBuildDir: Directory =
rootProject.layout.buildDirectory
.dir("../../build")
.get()
rootProject.layout.buildDirectory.value(newBuildDir)

subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
subprojects {
project.evaluationDependsOn(":app")
}

tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
7 changes: 5 additions & 2 deletions permission_handler/example/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
org.gradle.jvmargs=-Xmx1536M
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
# This builtInKotlin flag was added automatically by Flutter migrator
android.builtInKotlin=false
# This newDsl flag was added automatically by Flutter migrator
android.newDsl=false
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-all.zip
24 changes: 0 additions & 24 deletions permission_handler/example/android/settings.gradle

This file was deleted.

Loading
Loading