Skip to content

Commit 32215f5

Browse files
committed
V 0.1.2 Beta
1 parent 92eac57 commit 32215f5

24 files changed

Lines changed: 295 additions & 33 deletions

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ A 'Drink water!' notification like shown above will be displayed if you have not
3636
When all 5 glasses are empty, the notifications will no longer come (until you restart them), and a 'Congratulations' message will appear!
3737

3838
## Download
39-
[Download the APK](https://github.com/ktprograms/WaterTracker/blob/master/app/release/WaterTracker0.1.0beta.apk)
39+
[Download the APK](https://github.com/ktprograms/WaterTracker/blob/master/app/release/WaterTracker0.1.2beta.apk)
4040

4141
## Checksums (All versions)
4242
**V 0.1.0 Beta:**
@@ -51,6 +51,12 @@ When all 5 glasses are empty, the notifications will no longer come (until you r
5151
>
5252
>SHA1: 88fe561d635a015d816af3593e86df009e11285a
5353
54+
**V 0.1.2 Beta:**
55+
56+
>MD5: 3c9a796a192bf109beda90c28f1a1da1
57+
>
58+
>SHA1: 857f9f8babcacde37f9d7ccc118d9fd993c2f1c2
59+
5460
# Changelogs
5561
**V 0.1.0 Beta:**
5662

@@ -59,3 +65,7 @@ When all 5 glasses are empty, the notifications will no longer come (until you r
5965
**V 0.1.1 Beta:**
6066

6167
>Fixed bug where 'running' text would change to 'not running' when screen is locked then unlocked
68+
69+
**V 0.1.2 Beta:**
70+
71+
>Converted images to SVG

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ android {
3333
applicationId "com.ktprograms.watertracker"
3434
minSdkVersion 23
3535
targetSdkVersion 30
36-
versionCode 2
37-
versionName "0.1.1-beta"
36+
versionCode 3
37+
versionName "0.1.2-beta"
3838

3939
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4040
}
2.85 MB
Binary file not shown.

app/release/output-metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
{
1111
"type": "SINGLE",
1212
"filters": [],
13-
"versionCode": 2,
14-
"versionName": "0.1.1-beta",
13+
"versionCode": 3,
14+
"versionName": "0.1.2-beta",
1515
"outputFile": "app-release.apk"
1616
}
1717
]

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626

2727
<application
2828
android:allowBackup="true"
29-
android:icon="@drawable/water_drop"
29+
android:icon="@drawable/app_icon"
3030
android:label="@string/app_name"
31-
android:roundIcon="@drawable/water_drop"
31+
android:roundIcon="@drawable/app_icon"
3232
android:supportsRtl="true"
3333
android:theme="@style/Theme.WaterTracker"
3434
>

app/src/main/java/com/ktprograms/watertracker/AlarmReceiver.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class AlarmReceiver : BroadcastReceiver() {
3737
val pendingIntent =
3838
PendingIntent.getActivity(context, 0, i, PendingIntent.FLAG_UPDATE_CURRENT)
3939
val builder = NotificationCompat.Builder(context, "WATER_TRACKER")
40-
.setSmallIcon(R.drawable.water_drop)
40+
.setSmallIcon(R.drawable.app_icon)
4141
.setContentTitle("Drink water!!!")
4242
.setContentIntent(pendingIntent)
4343
.setAutoCancel(true)

app/src/main/java/com/ktprograms/watertracker/MainActivity.kt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ class MainActivity : AppCompatActivity() {
5353
// Initialize arrays
5454
private val glassAmounts = mutableListOf(0, 0, 0, 0, 0) // 0 -> full, 4 -> empty
5555
private val glassLevels = listOf(
56-
R.drawable.glass100,
57-
R.drawable.glass75,
58-
R.drawable.glass50,
59-
R.drawable.glass25,
60-
R.drawable.glass0
56+
R.drawable.glass_100,
57+
R.drawable.glass_75,
58+
R.drawable.glass_50,
59+
R.drawable.glass_25,
60+
R.drawable.glass_0
6161
)
6262

6363
// Declare other object instances
@@ -73,6 +73,9 @@ class MainActivity : AppCompatActivity() {
7373
override fun onCreate(savedInstanceState: Bundle?) {
7474
super.onCreate(savedInstanceState)
7575
setContentView(R.layout.activity_main)
76+
supportActionBar?.setDisplayShowHomeEnabled(true)
77+
supportActionBar?.setIcon(R.drawable.app_icon)
78+
supportActionBar?.setDisplayUseLogoEnabled(true)
7679

7780
// Initialize views
7881
initViews()
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!--
2+
~ GNU General Public License v3.0
3+
~
4+
~ Copyright (c) 2020 Toh Jeen Gie Keith
5+
~
6+
~
7+
~ This file is part of WaterTracker.
8+
~
9+
~ WaterTracker is free software: you can redistribute it and/or modify
10+
~ it under the terms of the GNU General Public License as published by
11+
~ the Free Software Foundation, either version 3 of the License, or
12+
~ (at your option) any later version.
13+
~
14+
~ WaterTracker is distributed in the hope that it will be useful,
15+
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
~ GNU General Public License for more details.
18+
~
19+
~ You should have received a copy of the GNU General Public License
20+
~ along with WaterTracker. If not, see <https://www.gnu.org/licenses/>.
21+
-->
22+
23+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
24+
android:width="80dp"
25+
android:height="80dp"
26+
android:viewportWidth="80.0"
27+
android:viewportHeight="80.0">
28+
29+
<path android:fillColor="#FF00BFFF"
30+
android:strokeWidth="0"
31+
android:strokeColor="#00000000"
32+
android:pathData="M0,0 L80,0 L80,80 L0,80 Z" />
33+
34+
<path android:fillColor="#FF0000FF"
35+
android:strokeWidth="5"
36+
android:strokeColor="#FF000000"
37+
android:pathData="M45,7 L25,42 C00,87 80,77 55,47 Q39,32 45,7 Z" />
38+
</vector>
-979 KB
Binary file not shown.
-979 KB
Binary file not shown.

0 commit comments

Comments
 (0)