update to 1.0.1, fix verbal grades (non-number grades)

This commit is contained in:
Odweta
2024-02-23 10:19:04 +01:00
parent 96c825680b
commit b98db64fe7
5 changed files with 9 additions and 5 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
<project version="4"> <project version="4">
<component name="deploymentTargetDropDown"> <component name="deploymentTargetDropDown">
<value> <value>
<entry key="Run"> <entry key="app">
<State> <State>
<targetSelectedWithDropDown> <targetSelectedWithDropDown>
<Target> <Target>
@@ -10,12 +10,12 @@
<deviceKey> <deviceKey>
<Key> <Key>
<type value="VIRTUAL_DEVICE_PATH" /> <type value="VIRTUAL_DEVICE_PATH" />
<value value="$USER_HOME$/.android/avd/Pixel_3a_API_34_extension_level_7_x86_64.avd" /> <value value="$USER_HOME$/.var/app/com.google.AndroidStudio/config/.android/avd/Pixel_3a_API_34_extension_level_7_x86_64.avd" />
</Key> </Key>
</deviceKey> </deviceKey>
</Target> </Target>
</targetSelectedWithDropDown> </targetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2024-02-16T14:53:01.463073218Z" /> <timeTargetWasSelectedWithDropDown value="2024-02-21T21:45:22.107764718Z" />
</State> </State>
</entry> </entry>
</value> </value>
+1 -1
View File
@@ -12,7 +12,7 @@ android {
minSdk = 28 minSdk = 28
targetSdk = 34 targetSdk = 34
versionCode = 1 versionCode = 1
versionName = "1.0" versionName = "1.0.1"
} }
buildTypes { buildTypes {
@@ -133,6 +133,10 @@ class Util {
for (mark in marks) { for (mark in marks) {
len += 1 len += 1
if (mark.grade !in "0123456789") {
marks.remove(mark)
continue
}
sum += (mark.grade.toFloat() * mark.weight.toFloat()) sum += (mark.grade.toFloat() * mark.weight.toFloat())
} }
+1 -1
View File
@@ -1,5 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins { plugins {
id("com.android.application") version "8.2.1" apply false id("com.android.application") version "8.2.2" apply false
id("org.jetbrains.kotlin.android") version "1.9.22" apply false id("org.jetbrains.kotlin.android") version "1.9.22" apply false
} }
BIN
View File
Binary file not shown.