mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Add Fitness.apk with icon
This is just one of many steps in preparation for turning fitness into a play-store ready app. @abarth @collinjackson
This commit is contained in:
parent
9b5ffa7785
commit
881620fb2d
@ -7,6 +7,7 @@ group("example") {
|
||||
|
||||
deps = [
|
||||
"//sky/packages/sky/example/demo_launcher",
|
||||
"//sky/packages/sky/example/fitness",
|
||||
"//sky/packages/sky/example/game",
|
||||
"//sky/packages/sky/example/mine_digger",
|
||||
"//sky/packages/sky/example/rendering",
|
||||
|
||||
@ -4,3 +4,5 @@ and is public domain.
|
||||
|
||||
Icon resources were generated using:
|
||||
http://romannurik.github.io/AndroidAssetStudio/icons-launcher.html
|
||||
which produces art under CC 3.0:
|
||||
http://creativecommons.org/licenses/by/3.0/
|
||||
|
||||
@ -2,12 +2,17 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
assert(is_android)
|
||||
|
||||
import("//sky/build/sky_app.gni")
|
||||
|
||||
sky_app("fitness") {
|
||||
apk_name = "Fitness"
|
||||
main_dart = "lib/main.dart"
|
||||
manifest = "sky.yaml"
|
||||
|
||||
if (is_android) {
|
||||
apk_name = "Fitness"
|
||||
|
||||
deps = [
|
||||
"//sky/packages/sky/example/fitness/apk:resources",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,12 +4,12 @@
|
||||
found in the LICENSE file.
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.domokit.fitness">
|
||||
package="org.domokit.fitness" android:versionCode="1" android:versionName="0.0.1">
|
||||
|
||||
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21" />
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
|
||||
<application android:name="org.domokit.sky.shell.SkyApplication" android:label="Fitness">
|
||||
<application android:icon="@mipmap/ic_launcher" android:name="org.domokit.sky.shell.SkyApplication" android:label="Fitness">
|
||||
<activity android:name="org.domokit.sky.shell.SkyActivity"
|
||||
android:launchMode="singleTask"
|
||||
android:theme="@android:style/Theme.Black.NoTitleBar"
|
||||
|
||||
14
sky/packages/sky/example/fitness/apk/BUILD.gn
Normal file
14
sky/packages/sky/example/fitness/apk/BUILD.gn
Normal file
@ -0,0 +1,14 @@
|
||||
# Copyright 2015 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
assert(is_android)
|
||||
|
||||
import("//build/config/android/config.gni")
|
||||
import("//build/config/android/rules.gni")
|
||||
|
||||
|
||||
android_resources("resources") {
|
||||
resource_dirs = [ "res" ]
|
||||
android_manifest = "AndroidManifest.xml"
|
||||
}
|
||||
10
sky/packages/sky/example/fitness/apk/README.md
Normal file
10
sky/packages/sky/example/fitness/apk/README.md
Normal file
@ -0,0 +1,10 @@
|
||||
Icon image comes from:
|
||||
https://openclipart.org/detail/22309/apple-icon
|
||||
and is public domain.
|
||||
|
||||
Icon resources were generated using:
|
||||
http://romannurik.github.io/AndroidAssetStudio/icons-launcher.html
|
||||
with settings:
|
||||
http://romannurik.github.io/AndroidAssetStudio/icons-launcher.html#foreground.type=image&foreground.space.trim=1&foreground.space.pad=0&foreColor=607d8b%2C0&crop=0&backgroundShape=none&backColor=ffffff%2C100&effects=none
|
||||
which produces art under CC 3.0:
|
||||
http://creativecommons.org/licenses/by/3.0/
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@ -4,7 +4,7 @@
|
||||
found in the LICENSE file.
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.domokit.stocks">
|
||||
package="org.domokit.stocks" android:versionCode="1" android:versionName="0.0.1">
|
||||
|
||||
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21" />
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user