Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
permission_handler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
permission_handler
Commits
8350aafe
Unverified
Commit
8350aafe
authored
Jul 18, 2021
by
Maurits van Beusekom
Committed by
GitHub
Jul 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update GitHub workflow (#627)
* Update GitHub workflow * REmove web build
parent
0409bcc9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
238 additions
and
85 deletions
+238
-85
.github/workflows/app_facing_package.yaml
+0
-72
.github/workflows/permission_handler.yaml
+176
-0
.github/workflows/permission_handler_platform_interface.yaml
+60
-11
permission_handler/README.md
+1
-1
permission_handler_platform_interface/README.md
+1
-1
No files found.
.github/workflows/app_facing_package.yaml
deleted
100644 → 0
View file @
0409bcc9
# This is a basic workflow to help you get started with Actions
name
:
app_facing_package
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the develop branch
on
:
push
:
branches
:
[
master
]
paths
:
-
'
permission_handler/**'
pull_request
:
branches
:
[
master
]
paths
:
-
'
permission_handler/**'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs
:
# Job configuration for the permission_handler (App Facing Package)
permission_handler
:
# The type of runner that the job will run on
runs-on
:
macos-latest
env
:
source-directory
:
./permission_handler
example-directory
:
./permission_handler/example
# 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@v2
# Make sure the stable version of Flutter is available
-
uses
:
subosito/flutter-action@v1
with
:
channel
:
'
stable'
# Download all Flutter packages the permission_handler depends on
-
name
:
Download dependencies
run
:
flutter pub get
working-directory
:
${{env.source-directory}}
# Run Flutter Format to ensure formatting is valid
-
name
:
Run Flutter Format
run
:
flutter format --set-exit-if-changed lib
working-directory
:
${{env.source-directory}}
# Run Flutter Analyzer
-
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
-
name
:
Run unit tests
run
:
flutter test --coverage
working-directory
:
${{env.source-directory}}
# Upload code coverage information
-
uses
:
codecov/codecov-action@v1
with
:
file
:
${{env.source-directory}}/coverage/lcov.info
# optional
name
:
permission_handler (Platform Interface Package)
# optional
fail_ci_if_error
:
true
.github/workflows/permission_handler.yaml
0 → 100644
View file @
8350aafe
# This is a basic workflow to help you get started with Actions
name
:
permission_handler
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on
:
push
:
branches
:
[
master
]
paths
:
-
'
permission_handler/**'
pull_request
:
branches
:
[
master
]
paths
:
-
'
permission_handler/**'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs
:
format
:
name
:
Format
# The type of runner that the job will run on
runs-on
:
ubuntu-latest
env
:
source-directory
:
./permission_handler
# 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@v2
# Make sure the stable version of Flutter is available
-
uses
:
subosito/flutter-action@v1
with
:
channel
:
'
stable'
# Download all Flutter packages
-
name
:
Download dependencies
run
:
flutter pub get
working-directory
:
${{env.source-directory}}
# Run Flutter Format to ensure formatting is valid
-
name
:
Run Flutter Format
run
:
flutter format --set-exit-if-changed .
working-directory
:
${{env.source-directory}}
analyze
:
name
:
Analyze
# The type of runner that the job will run on
runs-on
:
ubuntu-latest
env
:
source-directory
:
./permission_handler
# 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@v2
# Make sure the stable version of Flutter is available
-
uses
:
subosito/flutter-action@v1
with
:
channel
:
'
stable'
# Download all Flutter packages
-
name
:
Download dependencies
run
:
flutter pub get
working-directory
:
${{env.source-directory}}
# Run Flutter Analyzer
-
name
:
Run Flutter Analyzer
run
:
flutter analyze
working-directory
:
${{env.source-directory}}
build_android
:
name
:
Build Android App
# The type of runner that the job will run on
runs-on
:
ubuntu-latest
env
:
source-directory
:
./permission_handler
example-directory
:
./permission_handler/example
# 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@v2
# Ensure correct JAVA version is installed.
-
uses
:
actions/setup-java@v1
with
:
java-version
:
'
12.x'
# Make sure the stable version of Flutter is available
-
uses
:
subosito/flutter-action@v1
with
:
channel
:
'
stable'
# Download all Flutter packages
-
name
:
Download dependencies
run
:
flutter pub get
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
:
name
:
Build iOS App
# The type of runner that the job will run on
runs-on
:
macos-latest
env
:
source-directory
:
./permission_handler
example-directory
:
./permission_handler/example
# 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@v2
# Make sure the stable version of Flutter is available
-
uses
:
subosito/flutter-action@v1
with
:
channel
:
'
stable'
# Download all Flutter packages
-
name
:
Download dependencies
run
:
flutter pub get
working-directory
:
${{env.source-directory}}
# Build iOS version of the example App
-
name
:
Run iOS build
run
:
flutter build ios --release --no-codesign
working-directory
:
${{env.example-directory}}
tests
:
name
:
Unit-tests
# The type of runner that the job will run on
runs-on
:
ubuntu-latest
env
:
source-directory
:
./permission_handler
# 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@v2
# Make sure the stable version of Flutter is available
-
uses
:
subosito/flutter-action@v1
with
:
channel
:
'
stable'
# Download all Flutter packages
-
name
:
Download dependencies
run
:
flutter pub get
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
with
:
file
:
${{env.source-directory}}/coverage/lcov.info
# optional
name
:
permission_handler (App Facing Package)
# optional
fail_ci_if_error
:
true
\ No newline at end of file
.github/workflows/p
latform_interface_packag
e.yaml
→
.github/workflows/p
ermission_handler_platform_interfac
e.yaml
View file @
8350aafe
# This is a basic workflow to help you get started with Actions
name
:
p
latform_interface_packag
e
name
:
p
ermission_handler_platform_interfac
e
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the
develop
branch
# events but only for the
master
branch
on
:
push
:
branches
:
[
master
]
...
...
@@ -16,10 +16,12 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs
:
# Job configuration for the permission_handler_platform_interface (Platform Interface Package)
permission_handler_platform_interface
:
format
:
name
:
Format
# The type of runner that the job will run on
runs-on
:
macos-latest
runs-on
:
ubuntu-latest
env
:
source-directory
:
./permission_handler_platform_interface
...
...
@@ -33,21 +35,68 @@ jobs:
with
:
channel
:
'
stable'
# Download all Flutter packages
the permission_handler_platform_interface depends on
# Download all Flutter packages
-
name
:
Download dependencies
run
:
flutter pub get
working-directory
:
${{env.source-directory}}
# Run Flutter Format to ensure formatting is valid
-
name
:
Run Flutter Format
run
:
flutter format --set-exit-if-changed
lib
run
:
flutter format --set-exit-if-changed
.
working-directory
:
${{env.source-directory}}
analyze
:
name
:
Analyze
# The type of runner that the job will run on
runs-on
:
ubuntu-latest
env
:
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@v2
# Make sure the stable version of Flutter is available
-
uses
:
subosito/flutter-action@v1
with
:
channel
:
'
stable'
# Download all Flutter packages
-
name
:
Download dependencies
run
:
flutter pub get
working-directory
:
${{env.source-directory}}
# Run Flutter Analyzer
-
name
:
Run Flutter Analyzer
run
:
flutter analyze
working-directory
:
${{env.source-directory}}
tests
:
name
:
Unit-tests
# The type of runner that the job will run on
runs-on
:
ubuntu-latest
env
:
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@v2
# Make sure the stable version of Flutter is available
-
uses
:
subosito/flutter-action@v1
with
:
channel
:
'
stable'
# Download all Flutter packages
-
name
:
Download dependencies
run
:
flutter pub get
working-directory
:
${{env.source-directory}}
# Run all unit-tests with code coverage
-
name
:
Run unit tests
run
:
flutter test --coverage
...
...
@@ -57,6 +106,5 @@ jobs:
-
uses
:
codecov/codecov-action@v1
with
:
file
:
${{env.source-directory}}/coverage/lcov.info
# optional
name
:
permission_handler (Platform Interface Package)
# optional
fail_ci_if_error
:
true
name
:
permission_handler_platform_interface (Platform Interface Package)
# optional
fail_ci_if_error
:
true
\ No newline at end of file
permission_handler/README.md
View file @
8350aafe
[

](https://pub.dartlang.org/packages/permission_handler)
[

](https://github.com/Baseflow/flutter-permission-handler/actions/workflows/app_facing_package
.yaml)
[

](https://github.com/tenhobi/effective_dart)
[

](https://codecov.io/gh/Baseflow/flutter-permission-handler)
[

](https://pub.dartlang.org/packages/permission_handler)
[

](https://github.com/Baseflow/flutter-permission-handler/actions/workflows/permission_handler
.yaml)
[

](https://github.com/tenhobi/effective_dart)
[

](https://codecov.io/gh/Baseflow/flutter-permission-handler)
On most operating systems, permissions aren't just granted to apps at install time.
Rather, developers have to ask the user for permissions while the app is running.
...
...
permission_handler_platform_interface/README.md
View file @
8350aafe
# permission_handler_platform_interface
[

](https://pub.dartlang.org/packages/permission_handler_platform_interface) !
[
Build status
](
https://github.com/Baseflow/flutter-permission-handler/workflows/p
latform_interface_packag
e/badge.svg?branch=master
)
[
![style: effective dart
]
(https://img.shields.io/badge/style-effective_dart-40c4ff.svg)](https://github.com/tenhobi/effective_dart)
[

](https://codecov.io/gh/Baseflow/flutter-permission-handler)
[

](https://pub.dartlang.org/packages/permission_handler_platform_interface) !
[
Build status
](
https://github.com/Baseflow/flutter-permission-handler/workflows/p
ermission_handler_platform_interfac
e/badge.svg?branch=master
)
[
![style: effective dart
]
(https://img.shields.io/badge/style-effective_dart-40c4ff.svg)](https://github.com/tenhobi/effective_dart)
[

](https://codecov.io/gh/Baseflow/flutter-permission-handler)
A common platform interface for the
[
`permission_handler`
][
1
]
plugin.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment