Skip to content

Commit 97ed7d6

Browse files
authored
Recreate application (#132)
* Recreate application * Resolve actions/cache version * Resolves actions/upload-artifact versions * Adds flutter version * Fixes flutter version * Fixes dart version * Updates github-actions-analyze-dart * Fixes tests * Fixes upload artifact error Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run * Fixes download-artifact
1 parent e1cabbf commit 97ed7d6

File tree

105 files changed

+3509
-269
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+3509
-269
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
pubspec-file-path: code/pubspec.yaml
3737
- name: Cache Flutter
3838
id: flutter-cache
39-
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
39+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
4040
with:
4141
path: flutter
4242
key: ${{ env.cache-name }}-ubuntu-latest-${{ steps.get-flutter-version.outputs.version }}-${{ hashFiles('code/pubspec.lock') }}
@@ -67,7 +67,7 @@ jobs:
6767
working-directory: code
6868
- name: Analyze Flutter
6969
if: matrix.category == 'static'
70-
uses: zgosalvez/github-actions-analyze-dart@bc72307ba08e59e62f4d6e5ae311cc464dc0f296
70+
uses: zgosalvez/github-actions-analyze-dart@92375956021937d35938504eefb62b18bfebb154
7171
with:
7272
fail-on-warnings: true
7373
working-directory: code
@@ -77,9 +77,9 @@ jobs:
7777
working-directory: code
7878
- name: Upload code coverage to GitHub
7979
if: matrix.category != 'static'
80-
uses: actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074
80+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
8181
with:
82-
name: code-coverage
82+
name: code-coverage-${{ matrix.category }}
8383
path: code/coverage/lcov.${{ matrix.category }}.info
8484

8585
coverage_report:
@@ -90,10 +90,11 @@ jobs:
9090
- name: Clone the repository
9191
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
9292
- name: Download code coverage from GitHub
93-
uses: actions/download-artifact@3be87be14a055c47b01d3bd88f8fe02320a9bb60
93+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e
9494
with:
95-
name: code-coverage
9695
path: coverage
96+
name: code-coverage-*
97+
merge-multiple: true
9798
- name: Report code coverage
9899
uses: zgosalvez/github-actions-report-lcov@49af65b0586c274a625a41a2dc8aaaae7d00568b
99100
with:

.github/workflows/deployment.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
pubspec-file-path: code/pubspec.yaml
4646
- name: Cache Flutter
4747
id: flutter-cache
48-
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
48+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
4949
with:
5050
path: flutter
5151
key: ${{ env.cache-name }}-ubuntu-latest-${{ steps.get-flutter-version.outputs.version }}-${{ hashFiles('code/pubspec.lock') }}
@@ -78,7 +78,7 @@ jobs:
7878
# static testing
7979
- name: Analyze Flutter
8080
if: matrix.category == 'static'
81-
uses: zgosalvez/github-actions-analyze-dart@bc72307ba08e59e62f4d6e5ae311cc464dc0f296
81+
uses: zgosalvez/github-actions-analyze-dart@92375956021937d35938504eefb62b18bfebb154
8282
with:
8383
fail-on-warnings: true
8484
working-directory: code
@@ -123,7 +123,7 @@ jobs:
123123
pubspec-file-path: code/pubspec.yaml
124124
- name: Cache Flutter
125125
id: flutter-cache
126-
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
126+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
127127
with:
128128
path: flutter
129129
key: ${{ env.cache-name }}-${{ matrix.os }}-${{ steps.get-flutter-version.outputs.version }}-${{ hashFiles('code/pubspec.lock') }}
@@ -188,7 +188,7 @@ jobs:
188188
# apk/aab
189189
- name: Upload the artifacts — ${{ matrix.file }}-mapping.txt file
190190
if: matrix.file == 'apk' || matrix.file == 'aab'
191-
uses: actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074
191+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
192192
with:
193193
name: ${{ matrix.file }}-mapping.txt
194194
path: ${{ matrix.file }}-mapping.txt
@@ -217,7 +217,7 @@ jobs:
217217
run: zip --recurse-paths ${{ github.workspace }}/code/flutter-${{ matrix.file }}-symbols.zip .
218218
working-directory: code/${{ env.FLUTTER_DEBUG_INFO_PATH }}
219219
- name: Upload the artifacts — flutter-${{ matrix.file }}-symbols.zip file
220-
uses: actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074
220+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
221221
with:
222222
name: flutter-${{ matrix.file }}-symbols.zip
223223
path: code/flutter-${{ matrix.file }}-symbols.zip
@@ -231,7 +231,7 @@ jobs:
231231
env:
232232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
233233
- name: Upload the artifacts — ${{ matrix.file }} file
234-
uses: actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074
234+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
235235
with:
236236
name: app.${{ matrix.file }}
237237
path: app.${{ matrix.file }}

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
13+
migrate_working_dir/
1114

1215
# IntelliJ related
1316
*.iml
@@ -26,14 +29,10 @@
2629
.dart_tool/
2730
.flutter-plugins
2831
.flutter-plugins-dependencies
29-
.packages
3032
.pub-cache/
3133
.pub/
3234
/build/
3335

34-
# Web related
35-
lib/generated_plugin_registrant.dart
36-
3736
# Symbolication related
3837
app.*.symbols
3938

.metadata

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,42 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
8-
channel: stable
7+
revision: "c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e"
8+
channel: "master"
99

1010
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
17+
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
18+
- platform: android
19+
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
20+
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
21+
- platform: ios
22+
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
23+
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
24+
- platform: linux
25+
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
26+
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
27+
- platform: macos
28+
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
29+
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
30+
- platform: web
31+
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
32+
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
33+
- platform: windows
34+
create_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
35+
base_revision: c53fdbdf24daba4bc81ccc6d274ce13d7d34d05e
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

analysis_options.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
23+
rules:
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
27+
# Additional information about this file can be found at
28+
# https://dart.dev/guides/language/analysis-options

android/.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ gradle-wrapper.jar
55
/gradlew.bat
66
/local.properties
77
GeneratedPluginRegistrant.java
8+
.cxx/
89

910
# Remember to never publicly share your keystore.
10-
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
# See https://flutter.dev/to/reference-keystore
1112
key.properties
13+
**/*.keystore
14+
**/*.jks

android/app/build.gradle

Lines changed: 0 additions & 59 deletions
This file was deleted.

android/app/build.gradle.kts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id("com.android.application")
3+
id("kotlin-android")
4+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5+
id("dev.flutter.flutter-gradle-plugin")
6+
}
7+
8+
android {
9+
namespace = "com.example.github_actions_flutter_workflows"
10+
compileSdk = flutter.compileSdkVersion
11+
ndkVersion = flutter.ndkVersion
12+
13+
compileOptions {
14+
sourceCompatibility = JavaVersion.VERSION_11
15+
targetCompatibility = JavaVersion.VERSION_11
16+
}
17+
18+
kotlinOptions {
19+
jvmTarget = JavaVersion.VERSION_11.toString()
20+
}
21+
22+
defaultConfig {
23+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24+
applicationId = "com.example.github_actions_flutter_workflows"
25+
// You can update the following values to match your application needs.
26+
// For more information, see: https://flutter.dev/to/review-gradle-config.
27+
minSdk = flutter.minSdkVersion
28+
targetSdk = flutter.targetSdkVersion
29+
versionCode = flutter.versionCode
30+
versionName = flutter.versionName
31+
}
32+
33+
buildTypes {
34+
release {
35+
// TODO: Add your own signing config for the release build.
36+
// Signing with the debug keys for now, so `flutter run --release` works.
37+
signingConfig = signingConfigs.getByName("debug")
38+
}
39+
}
40+
}
41+
42+
flutter {
43+
source = "../.."
44+
}

