Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
a80bad43
Unverified
Commit
a80bad43
authored
Mar 18, 2022
by
Daniel Agbemava
Committed by
GitHub
Mar 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix `api` examples not running on android (#100140)
parent
136ff6da
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
2 deletions
+47
-2
build.gradle
examples/api/android/app/build.gradle
+5
-0
AndroidManifest.xml
examples/api/android/app/src/main/AndroidManifest.xml
+2
-0
launch_background.xml
...i/android/app/src/main/res/drawable/launch_background.xml
+16
-0
styles.xml
examples/api/android/app/src/main/res/values/styles.xml
+22
-0
build.gradle
examples/api/android/build.gradle
+2
-2
No files found.
examples/api/android/app/build.gradle
View file @
a80bad43
...
...
@@ -52,6 +52,7 @@ android {
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
multiDexEnabled
true
}
buildTypes
{
...
...
@@ -68,5 +69,9 @@ flutter {
}
dependencies
{
def
multidex_version
=
"2.0.1"
implementation
"androidx.multidex:multidex:$multidex_version"
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation
'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
implementation
'com.google.android.material:material:1.5.0'
}
examples/api/android/app/src/main/AndroidManifest.xml
View file @
a80bad43
...
...
@@ -6,9 +6,11 @@ found in the LICENSE file. -->
package=
"dev.flutter.flutter_api_samples"
>
<application
android:label=
"flutter_api_samples"
android:name=
"androidx.multidex.MultiDexApplication"
android:icon=
"@mipmap/ic_launcher"
>
<activity
android:name=
".MainActivity"
android:exported=
"true"
android:launchMode=
"singleTop"
android:theme=
"@style/LaunchTheme"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
...
...
examples/api/android/app/src/main/res/drawable/launch_background.xml
0 → 100644
View file @
a80bad43
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 The Flutter Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<!-- Modify this file to customize your launch splash screen -->
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@android:color/white"
/>
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
\ No newline at end of file
examples/api/android/app/src/main/res/values/styles.xml
0 → 100644
View file @
a80bad43
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 The Flutter Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style
name=
"LaunchTheme"
parent=
"@android:style/Theme.Light.NoTitleBar"
>
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item
name=
"android:windowBackground"
>
@drawable/launch_background
</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style
name=
"NormalTheme"
parent=
"@android:style/Theme.Light.NoTitleBar"
>
<item
name=
"android:windowBackground"
>
?android:colorBackground
</item>
</style>
</resources>
\ No newline at end of file
examples/api/android/build.gradle
View file @
a80bad43
...
...
@@ -3,14 +3,14 @@
// found in the LICENSE file.
buildscript
{
ext
.
kotlin_version
=
'1.
4.32
'
ext
.
kotlin_version
=
'1.
6.10
'
repositories
{
google
()
mavenCentral
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:4.1.
0
'
classpath
'com.android.tools.build:gradle:4.1.
3
'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment