diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..f629351
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,28 @@
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "app",
+ "cwd": "app",
+ "request": "launch",
+ "type": "dart"
+ },
+ {
+ "name": "app (profile mode)",
+ "cwd": "app",
+ "request": "launch",
+ "type": "dart",
+ "flutterMode": "profile"
+ },
+ {
+ "name": "app (release mode)",
+ "cwd": "app",
+ "request": "launch",
+ "type": "dart",
+ "flutterMode": "release"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/app/android/app/build.gradle.kts b/app/android/app/build.gradle.kts
index b661ee0..dd7a73f 100644
--- a/app/android/app/build.gradle.kts
+++ b/app/android/app/build.gradle.kts
@@ -6,7 +6,7 @@ plugins {
}
android {
- namespace = "com.example.app"
+ namespace = "org.orbitronhd.dose"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
@@ -22,7 +22,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
- applicationId = "com.example.app"
+ applicationId = "org.orbitronhd.dose"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
diff --git a/app/android/app/src/main/kotlin/com/example/app/DoseWidgetProvider.kt b/app/android/app/src/main/kotlin/org/orbitronhd/dose/DoseWidgetProvider.kt
similarity index 97%
rename from app/android/app/src/main/kotlin/com/example/app/DoseWidgetProvider.kt
rename to app/android/app/src/main/kotlin/org/orbitronhd/dose/DoseWidgetProvider.kt
index f800b63..f9bde9b 100644
--- a/app/android/app/src/main/kotlin/com/example/app/DoseWidgetProvider.kt
+++ b/app/android/app/src/main/kotlin/org/orbitronhd/dose/DoseWidgetProvider.kt
@@ -1,4 +1,4 @@
-package com.example.app
+package org.orbitronhd.dose
import android.appwidget.AppWidgetManager
import android.content.Context
diff --git a/app/android/app/src/main/kotlin/com/example/app/MainActivity.kt b/app/android/app/src/main/kotlin/org/orbitronhd/dose/MainActivity.kt
similarity index 76%
rename from app/android/app/src/main/kotlin/com/example/app/MainActivity.kt
rename to app/android/app/src/main/kotlin/org/orbitronhd/dose/MainActivity.kt
index 4c832cd..79e755e 100644
--- a/app/android/app/src/main/kotlin/com/example/app/MainActivity.kt
+++ b/app/android/app/src/main/kotlin/org/orbitronhd/dose/MainActivity.kt
@@ -1,4 +1,4 @@
-package com.example.app
+package org.orbitronhd.dose
import io.flutter.embedding.android.FlutterActivity
diff --git a/app/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png b/app/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..ec0d817
Binary files /dev/null and b/app/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png differ
diff --git a/app/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png b/app/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..e6e7b1d
Binary files /dev/null and b/app/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png differ
diff --git a/app/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png b/app/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..34af135
Binary files /dev/null and b/app/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png differ
diff --git a/app/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png b/app/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..2b97a0d
Binary files /dev/null and b/app/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png differ
diff --git a/app/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png b/app/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..1679950
Binary files /dev/null and b/app/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..c79c58a
--- /dev/null
+++ b/app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
diff --git a/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
index db77bb4..78ec286 100644
Binary files a/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
index 17987b7..2e00cad 100644
Binary files a/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
index 09d4391..9c566fc 100644
Binary files a/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
index d5f1c8d..fcb4855 100644
Binary files a/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
index 4d6372e..8a7037f 100644
Binary files a/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/android/app/src/main/res/values/colors.xml b/app/android/app/src/main/res/values/colors.xml
index cfc4422..f366046 100644
--- a/app/android/app/src/main/res/values/colors.xml
+++ b/app/android/app/src/main/res/values/colors.xml
@@ -5,4 +5,5 @@
#EADDFF
#1D1B20
#49454F
-
+ #181A26
+
\ No newline at end of file
diff --git a/app/lib/assets/icon/foreground.png b/app/lib/assets/icon/foreground.png
new file mode 100644
index 0000000..fe07dae
Binary files /dev/null and b/app/lib/assets/icon/foreground.png differ
diff --git a/app/lib/services/widget_service.dart b/app/lib/services/widget_service.dart
index 7616f97..4e2e173 100644
--- a/app/lib/services/widget_service.dart
+++ b/app/lib/services/widget_service.dart
@@ -4,7 +4,7 @@ import 'package:dose/db/intake_log_db.dart' as log_db;
import 'package:dose/models/cabinet_model.dart';
class WidgetService {
- static const String appGroupId = 'com.example.app';
+ static const String appGroupId = 'org.orbitronhd.dose';
static const String iOSWidgetName = 'DoseWidget';
static const String androidWidgetName = 'DoseWidgetProvider';
diff --git a/app/pubspec.lock b/app/pubspec.lock
index b79afc0..179ca1f 100644
--- a/app/pubspec.lock
+++ b/app/pubspec.lock
@@ -9,6 +9,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "5.2.1"
+ archive:
+ dependency: transitive
+ description:
+ name: archive
+ sha256: a96e8b390886ee8abb49b7bd3ac8df6f451c621619f52a26e815fdcf568959ff
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.0.9"
args:
dependency: transitive
description:
@@ -41,6 +49,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.4.1"
+ checked_yaml:
+ dependency: transitive
+ description:
+ name: checked_yaml
+ sha256: "959525d3162f249993882720d52b7e0c833978df229be20702b33d48d91de70f"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.0.4"
+ cli_util:
+ dependency: transitive
+ description:
+ name: cli_util
+ sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.4.2"
clock:
dependency: transitive
description:
@@ -166,6 +190,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.7.1"
+ flutter_launcher_icons:
+ dependency: "direct main"
+ description:
+ name: flutter_launcher_icons
+ sha256: "10f13781741a2e3972126fae08393d3c4e01fa4cd7473326b94b72cf594195e7"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.14.4"
flutter_lints:
dependency: "direct dev"
description:
@@ -272,6 +304,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.1.2"
+ image:
+ dependency: transitive
+ description:
+ name: image
+ sha256: f9881ff4998044947ec38d098bc7c8316ae1186fa786eddffdb867b9bc94dfce
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.8.0"
json_annotation:
dependency: transitive
description:
@@ -512,6 +552,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.8"
+ posix:
+ dependency: transitive
+ description:
+ name: posix
+ sha256: "185ef7606574f789b40f289c233efa52e96dead518aed988e040a10737febb07"
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.5.0"
pub_semver:
dependency: transitive
description:
diff --git a/app/pubspec.yaml b/app/pubspec.yaml
index 9a3d0a8..5aad8ff 100644
--- a/app/pubspec.yaml
+++ b/app/pubspec.yaml
@@ -48,6 +48,7 @@ dependencies:
workmanager: ^0.9.0+3
share_plus: ^12.0.1
package_info_plus: ^9.0.0
+ flutter_launcher_icons: ^0.14.4
dev_dependencies:
flutter_test:
@@ -72,9 +73,8 @@ flutter:
uses-material-design: true
# To add assets to your application, add an assets section, like this:
- # assets:
- # - images/a_dot_burr.jpeg
- # - images/a_dot_ham.jpeg
+assets:
+ - lib/assets/icon/foreground
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/to/resolution-aware-images
@@ -101,3 +101,9 @@ flutter:
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/to/font-from-package
+flutter_launcher_icons:
+ android: true
+ ios: false
+ image_path: "lib/assets/icon/foreground.png"
+ adaptive_icon_background: "#181A26"
+ adaptive_icon_foreground: "lib/assets/icon/foreground.png"
\ No newline at end of file