Skip to content

Commit f9db730

Browse files
committed
Add Android app icon and PNG screenshots for README
1 parent 4cf8583 commit f9db730

22 files changed

Lines changed: 39 additions & 12 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Hello World Counters is one of my first Hello World apps made with Flutter.
2828

2929
## Screenshots
3030

31-
<img width="240" src="repo-assets/helloworldcounters-android-phone-screenshot-red-counter.png" alt="Hello World Counters - Android phone screenshot - Red counter"> <img width="240" src="repo-assets/helloworldcounters-android-phone-screenshot-orange-counter.png" alt="Hello World Counters - Android phone screenshot - Orange counter"> <img width="240" src="repo-assets/helloworldcounters-android-phone-screenshot-app-drawer.png" alt="Hello World Counters - Android phone screenshot - App drawer">
31+
<img width="240" src="repo-assets/helloworldcounters-android-phone-screenshot-blue-counter.png" alt="Hello World Counters - Android phone screenshot - Blue counter"> <img width="240" src="repo-assets/helloworldcounters-android-phone-screenshot-yellow-counter.png" alt="Hello World Counters - Android phone screenshot - Yellow counter"> <img width="240" src="repo-assets/helloworldcounters-android-phone-screenshot-app-drawer.png" alt="Hello World Counters - Android phone screenshot - App drawer">
3232

3333
## Try Hello World Counters
3434

android/app/build.gradle.kts

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
1+
import java.util.Properties
2+
import java.io.FileInputStream
3+
14
plugins {
25
id("com.android.application")
36
id("kotlin-android")
47
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
58
id("dev.flutter.flutter-gradle-plugin")
69
}
710

11+
val keystoreProperties = Properties()
12+
val keystorePropertiesFile = rootProject.file("key.properties")
13+
if (keystorePropertiesFile.exists()) {
14+
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
15+
}
16+
817
android {
918
namespace = "com.appliberated.hello_world_counters"
1019
compileSdk = flutter.compileSdkVersion
11-
ndkVersion = flutter.ndkVersion
20+
// ndkVersion = flutter.ndkVersion
21+
ndkVersion = "27.0.12077973"
1222

1323
compileOptions {
1424
sourceCompatibility = JavaVersion.VERSION_11
@@ -20,7 +30,6 @@ android {
2030
}
2131

2232
defaultConfig {
23-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
2433
applicationId = "com.appliberated.hello_world_counters"
2534
// You can update the following values to match your application needs.
2635
// For more information, see: https://flutter.dev/to/review-gradle-config.
@@ -30,11 +39,18 @@ android {
3039
versionName = flutter.versionName
3140
}
3241

42+
signingConfigs {
43+
create("release") {
44+
keyAlias = keystoreProperties["keyAlias"] as String
45+
keyPassword = keystoreProperties["keyPassword"] as String
46+
storeFile = keystoreProperties["storeFile"]?.let { file(it) }
47+
storePassword = keystoreProperties["storePassword"] as String
48+
}
49+
}
50+
3351
buildTypes {
3452
release {
35-
// TODO: Add your own signing config for the release build.
36-
// Signing with the debug keys for now, so `flutter run --release` works.
37-
signingConfig = signingConfigs.getByName("debug")
53+
signingConfig = signingConfigs.getByName("release")
3854
}
3955
}
4056
}

android/app/src/main/AndroidManifest.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<application
3-
android:label="hello_world_counters"
3+
android:label="Hello World Counters"
44
android:name="${applicationName}"
55
android:icon="@mipmap/ic_launcher">
66
<activity
@@ -31,15 +31,21 @@
3131
android:name="flutterEmbedding"
3232
android:value="2" />
3333
</application>
34-
<!-- Required to query activities that can process text, see:
35-
https://developer.android.com/training/package-visibility and
36-
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
37-
38-
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
3934
<queries>
35+
<!-- Required to query activities that can process text, see:
36+
https://developer.android.com/training/package-visibility and
37+
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
38+
39+
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
4040
<intent>
4141
<action android:name="android.intent.action.PROCESS_TEXT"/>
4242
<data android:mimeType="text/plain"/>
4343
</intent>
44+
45+
<!-- App opens https URLs -->
46+
<intent>
47+
<action android:name="android.intent.action.VIEW" />
48+
<data android:scheme="https" />
49+
</intent>
4450
</queries>
4551
</manifest>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@mipmap/ic_launcher_adaptive_back"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_adaptive_fore"/>
5+
</adaptive-icon>
6.62 KB
Loading
7.06 KB
Loading
8.8 KB
Loading
3.61 KB
Loading
4.18 KB
Loading
5.17 KB
Loading

0 commit comments

Comments
 (0)