Commit dd2652ae authored by hizurk1's avatar hizurk1
Browse files

Update launcher icons and implement player state retrieval

No related merge requests found
Showing with 44 additions and 16 deletions
+44 -16
......@@ -8,19 +8,22 @@
"name": "c04",
"request": "launch",
"type": "dart",
"flutterMode": "debug"
"flutterMode": "debug",
"program": "lib/main.dart"
},
{
"name": "c04 (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
"flutterMode": "profile",
"program": "lib/main.dart"
},
{
"name": "c04 (release mode)",
"request": "launch",
"type": "dart",
"flutterMode": "release"
"flutterMode": "release",
"program": "lib/main.dart"
}
]
}
\ No newline at end of file
import java.util.Properties
import java.io.FileInputStream
plugins {
id("com.android.application")
......@@ -7,21 +8,15 @@ plugins {
id("dev.flutter.flutter-gradle-plugin")
}
val localProperties = Properties()
val localPropertiesFile = rootProject.file("local.properties")
if (localPropertiesFile.exists()) {
localPropertiesFile.reader(Charsets.UTF_8).use { reader ->
localProperties.load(reader)
}
val keystoreProperties = Properties()
val keystorePropertiesFile = rootProject.file("key.properties")
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
}
val flutterVersionCode = localProperties.getProperty("flutter.versionCode") ?: "1"
val flutterVersionName = localProperties.getProperty("flutter.versionName") ?: "1.0"
android {
namespace = "com.example.c04"
compileSdk = 34
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
......@@ -39,17 +34,41 @@ android {
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = 23
targetSdk = 34
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
signingConfigs {
create("release") {
keyAlias = keystoreProperties["keyAlias"] as String
keyPassword = keystoreProperties["keyPassword"] as String
storeFile = keystoreProperties["storeFile"]?.let { file(it) }
storePassword = keystoreProperties["storePassword"] as String
}
}
buildTypes {
release {
debug {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
}
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now,
// so `flutter run --release` works.
signingConfig = signingConfigs.getByName("release")
applicationVariants.all {
val variant = this
variant.outputs.all {
val output = this as com.android.build.gradle.internal.api.BaseVariantOutputImpl
val outputFileName = "rtr_c04_v${variant.versionName}.${variant.versionCode}.apk"
output.outputFileName = outputFileName
}
}
}
}
}
......
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
</adaptive-icon>
\ No newline at end of file
android/app/src/main/res/mipmap-hdpi/ic_launcher.png

544 Bytes | W: 0px | H: 0px

android/app/src/main/res/mipmap-hdpi/ic_launcher.png

4.04 KB | W: 0px | H: 0px

android/app/src/main/res/mipmap-hdpi/ic_launcher.png
android/app/src/main/res/mipmap-hdpi/ic_launcher.png
android/app/src/main/res/mipmap-hdpi/ic_launcher.png
android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin
android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png

852 Bytes

android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png

3.05 KB

android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png

3.05 KB

android/app/src/main/res/mipmap-mdpi/ic_launcher.png

442 Bytes | W: 0px | H: 0px

android/app/src/main/res/mipmap-mdpi/ic_launcher.png

2.63 KB | W: 0px | H: 0px

android/app/src/main/res/mipmap-mdpi/ic_launcher.png
android/app/src/main/res/mipmap-mdpi/ic_launcher.png
android/app/src/main/res/mipmap-mdpi/ic_launcher.png
android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin
android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png

459 Bytes

android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png

1.73 KB

android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png

1.73 KB

android/app/src/main/res/mipmap-xhdpi/ic_launcher.png

721 Bytes | W: 0px | H: 0px

android/app/src/main/res/mipmap-xhdpi/ic_launcher.png

5.77 KB | W: 0px | H: 0px

android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin
android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png

1.29 KB

android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png

3.92 KB

android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png

3.92 KB

android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png

1.01 KB | W: 0px | H: 0px

android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png

9.31 KB | W: 0px | H: 0px

android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png

2.88 KB

android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png

7.15 KB

android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png

7.15 KB

android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png

1.41 KB | W: 0px | H: 0px

android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png

13.4 KB | W: 0px | H: 0px

android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment