File tree 11 files changed +26
-28
lines changed
android/src/main/java/qiuxiang/android_window
kotlin/com/example/example
11 files changed +26
-28
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ apply plugin: 'kotlin-android'
26
26
apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
27
28
28
android {
29
- compileSdkVersion 31
29
+ compileSdkVersion flutter. compileSdkVersion
30
+ ndkVersion flutter. ndkVersion
30
31
31
32
compileOptions {
32
33
sourceCompatibility JavaVersion . VERSION_1_8
@@ -43,9 +44,11 @@ android {
43
44
44
45
defaultConfig {
45
46
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
46
- applicationId " qiuxiang.android_window_example"
47
- minSdkVersion 16
48
- targetSdkVersion 31
47
+ applicationId " com.example.example"
48
+ // You can update the following values to match your application needs.
49
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50
+ minSdkVersion 19
51
+ targetSdkVersion flutter. targetSdkVersion
49
52
versionCode flutterVersionCode. toInteger()
50
53
versionName flutterVersionName
51
54
}
Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
- package =" qiuxiang.android_window_example" >
3
- <!-- Flutter needs it to communicate with the running application
2
+ package =" com.example.example" >
3
+ <!-- The INTERNET permission is required for development. Specifically,
4
+ the Flutter tool needs it to communicate with the running application
4
5
to allow setting breakpoints, to provide hot reload, etc.
5
6
-->
6
7
<uses-permission android : name =" android.permission.INTERNET" />
Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
- package =" qiuxiang.android_window_example" >
3
- <application
2
+ package =" com.example.example" >
3
+ <application
4
+ android : label =" example"
4
5
android : name =" .MainApplication"
5
- android : label =" android_window_example"
6
6
android : icon =" @mipmap/ic_launcher" >
7
7
<activity
8
8
android : name =" .MainActivity"
20
20
android : name =" io.flutter.embedding.android.NormalTheme"
21
21
android : resource =" @style/NormalTheme"
22
22
/>
23
- <!-- Displays an Android View that continues showing the launch screen
24
- Drawable until Flutter paints its first frame, then this splash
25
- screen fades out. A splash screen is useful to avoid any visual
26
- gap between the end of Android's launch screen and the painting of
27
- Flutter's first frame. -->
28
- <meta-data
29
- android : name =" io.flutter.embedding.android.SplashScreenDrawable"
30
- android : resource =" @drawable/launch_background"
31
- />
32
23
<intent-filter >
33
24
<action android : name =" android.intent.action.MAIN" />
34
25
<category android : name =" android.intent.category.LAUNCHER" />
Original file line number Diff line number Diff line change 1
- package qiuxiang.android_window_example
1
+ package com.example.example
2
2
3
3
class MainActivity : qiuxiang.android_window.AndroidWindowActivity ()
Original file line number Diff line number Diff line change 1
- package qiuxiang.android_window_example
1
+ package com.example.example
2
2
3
3
class MainApplication : qiuxiang.android_window.AndroidWindowApplication ()
Original file line number Diff line number Diff line change 3
3
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
4
4
<style name =" LaunchTheme" parent =" @android:style/Theme.Black.NoTitleBar" >
5
5
<!-- Show a splash screen on the activity. Automatically removed when
6
- Flutter draws its first frame -->
6
+ the Flutter engine draws its first frame -->
7
7
<item name =" android:windowBackground" >@drawable/launch_background</item >
8
8
</style >
9
9
<!-- Theme applied to the Android Window as soon as the process has started.
10
10
This theme determines the color of the Android Window while your
11
11
Flutter UI initializes, as well as behind your Flutter UI while its
12
12
running.
13
-
13
+
14
14
This Theme is only used starting with V2 of Flutter's Android embedding. -->
15
15
<style name =" NormalTheme" parent =" @android:style/Theme.Black.NoTitleBar" >
16
16
<item name =" android:windowBackground" >?android:colorBackground</item >
Original file line number Diff line number Diff line change 3
3
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
4
4
<style name =" LaunchTheme" parent =" @android:style/Theme.Light.NoTitleBar" >
5
5
<!-- Show a splash screen on the activity. Automatically removed when
6
- Flutter draws its first frame -->
6
+ the Flutter engine draws its first frame -->
7
7
<item name =" android:windowBackground" >@drawable/launch_background</item >
8
8
</style >
9
9
<!-- Theme applied to the Android Window as soon as the process has started.
10
10
This theme determines the color of the Android Window while your
11
11
Flutter UI initializes, as well as behind your Flutter UI while its
12
12
running.
13
-
13
+
14
14
This Theme is only used starting with V2 of Flutter's Android embedding. -->
15
15
<style name =" NormalTheme" parent =" @android:style/Theme.Light.NoTitleBar" >
16
16
<item name =" android:windowBackground" >?android:colorBackground</item >
Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
- package =" qiuxiang.android_window_example" >
3
- <!-- Flutter needs it to communicate with the running application
2
+ package =" com.example.example" >
3
+ <!-- The INTERNET permission is required for development. Specifically,
4
+ the Flutter tool needs it to communicate with the running application
4
5
to allow setting breakpoints, to provide hot reload, etc.
5
6
-->
6
7
<uses-permission android : name =" android.permission.INTERNET" />
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ buildscript {
6
6
}
7
7
8
8
dependencies {
9
- classpath ' com.android.tools.build:gradle:4.1.0 '
9
+ classpath ' com.android.tools.build:gradle:7.0.2 '
10
10
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
11
11
}
12
12
}
@@ -21,6 +21,8 @@ allprojects {
21
21
rootProject. buildDir = ' ../build'
22
22
subprojects {
23
23
project. buildDir = " ${ rootProject.buildDir} /${ project.name} "
24
+ }
25
+ subprojects {
24
26
project. evaluationDependsOn(' :app' )
25
27
}
26
28
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.7-bin .zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.4-all .zip
You can’t perform that action at this time.
0 commit comments