From b72d1bd2aca9bc27327d7f22557b52e96ad9dcf3 Mon Sep 17 00:00:00 2001 From: oliexdev Date: Tue, 16 Jun 2020 11:21:55 +0200 Subject: [PATCH] added support for round launcher icons and update version to 2.3.0 --- android_app/app/build.gradle | 13 +- android_app/app/src/main/AndroidManifest.xml | 1 + .../res/drawable/ic_launcher_openscale.xml | 80 +++++++---- .../drawable/ic_launcher_openscale_light.xml | 121 ++++++++++------ .../drawable/ic_launcher_openscale_pro.xml | 135 +++++++++--------- .../ic_launcher_openscale_light_round.xml | 5 + .../ic_launcher_openscale_pro_round.xml | 5 + .../ic_launcher_openscale_round.xml | 5 + fastlane/openScale/en-GB/changelogs/49.txt | 9 ++ .../openScale_light/en-GB/changelogs/49.txt | 9 ++ .../openScale_pro/en-GB/changelogs/49.txt | 9 ++ 11 files changed, 254 insertions(+), 138 deletions(-) create mode 100644 android_app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_openscale_light_round.xml create mode 100644 android_app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_openscale_pro_round.xml create mode 100644 android_app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_openscale_round.xml create mode 100644 fastlane/openScale/en-GB/changelogs/49.txt create mode 100644 fastlane/openScale_light/en-GB/changelogs/49.txt create mode 100644 fastlane/openScale_pro/en-GB/changelogs/49.txt diff --git a/android_app/app/build.gradle b/android_app/app/build.gradle index fe5ebf45..9c8c955c 100644 --- a/android_app/app/build.gradle +++ b/android_app/app/build.gradle @@ -8,12 +8,13 @@ android { testApplicationId "com.health.openscale.test" minSdkVersion 21 targetSdkVersion 29 - versionCode 48 - versionName "2.2.0" + versionCode 49 + versionName "2.3.0" archivesBaseName = "openScale-$versionName" manifestPlaceholders = [ - appIcon: "@drawable/ic_launcher_openscale" + appIcon: "@drawable/ic_launcher_openscale", + appIconRound: "@mipmap/ic_launcher_openscale_round" ] javaCompileOptions { @@ -94,7 +95,8 @@ android { } light { manifestPlaceholders = [ - appIcon: "@drawable/ic_launcher_openscale_light" + appIcon: "@drawable/ic_launcher_openscale_light", + appIconRound: "@mipmap/ic_launcher_openscale_light_round" ] applicationIdSuffix ".light" versionNameSuffix "-light" @@ -104,7 +106,8 @@ android { } pro { manifestPlaceholders = [ - appIcon: "@drawable/ic_launcher_openscale_pro" + appIcon: "@drawable/ic_launcher_openscale_pro", + appIconRound: "@mipmap/ic_launcher_openscale_pro_round" ] applicationIdSuffix ".pro" versionNameSuffix "-pro" diff --git a/android_app/app/src/main/AndroidManifest.xml b/android_app/app/src/main/AndroidManifest.xml index 12ae3269..e4a7ed86 100644 --- a/android_app/app/src/main/AndroidManifest.xml +++ b/android_app/app/src/main/AndroidManifest.xml @@ -24,6 +24,7 @@ android:allowBackup="true" android:requestLegacyExternalStorage="true" android:icon="${appIcon}" + android:roundIcon="${appIconRound}" android:label="@string/app_name" android:name=".core.Application" android:theme="@style/AppTheme" > diff --git a/android_app/app/src/main/res/drawable/ic_launcher_openscale.xml b/android_app/app/src/main/res/drawable/ic_launcher_openscale.xml index 0717be29..0991fca5 100644 --- a/android_app/app/src/main/res/drawable/ic_launcher_openscale.xml +++ b/android_app/app/src/main/res/drawable/ic_launcher_openscale.xml @@ -1,28 +1,54 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android_app/app/src/main/res/drawable/ic_launcher_openscale_light.xml b/android_app/app/src/main/res/drawable/ic_launcher_openscale_light.xml index 4859c63f..736989ec 100644 --- a/android_app/app/src/main/res/drawable/ic_launcher_openscale_light.xml +++ b/android_app/app/src/main/res/drawable/ic_launcher_openscale_light.xml @@ -1,42 +1,81 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android_app/app/src/main/res/drawable/ic_launcher_openscale_pro.xml b/android_app/app/src/main/res/drawable/ic_launcher_openscale_pro.xml index 2c5d8067..c2b0a73d 100644 --- a/android_app/app/src/main/res/drawable/ic_launcher_openscale_pro.xml +++ b/android_app/app/src/main/res/drawable/ic_launcher_openscale_pro.xml @@ -1,68 +1,73 @@ - - - - - - - - - - - - - - - - - - - - - - - - + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android_app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_openscale_light_round.xml b/android_app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_openscale_light_round.xml new file mode 100644 index 00000000..dbf74ca5 --- /dev/null +++ b/android_app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_openscale_light_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android_app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_openscale_pro_round.xml b/android_app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_openscale_pro_round.xml new file mode 100644 index 00000000..afda2507 --- /dev/null +++ b/android_app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_openscale_pro_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android_app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_openscale_round.xml b/android_app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_openscale_round.xml new file mode 100644 index 00000000..78873763 --- /dev/null +++ b/android_app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_openscale_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/fastlane/openScale/en-GB/changelogs/49.txt b/fastlane/openScale/en-GB/changelogs/49.txt new file mode 100644 index 00000000..aea6776c --- /dev/null +++ b/fastlane/openScale/en-GB/changelogs/49.txt @@ -0,0 +1,9 @@ +- added support for Vigorun YG and Quanta QTBL10 scale +- added fastlane support +- integration of Androidx navigation component +- replaced obsoleted preferences with Androidx preferences +- replaced png file with svg files +- integration of DayNight theme +- use of live data to have always up-to-date measurements +- added support for round launcher icons +- fixed minor bug diff --git a/fastlane/openScale_light/en-GB/changelogs/49.txt b/fastlane/openScale_light/en-GB/changelogs/49.txt new file mode 100644 index 00000000..aea6776c --- /dev/null +++ b/fastlane/openScale_light/en-GB/changelogs/49.txt @@ -0,0 +1,9 @@ +- added support for Vigorun YG and Quanta QTBL10 scale +- added fastlane support +- integration of Androidx navigation component +- replaced obsoleted preferences with Androidx preferences +- replaced png file with svg files +- integration of DayNight theme +- use of live data to have always up-to-date measurements +- added support for round launcher icons +- fixed minor bug diff --git a/fastlane/openScale_pro/en-GB/changelogs/49.txt b/fastlane/openScale_pro/en-GB/changelogs/49.txt new file mode 100644 index 00000000..aea6776c --- /dev/null +++ b/fastlane/openScale_pro/en-GB/changelogs/49.txt @@ -0,0 +1,9 @@ +- added support for Vigorun YG and Quanta QTBL10 scale +- added fastlane support +- integration of Androidx navigation component +- replaced obsoleted preferences with Androidx preferences +- replaced png file with svg files +- integration of DayNight theme +- use of live data to have always up-to-date measurements +- added support for round launcher icons +- fixed minor bug