Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
pubspec-file-path: code/pubspec.yaml
- name: Cache Flutter
id: flutter-cache
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
with:
path: flutter
key: ${{ env.cache-name }}-ubuntu-latest-${{ steps.get-flutter-version.outputs.version }}-${{ hashFiles('code/pubspec.lock') }}
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
working-directory: code
- name: Analyze Flutter
if: matrix.category == 'static'
uses: zgosalvez/github-actions-analyze-dart@bc72307ba08e59e62f4d6e5ae311cc464dc0f296
uses: zgosalvez/github-actions-analyze-dart@92375956021937d35938504eefb62b18bfebb154
with:
fail-on-warnings: true
working-directory: code
Expand All @@ -77,9 +77,9 @@ jobs:
working-directory: code
- name: Upload code coverage to GitHub
if: matrix.category != 'static'
uses: actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: code-coverage
name: code-coverage-${{ matrix.category }}
path: code/coverage/lcov.${{ matrix.category }}.info

coverage_report:
Expand All @@ -90,10 +90,11 @@ jobs:
- name: Clone the repository
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- name: Download code coverage from GitHub
uses: actions/download-artifact@3be87be14a055c47b01d3bd88f8fe02320a9bb60
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e
with:
name: code-coverage
path: coverage
name: code-coverage-*
merge-multiple: true
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@49af65b0586c274a625a41a2dc8aaaae7d00568b
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
pubspec-file-path: code/pubspec.yaml
- name: Cache Flutter
id: flutter-cache
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
with:
path: flutter
key: ${{ env.cache-name }}-ubuntu-latest-${{ steps.get-flutter-version.outputs.version }}-${{ hashFiles('code/pubspec.lock') }}
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
# static testing
- name: Analyze Flutter
if: matrix.category == 'static'
uses: zgosalvez/github-actions-analyze-dart@bc72307ba08e59e62f4d6e5ae311cc464dc0f296
uses: zgosalvez/github-actions-analyze-dart@92375956021937d35938504eefb62b18bfebb154
with:
fail-on-warnings: true
working-directory: code
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
pubspec-file-path: code/pubspec.yaml
- name: Cache Flutter
id: flutter-cache
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
with:
path: flutter
key: ${{ env.cache-name }}-${{ matrix.os }}-${{ steps.get-flutter-version.outputs.version }}-${{ hashFiles('code/pubspec.lock') }}
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
# apk/aab
- name: Upload the artifacts — ${{ matrix.file }}-mapping.txt file
if: matrix.file == 'apk' || matrix.file == 'aab'
uses: actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: ${{ matrix.file }}-mapping.txt
path: ${{ matrix.file }}-mapping.txt
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
run: zip --recurse-paths ${{ github.workspace }}/code/flutter-${{ matrix.file }}-symbols.zip .
working-directory: code/${{ env.FLUTTER_DEBUG_INFO_PATH }}
- name: Upload the artifacts — flutter-${{ matrix.file }}-symbols.zip file
uses: actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: flutter-${{ matrix.file }}-symbols.zip
path: code/flutter-${{ matrix.file }}-symbols.zip
Expand All @@ -231,7 +231,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload the artifacts — ${{ matrix.file }} file
uses: actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: app.${{ matrix.file }}
path: app.${{ matrix.file }}
Expand Down
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
*.iml
Expand All @@ -26,14 +29,10 @@
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols

Expand Down
39 changes: 37 additions & 2 deletions .metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,42 @@
# This file should be version controlled and should not be manually edited.

version:
revision: c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
channel: stable
revision: "c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e"
channel: "master"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
- platform: android
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
- platform: ios
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
- platform: linux
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
- platform: macos
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
- platform: web
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
- platform: windows
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
28 changes: 28 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml

linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
5 changes: 4 additions & 1 deletion android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ gradle-wrapper.jar
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
.cxx/

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks
59 changes: 0 additions & 59 deletions android/app/build.gradle

This file was deleted.

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

android {
namespace = "com.example.github_actions_flutter_workflows"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion

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

kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.github_actions_flutter_workflows"
// 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 = flutter.targetSdkVersion
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")
}
}
}

flutter {
source = "../.."
}
6 changes: 3 additions & 3 deletions android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.github_actions_flutter_workflows">
<!-- Flutter needs it to communicate with the running application
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
Expand Down
28 changes: 16 additions & 12 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.github_actions_flutter_workflows">
<application
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="github_actions_flutter_workflows"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
Expand All @@ -18,15 +20,6 @@
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
gap between the end of Android's launch screen and the painting of
Flutter's first frame. -->
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
Expand All @@ -38,4 +31,15 @@
android:name="flutterEmbedding"
android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.

In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
</queries>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ package com.example.github_actions_flutter_workflows

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {
}
class MainActivity : FlutterActivity()
4 changes: 2 additions & 2 deletions android/app/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.

This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
Expand Down
Loading
Loading