Skip to content

Commit 1fac7ce

Browse files
committed
change some configuration for android in gradle file and manifest
1 parent afa4156 commit 1fac7ce

File tree

6 files changed

+30
-27
lines changed

6 files changed

+30
-27
lines changed

best_flutter_ui_templates/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 28
29+
compileSdkVersion 33
3030

3131
sourceSets {
3232
main.java.srcDirs += 'src/main/kotlin'
@@ -39,8 +39,8 @@ android {
3939
defaultConfig {
4040
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4141
applicationId "com.example.best_flutter_ui_templates"
42-
minSdkVersion 16
43-
targetSdkVersion 28
42+
minSdkVersion 21
43+
targetSdkVersion 32
4444
versionCode flutterVersionCode.toInteger()
4545
versionName flutterVersionName
4646
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
additional functionality it is fine to subclass or reimplement
77
FlutterApplication and put your custom class here. -->
88
<application
9-
android:name="io.flutter.app.FlutterApplication"
9+
android:name="${applicationName}"
1010
android:label="best_flutter_ui_templates"
1111
android:icon="@mipmap/ic_launcher">
1212
<activity
1313
android:name=".MainActivity"
1414
android:launchMode="singleTop"
15+
android:exported="true"
1516
android:theme="@style/LaunchTheme"
1617
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1718
android:hardwareAccelerated="true"
@@ -24,6 +25,7 @@
2425
android:name="io.flutter.embedding.android.NormalTheme"
2526
android:resource="@style/NormalTheme"
2627
/>
28+
2729
<!-- Displays an Android View that continues showing the launch screen
2830
Drawable until Flutter paints its first frame, then this splash
2931
screen fades out. A splash screen is useful to avoid any visual
@@ -43,5 +45,6 @@
4345
<meta-data
4446
android:name="flutterEmbedding"
4547
android:value="2" />
48+
4649
</application>
4750
</manifest>

best_flutter_ui_templates/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.50'
2+
ext.kotlin_version = '1.6.10'
33
repositories {
44
google()
55
jcenter()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.5.0'
9+
classpath 'com.android.tools.build:gradle:7.1.2'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

best_flutter_ui_templates/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip

best_flutter_ui_templates/lib/custom_drawer/drawer_user_controller.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class _DrawerUserControllerState extends State<DrawerUserController> with Ticker
6666
iconAnimationController?.animateTo(1.0, duration: const Duration(milliseconds: 0), curve: Curves.fastOutSlowIn);
6767
}
6868
});
69-
WidgetsBinding.instance?.addPostFrameCallback((_) => getInitState());
69+
WidgetsBinding.instance.addPostFrameCallback((_) => getInitState());
7070
super.initState();
7171
}
7272

best_flutter_ui_templates/pubspec.lock

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ packages:
1414
name: async
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "2.6.1"
17+
version: "2.8.2"
1818
boolean_selector:
1919
dependency: transitive
2020
description:
@@ -28,14 +28,14 @@ packages:
2828
name: characters
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "1.1.0"
31+
version: "1.2.0"
3232
charcode:
3333
dependency: transitive
3434
description:
3535
name: charcode
3636
url: "https://pub.dartlang.org"
3737
source: hosted
38-
version: "1.2.0"
38+
version: "1.3.1"
3939
clock:
4040
dependency: transitive
4141
description:
@@ -49,7 +49,7 @@ packages:
4949
name: collection
5050
url: "https://pub.dartlang.org"
5151
source: hosted
52-
version: "1.15.0"
52+
version: "1.16.0"
5353
cupertino_icons:
5454
dependency: "direct main"
5555
description:
@@ -63,7 +63,7 @@ packages:
6363
name: fake_async
6464
url: "https://pub.dartlang.org"
6565
source: hosted
66-
version: "1.2.0"
66+
version: "1.3.0"
6767
flutter:
6868
dependency: "direct main"
6969
description: flutter
@@ -101,21 +101,28 @@ packages:
101101
name: matcher
102102
url: "https://pub.dartlang.org"
103103
source: hosted
104-
version: "0.12.10"
104+
version: "0.12.11"
105+
material_color_utilities:
106+
dependency: transitive
107+
description:
108+
name: material_color_utilities
109+
url: "https://pub.dartlang.org"
110+
source: hosted
111+
version: "0.1.4"
105112
meta:
106113
dependency: transitive
107114
description:
108115
name: meta
109116
url: "https://pub.dartlang.org"
110117
source: hosted
111-
version: "1.3.0"
118+
version: "1.7.0"
112119
path:
113120
dependency: transitive
114121
description:
115122
name: path
116123
url: "https://pub.dartlang.org"
117124
source: hosted
118-
version: "1.8.0"
125+
version: "1.8.1"
119126
sky_engine:
120127
dependency: transitive
121128
description: flutter
@@ -127,7 +134,7 @@ packages:
127134
name: source_span
128135
url: "https://pub.dartlang.org"
129136
source: hosted
130-
version: "1.8.1"
137+
version: "1.8.2"
131138
stack_trace:
132139
dependency: transitive
133140
description:
@@ -162,21 +169,14 @@ packages:
162169
name: test_api
163170
url: "https://pub.dartlang.org"
164171
source: hosted
165-
version: "0.3.0"
166-
typed_data:
167-
dependency: transitive
168-
description:
169-
name: typed_data
170-
url: "https://pub.dartlang.org"
171-
source: hosted
172-
version: "1.3.0"
172+
version: "0.4.9"
173173
vector_math:
174174
dependency: transitive
175175
description:
176176
name: vector_math
177177
url: "https://pub.dartlang.org"
178178
source: hosted
179-
version: "2.1.0"
179+
version: "2.1.2"
180180
sdks:
181-
dart: ">=2.12.0 <3.0.0"
181+
dart: ">=2.17.0-0 <3.0.0"
182182
flutter: ">=1.12.13+hotfix.5"

0 commit comments

Comments
 (0)