android/app/src/debug/AndroidManifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.github_actions_flutter_workflows">
3-
<!-- Flutter needs it to communicate with the running application
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<!-- The INTERNET permission is required for development. Specifically,
3+
the Flutter tool needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->
66
<uses-permission android:name="android.permission.INTERNET"/>
Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.github_actions_flutter_workflows">
3-
<application
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<application
43
android:label="github_actions_flutter_workflows"
4+
android:name="${applicationName}"
55
android:icon="@mipmap/ic_launcher">
66
<activity
77
android:name=".MainActivity"
8+
android:exported="true"
89
android:launchMode="singleTop"
10+
android:taskAffinity=""
911
android:theme="@style/LaunchTheme"
1012
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1113
android:hardwareAccelerated="true"
@@ -18,15 +20,6 @@
1820
android:name="io.flutter.embedding.android.NormalTheme"
1921
android:resource="@style/NormalTheme"
2022
/>
21-
<!-- Displays an Android View that continues showing the launch screen
22-
Drawable until Flutter paints its first frame, then this splash
23-
screen fades out. A splash screen is useful to avoid any visual
24-
gap between the end of Android's launch screen and the painting of
25-
Flutter's first frame. -->
26-
<meta-data
27-
android:name="io.flutter.embedding.android.SplashScreenDrawable"
28-
android:resource="@drawable/launch_background"
29-
/>
3023
<intent-filter>
3124
<action android:name="android.intent.action.MAIN"/>
3225
<category android:name="android.intent.category.LAUNCHER"/>
@@ -38,4 +31,15 @@
3831
android:name="flutterEmbedding"
3932
android:value="2" />
4033
</application>
34+
<!-- Required to query activities that can process text, see:
35+
https://developer.android.com/training/package-visibility and
36+
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
37+
38+
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
39+
<queries>
40+
<intent>
41+
<action android:name="android.intent.action.PROCESS_TEXT"/>
42+
<data android:mimeType="text/plain"/>
43+
</intent>
44+
</queries>
4145
</manifest>

0 commit comments

Comments
 (0)