Skip to content

Commit 2d74d32

Browse files
committed
update all dart dependencies and example app
* regenerate example app * fix all linting errors * remove unsupported linter/analyzer config
1 parent 6bc30d0 commit 2d74d32

141 files changed

Lines changed: 3785 additions & 698 deletions

File tree

Some content is hidden

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

analysis_options.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ analyzer:
55
missing_required_param: error
66
missing_return: error
77
todo: ignore
8-
sdk_version_async_exported_from_core: ignore
98
exclude:
109
- '**.g.dart'
1110
- '**.mocks.dart'
@@ -17,7 +16,6 @@ linter:
1716
rules:
1817
unawaited_futures: true
1918
always_declare_return_types: true
20-
unsafe_html: true
2119
use_full_hex_values_for_flutter_colors: true
2220
prefer_final_in_for_each: true
2321
prefer_final_fields: true

bin/src/model/dto/extra_dependency.dart

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,14 @@ class ExtraDependency extends Dependency {
1010
final String? repositoryUrl;
1111

1212
const ExtraDependency({
13-
required String name,
14-
required String? version,
13+
required super.name,
14+
required super.version,
1515
required this.homepageUrl,
1616
required this.repositoryUrl,
1717
required this.licenseUrl,
18-
required bool isDevDependency,
19-
required bool isPartOfFlutterSdk,
18+
required super.isDevDependency,
19+
required super.isPartOfFlutterSdk,
2020
}) : super(
21-
name: name,
22-
version: version,
23-
isDevDependency: isDevDependency,
24-
isPartOfFlutterSdk: isPartOfFlutterSdk,
2521
isLocalDependency: false,
2622
isGitDependency: false,
2723
);

example/.metadata

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

66
version:
7-
revision: 5ab9e70727d858def3a586db7fb98ee580352957
8-
channel: beta
7+
revision: "ea121f8859e4b13e47a8f845e4586164519588bc"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
17+
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
18+
- platform: android
19+
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
20+
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
21+
- platform: ios
22+
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
23+
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
24+
- platform: linux
25+
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
26+
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
27+
- platform: macos
28+
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
29+
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
30+
- platform: web
31+
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
32+
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
33+
- platform: windows
34+
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
35+
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
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'

example/analysis_options.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ analyzer:
55
missing_required_param: error
66
missing_return: error
77
todo: ignore
8-
sdk_version_async_exported_from_core: ignore
98
exclude:
109
- '**.g.dart'
1110
- '**.mocks.dart'
@@ -17,7 +16,6 @@ linter:
1716
rules:
1817
unawaited_futures: true
1918
always_declare_return_types: true
20-
unsafe_html: true
2119
use_full_hex_values_for_flutter_colors: true
2220
prefer_final_in_for_each: true
2321
prefer_final_fields: true

example/android/.gitignore

100755100644
Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
*.iml
2-
*.class
3-
.gradle
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
46
/local.properties
5-
/.idea/workspace.xml
6-
/.idea/libraries
7-
.DS_Store
8-
/build
9-
/captures
107
GeneratedPluginRegistrant.java
8+
.cxx/
9+
10+
# Remember to never publicly share your keystore.
11+
# See https://flutter.dev/to/reference-keystore
12+
key.properties
13+
**/*.keystore
14+
**/*.jks

example/android/app/build.gradle

Lines changed: 0 additions & 61 deletions
This file was deleted.
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.license_generator_example"
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.license_generator_example"
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+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>

example/android/app/src/main/AndroidManifest.xml

100755100644
Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.example">
3-
4-
<!-- The INTERNET permission is required for development. Specifically,
5-
flutter needs it to communicate with the running application
6-
to allow setting breakpoints, to provide hot reload, etc.
7-
-->
8-
<uses-permission android:name="android.permission.INTERNET" />
9-
10-
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
11-
calls FlutterMain.startInitialization(this); in its onCreate method.
12-
In most cases you can leave this as-is, but you if you want to provide
13-
additional functionality it is fine to subclass or reimplement
14-
FlutterApplication and put your custom class here. -->
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
152
<application
16-
android:icon="@mipmap/ic_launcher"
17-
android:label="example">
3+
android:label="license_generator_example"
4+
android:name="${applicationName}"
5+
android:icon="@mipmap/ic_launcher">
186
<activity
197
android:name=".MainActivity"
20-
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
21-
android:hardwareAccelerated="true"
8+
android:exported="true"
229
android:launchMode="singleTop"
10+
android:taskAffinity=""
2311
android:theme="@style/LaunchTheme"
12+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
13+
android:hardwareAccelerated="true"
2414
android:windowSoftInputMode="adjustResize">
15+
<!-- Specifies an Android theme to apply to this Activity as soon as
16+
the Android process has started. This theme is visible to the user
17+
while the Flutter UI initializes. After that, this theme continues
18+
to determine the Window background behind the Flutter UI. -->
2519
<meta-data
26-
android:name="io.flutter.embedding.android.SplashScreenDrawable"
27-
android:resource="@drawable/launch_background" />
28-
29-
<meta-data
30-
android:name="io.flutter.embedding.android.NormalTheme"
31-
android:resource="@style/NormalTheme" />
32-
20+
android:name="io.flutter.embedding.android.NormalTheme"
21+
android:resource="@style/NormalTheme"
22+
/>
3323
<intent-filter>
34-
<action android:name="android.intent.action.MAIN" />
35-
<category android:name="android.intent.category.LAUNCHER" />
24+
<action android:name="android.intent.action.MAIN"/>
25+
<category android:name="android.intent.category.LAUNCHER"/>
3626
</intent-filter>
3727
</activity>
38-
28+
<!-- Don't delete the meta-data below.
29+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
3930
<meta-data
4031
android:name="flutterEmbedding"
4132
android:value="2" />
4233
</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>
4345
</manifest>

example/android/app/src/main/java/com/example/example/MainActivity.java

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

0 commit comments

Comments
 (0)