Showing
4 changed files
with
53 additions
and
64 deletions
.github/dependabot.yml
0 → 100644
| 1 | +version: 2 | ||
| 2 | +updates: | ||
| 3 | + - package-ecosystem: "github-actions" | ||
| 4 | + directory: "/" | ||
| 5 | + schedule: | ||
| 6 | + interval: "weekly" | ||
| 7 | + reviewers: | ||
| 8 | + - "juliansteenbakker" | ||
| 9 | + - package-ecosystem: gradle | ||
| 10 | + directory: "/android" | ||
| 11 | + schedule: | ||
| 12 | + interval: "weekly" | ||
| 13 | + reviewers: | ||
| 14 | + - "juliansteenbakker" | ||
| 15 | + - package-ecosystem: gradle | ||
| 16 | + directory: "/example/android" | ||
| 17 | + schedule: | ||
| 18 | + interval: "weekly" | ||
| 19 | + reviewers: | ||
| 20 | + - "juliansteenbakker" |
.github/funding.yml
0 → 100644
| 1 | +github: [juliansteenbakker] |
.github/workflows/flutter.yml
0 → 100644
| 1 | +name: code analysis & formatting | ||
| 2 | + | ||
| 3 | +on: [push, pull_request] | ||
| 4 | + | ||
| 5 | +jobs: | ||
| 6 | + analysis: | ||
| 7 | + runs-on: ubuntu-latest | ||
| 8 | + steps: | ||
| 9 | + - uses: actions/checkout@v2 | ||
| 10 | + - uses: actions/setup-java@v2 | ||
| 11 | + with: | ||
| 12 | + distribution: 'temurin' | ||
| 13 | + java-version: '11' | ||
| 14 | + - uses: subosito/flutter-action@v1 | ||
| 15 | + - name: Version | ||
| 16 | + run: flutter doctor -v | ||
| 17 | + - name: Install dependencies | ||
| 18 | + run: flutter pub get | ||
| 19 | + - name: Linter | ||
| 20 | + run: flutter analyze | ||
| 21 | + formatting: | ||
| 22 | + runs-on: ubuntu-latest | ||
| 23 | + steps: | ||
| 24 | + - uses: actions/checkout@v2 | ||
| 25 | + - uses: actions/setup-java@v2 | ||
| 26 | + with: | ||
| 27 | + distribution: 'temurin' | ||
| 28 | + java-version: '11' | ||
| 29 | + - uses: subosito/flutter-action@v1 | ||
| 30 | + - name: Format | ||
| 31 | + run: flutter format -n --set-exit-if-changed . |
| 1 | name: mobile_scanner_example | 1 | name: mobile_scanner_example |
| 2 | description: Demonstrates how to use the mobile_scanner plugin. | 2 | description: Demonstrates how to use the mobile_scanner plugin. |
| 3 | - | ||
| 4 | -# The following line prevents the package from being accidentally published to | ||
| 5 | -# pub.dev using `flutter pub publish`. This is preferred for private packages. | ||
| 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev | 3 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev |
| 7 | 4 | ||
| 8 | environment: | 5 | environment: |
| 9 | sdk: ">=2.16.0 <3.0.0" | 6 | sdk: ">=2.16.0 <3.0.0" |
| 10 | 7 | ||
| 11 | -# Dependencies specify other packages that your package needs in order to work. | ||
| 12 | -# To automatically upgrade your package dependencies to the latest versions | ||
| 13 | -# consider running `flutter pub upgrade --major-versions`. Alternatively, | ||
| 14 | -# dependencies can be manually updated by changing the version numbers below to | ||
| 15 | -# the latest version available on pub.dev. To see which dependencies have newer | ||
| 16 | -# versions available, run `flutter pub outdated`. | ||
| 17 | dependencies: | 8 | dependencies: |
| 18 | flutter: | 9 | flutter: |
| 19 | sdk: flutter | 10 | sdk: flutter |
| 20 | 11 | ||
| 21 | mobile_scanner: | 12 | mobile_scanner: |
| 22 | - # When depending on this package from a real application you should use: | ||
| 23 | - # mobile_scanner: ^x.y.z | ||
| 24 | - # See https://dart.dev/tools/pub/dependencies#version-constraints | ||
| 25 | - # The example app is bundled with the plugin so we use a path dependency on | ||
| 26 | - # the parent directory to use the current plugin's version. | ||
| 27 | path: ../ | 13 | path: ../ |
| 28 | 14 | ||
| 29 | - # The following adds the Cupertino Icons font to your application. | ||
| 30 | - # Use with the CupertinoIcons class for iOS style icons. | ||
| 31 | - cupertino_icons: ^1.0.2 | ||
| 32 | - | ||
| 33 | dev_dependencies: | 15 | dev_dependencies: |
| 34 | flutter_test: | 16 | flutter_test: |
| 35 | sdk: flutter | 17 | sdk: flutter |
| 18 | + flutter_lints: ^1.0.4 | ||
| 36 | 19 | ||
| 37 | - # The "flutter_lints" package below contains a set of recommended lints to | ||
| 38 | - # encourage good coding practices. The lint set provided by the package is | ||
| 39 | - # activated in the `analysis_options.yaml` file located at the root of your | ||
| 40 | - # package. See that file for information about deactivating specific lint | ||
| 41 | - # rules and activating additional ones. | ||
| 42 | - flutter_lints: ^1.0.0 | ||
| 43 | - | ||
| 44 | -# For information on the generic Dart part of this file, see the | ||
| 45 | -# following page: https://dart.dev/tools/pub/pubspec | ||
| 46 | - | ||
| 47 | -# The following section is specific to Flutter. | ||
| 48 | flutter: | 20 | flutter: |
| 49 | - | ||
| 50 | - # The following line ensures that the Material Icons font is | ||
| 51 | - # included with your application, so that you can use the icons in | ||
| 52 | - # the material Icons class. | ||
| 53 | uses-material-design: true | 21 | uses-material-design: true |
| 54 | - | ||
| 55 | - # To add assets to your application, add an assets section, like this: | ||
| 56 | - # assets: | ||
| 57 | - # - images/a_dot_burr.jpeg | ||
| 58 | - # - images/a_dot_ham.jpeg | ||
| 59 | - | ||
| 60 | - # An image asset can refer to one or more resolution-specific "variants", see | ||
| 61 | - # https://flutter.dev/assets-and-images/#resolution-aware. | ||
| 62 | - | ||
| 63 | - # For details regarding adding assets from package dependencies, see | ||
| 64 | - # https://flutter.dev/assets-and-images/#from-packages | ||
| 65 | - | ||
| 66 | - # To add custom fonts to your application, add a fonts section here, | ||
| 67 | - # in this "flutter" section. Each entry in this list should have a | ||
| 68 | - # "family" key with the font family name, and a "fonts" key with a | ||
| 69 | - # list giving the asset and other descriptors for the font. For | ||
| 70 | - # example: | ||
| 71 | - # fonts: | ||
| 72 | - # - family: Schyler | ||
| 73 | - # fonts: | ||
| 74 | - # - asset: fonts/Schyler-Regular.ttf | ||
| 75 | - # - asset: fonts/Schyler-Italic.ttf | ||
| 76 | - # style: italic | ||
| 77 | - # - family: Trajan Pro | ||
| 78 | - # fonts: | ||
| 79 | - # - asset: fonts/TrajanPro.ttf | ||
| 80 | - # - asset: fonts/TrajanPro_Bold.ttf | ||
| 81 | - # weight: 700 | ||
| 82 | - # | ||
| 83 | - # For details regarding fonts from package dependencies, | ||
| 84 | - # see https://flutter.dev/custom-fonts/#from-packages |
-
Please register or login to post a comment