Skip to content

Commit e64f340

Browse files
committed
v2.5.0
1 parent 1e89f48 commit e64f340

15 files changed

+103
-20
lines changed

.metadata

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: f4abaa0735eba4dfd8f33f73363911d63931fe03
7+
revision: 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e
88
channel: stable
99

1010
project_type: app

analysis_options.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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
17+
# https://dart-lang.github.io/linter/lints/index.html.
18+
#
19+
# Instead of disabling a lint rule for the entire project in the
20+
# section below, it can also be suppressed for a single line of code
21+
# or a specific dart file by using the `// ignore: name_of_lint` and
22+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23+
# producing the lint.
24+
rules:
25+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
26+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27+
28+
# Additional information about this file can be found at
29+
# https://dart.dev/guides/language/analysis-options

android/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ GeneratedPluginRegistrant.java
99
# Remember to never publicly share your keystore.
1010
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
1111
key.properties
12+
**/*.keystore
13+
**/*.jks

android/app/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2828
android {
2929
compileSdkVersion 30
3030

31+
compileOptions {
32+
sourceCompatibility JavaVersion.VERSION_1_8
33+
targetCompatibility JavaVersion.VERSION_1_8
34+
}
35+
36+
kotlinOptions {
37+
jvmTarget = '1.8'
38+
}
39+
3140
sourceSets {
3241
main.java.srcDirs += 'src/main/kotlin'
3342
}

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ buildscript {
22
ext.kotlin_version = '1.3.50'
33
repositories {
44
google()
5-
jcenter()
5+
mavenCentral()
66
}
77

88
dependencies {
@@ -14,7 +14,7 @@ buildscript {
1414
allprojects {
1515
repositories {
1616
google()
17-
jcenter()
17+
mavenCentral()
1818
}
1919
}
2020

ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>8.0</string>
24+
<string>9.0</string>
2525
</dict>
2626
</plist>

ios/Flutter/flutter_export_environment.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#!/bin/sh
22
# This is a generated file; do not edit or check into version control.
3-
export "FLUTTER_ROOT=C:\Users\G1Joshi\fvm\versions\2.2.3"
3+
export "FLUTTER_ROOT=C:\Users\G1Joshi\fvm\versions\2.5.0"
44
export "FLUTTER_APPLICATION_PATH=D:\Coding\Project\Personal\flutter_evolution"
55
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
66
export "FLUTTER_TARGET=lib\main.dart"
77
export "FLUTTER_BUILD_DIR=build"
8-
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
98
export "FLUTTER_BUILD_NAME=1.0.0"
109
export "FLUTTER_BUILD_NUMBER=1"
1110
export "DART_OBFUSCATION=false"

lib/main.dart

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import 'package:flutter/material.dart';
22

33
void main() {
4-
runApp(MyApp());
4+
runApp(const MyApp());
55
}
66

77
class MyApp extends StatelessWidget {
8+
const MyApp({Key? key}) : super(key: key);
9+
810
// This widget is the root of your application.
911
@override
1012
Widget build(BuildContext context) {
@@ -22,13 +24,13 @@ class MyApp extends StatelessWidget {
2224
// is not restarted.
2325
primarySwatch: Colors.blue,
2426
),
25-
home: MyHomePage(title: 'Flutter Demo Home Page'),
27+
home: const MyHomePage(title: 'Flutter Demo Home Page'),
2628
);
2729
}
2830
}
2931

3032
class MyHomePage extends StatefulWidget {
31-
MyHomePage({Key? key, required this.title}) : super(key: key);
33+
const MyHomePage({Key? key, required this.title}) : super(key: key);
3234

3335
// This widget is the home page of your application. It is stateful, meaning
3436
// that it has a State object (defined below) that contains fields that affect
@@ -42,7 +44,7 @@ class MyHomePage extends StatefulWidget {
4244
final String title;
4345

4446
@override
45-
_MyHomePageState createState() => _MyHomePageState();
47+
State<MyHomePage> createState() => _MyHomePageState();
4648
}
4749

4850
class _MyHomePageState extends State<MyHomePage> {
@@ -93,7 +95,7 @@ class _MyHomePageState extends State<MyHomePage> {
9395
// horizontal).
9496
mainAxisAlignment: MainAxisAlignment.center,
9597
children: <Widget>[
96-
Text(
98+
const Text(
9799
'You have pushed the button this many times:',
98100
),
99101
Text(
@@ -106,7 +108,7 @@ class _MyHomePageState extends State<MyHomePage> {
106108
floatingActionButton: FloatingActionButton(
107109
onPressed: _incrementCounter,
108110
tooltip: 'Increment',
109-
child: Icon(Icons.add),
111+
child: const Icon(Icons.add),
110112
), // This trailing comma makes auto-formatting nicer for build methods.
111113
);
112114
}

pubspec.lock

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.6.1"
10+
version: "2.8.1"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
@@ -28,7 +28,7 @@ packages:
2828
name: charcode
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "1.2.0"
31+
version: "1.3.1"
3232
clock:
3333
dependency: transitive
3434
description:
@@ -62,11 +62,25 @@ packages:
6262
description: flutter
6363
source: sdk
6464
version: "0.0.0"
65+
flutter_lints:
66+
dependency: "direct dev"
67+
description:
68+
name: flutter_lints
69+
url: "https://pub.dartlang.org"
70+
source: hosted
71+
version: "1.0.4"
6572
flutter_test:
6673
dependency: "direct dev"
6774
description: flutter
6875
source: sdk
6976
version: "0.0.0"
77+
lints:
78+
dependency: transitive
79+
description:
80+
name: lints
81+
url: "https://pub.dartlang.org"
82+
source: hosted
83+
version: "1.0.1"
7084
matcher:
7185
dependency: transitive
7286
description:
@@ -80,7 +94,7 @@ packages:
8094
name: meta
8195
url: "https://pub.dartlang.org"
8296
source: hosted
83-
version: "1.3.0"
97+
version: "1.7.0"
8498
path:
8599
dependency: transitive
86100
description:
@@ -134,7 +148,7 @@ packages:
134148
name: test_api
135149
url: "https://pub.dartlang.org"
136150
source: hosted
137-
version: "0.3.0"
151+
version: "0.4.2"
138152
typed_data:
139153
dependency: transitive
140154
description:

pubspec.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: flutter_evolution
22
description: A new Flutter project.
33

44
# The following line prevents the package from being accidentally published to
5-
# pub.dev using `pub publish`. This is preferred for private packages.
5+
# pub.dev using `flutter pub publish`. This is preferred for private packages.
66
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
77

88
# The following defines the version and build number for your application.
@@ -20,6 +20,12 @@ version: 1.0.0+1
2020
environment:
2121
sdk: ">=2.12.0 <3.0.0"
2222

23+
# Dependencies specify other packages that your package needs in order to work.
24+
# To automatically upgrade your package dependencies to the latest versions
25+
# consider running `flutter pub upgrade --major-versions`. Alternatively,
26+
# dependencies can be manually updated by changing the version numbers below to
27+
# the latest version available on pub.dev. To see which dependencies have newer
28+
# versions available, run `flutter pub outdated`.
2329
dependencies:
2430
flutter:
2531
sdk: flutter
@@ -33,6 +39,13 @@ dev_dependencies:
3339
flutter_test:
3440
sdk: flutter
3541

42+
# The "flutter_lints" package below contains a set of recommended lints to
43+
# encourage good coding practices. The lint set provided by the package is
44+
# activated in the `analysis_options.yaml` file located at the root of your
45+
# package. See that file for information about deactivating specific lint
46+
# rules and activating additional ones.
47+
flutter_lints: ^1.0.0
48+
3649
# For information on the generic Dart part of this file, see the
3750
# following page: https://dart.dev/tools/pub/pubspec
3851

0 commit comments

Comments
 (0)