diff --git a/app/build.gradle b/app/build.gradle index 7d86109..fda14d8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -15,7 +15,7 @@ android { } defaultConfig { - applicationId "ee.taltech.iti0213.sportsapp" + applicationId 'ee.taltech.kilpkonn.sportsapp' minSdkVersion 21 targetSdkVersion 30 versionCode 1 diff --git a/app/src/androidTest/java/ee/taltech/iti0213/sportsapp/ExampleInstrumentedTest.kt b/app/src/androidTest/java/ee/taltech/kilpkonn/sportsapp/ExampleInstrumentedTest.kt similarity index 94% rename from app/src/androidTest/java/ee/taltech/iti0213/sportsapp/ExampleInstrumentedTest.kt rename to app/src/androidTest/java/ee/taltech/kilpkonn/sportsapp/ExampleInstrumentedTest.kt index 21d1ef1..c0b49ee 100644 --- a/app/src/androidTest/java/ee/taltech/iti0213/sportsapp/ExampleInstrumentedTest.kt +++ b/app/src/androidTest/java/ee/taltech/kilpkonn/sportsapp/ExampleInstrumentedTest.kt @@ -1,4 +1,4 @@ -package ee.taltech.iti0213.sportsapp +package ee.taltech.kilpkonn.sportsapp import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 1400ddc..7a69e3f 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ + package="ee.taltech.kilpkonn.sportsapp"> @@ -59,7 +59,7 @@ Requires buildTools SDK >= 29 --> , val wayPoints: List, val checkpoints: List, val pauses: List): Parcelable { constructor(parcel: Parcel) : this( diff --git a/app/src/main/java/ee/taltech/iti0213/sportsapp/track/pracelable/loaction/Checkpoint.kt b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/track/pracelable/loaction/Checkpoint.kt similarity index 98% rename from app/src/main/java/ee/taltech/iti0213/sportsapp/track/pracelable/loaction/Checkpoint.kt rename to app/src/main/java/ee/taltech/kilpkonn/sportsapp/track/pracelable/loaction/Checkpoint.kt index a5bc8f1..3f26eb3 100644 --- a/app/src/main/java/ee/taltech/iti0213/sportsapp/track/pracelable/loaction/Checkpoint.kt +++ b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/track/pracelable/loaction/Checkpoint.kt @@ -1,4 +1,4 @@ -package ee.taltech.iti0213.sportsapp.track.pracelable.loaction +package ee.taltech.kilpkonn.sportsapp.track.pracelable.loaction import android.os.Parcel import android.os.Parcelable diff --git a/app/src/main/java/ee/taltech/iti0213/sportsapp/track/pracelable/loaction/TrackLocation.kt b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/track/pracelable/loaction/TrackLocation.kt similarity index 97% rename from app/src/main/java/ee/taltech/iti0213/sportsapp/track/pracelable/loaction/TrackLocation.kt rename to app/src/main/java/ee/taltech/kilpkonn/sportsapp/track/pracelable/loaction/TrackLocation.kt index 91265c7..668af6d 100644 --- a/app/src/main/java/ee/taltech/iti0213/sportsapp/track/pracelable/loaction/TrackLocation.kt +++ b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/track/pracelable/loaction/TrackLocation.kt @@ -1,11 +1,10 @@ -package ee.taltech.iti0213.sportsapp.track.pracelable.loaction +package ee.taltech.kilpkonn.sportsapp.track.pracelable.loaction import android.location.Location import android.os.Build import android.os.Parcel import android.os.Parcelable import java.io.Serializable -import java.sql.Timestamp class TrackLocation( val latitude: Double, diff --git a/app/src/main/java/ee/taltech/iti0213/sportsapp/track/pracelable/loaction/WayPoint.kt b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/track/pracelable/loaction/WayPoint.kt similarity index 96% rename from app/src/main/java/ee/taltech/iti0213/sportsapp/track/pracelable/loaction/WayPoint.kt rename to app/src/main/java/ee/taltech/kilpkonn/sportsapp/track/pracelable/loaction/WayPoint.kt index 9be49da..49818ae 100644 --- a/app/src/main/java/ee/taltech/iti0213/sportsapp/track/pracelable/loaction/WayPoint.kt +++ b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/track/pracelable/loaction/WayPoint.kt @@ -1,4 +1,4 @@ -package ee.taltech.iti0213.sportsapp.track.pracelable.loaction +package ee.taltech.kilpkonn.sportsapp.track.pracelable.loaction import android.os.Parcel import android.os.Parcelable diff --git a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/HashUtils.kt b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/HashUtils.kt similarity index 95% rename from app/src/main/java/ee/taltech/iti0213/sportsapp/util/HashUtils.kt rename to app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/HashUtils.kt index 71dcfe4..903582d 100644 --- a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/HashUtils.kt +++ b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/HashUtils.kt @@ -1,4 +1,4 @@ -package ee.taltech.iti0213.sportsapp.util +package ee.taltech.kilpkonn.sportsapp.util import java.security.MessageDigest import java.util.* diff --git a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/TrackUtils.kt b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/TrackUtils.kt similarity index 91% rename from app/src/main/java/ee/taltech/iti0213/sportsapp/util/TrackUtils.kt rename to app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/TrackUtils.kt index 5350a1e..03f284c 100644 --- a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/TrackUtils.kt +++ b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/TrackUtils.kt @@ -1,17 +1,17 @@ -package ee.taltech.iti0213.sportsapp.util +package ee.taltech.kilpkonn.sportsapp.util import android.content.Context import android.widget.Toast -import ee.taltech.iti0213.sportsapp.api.controller.TrackSyncController -import ee.taltech.iti0213.sportsapp.api.dto.GpsLocationDto -import ee.taltech.iti0213.sportsapp.api.dto.GpsSessionDto -import ee.taltech.iti0213.sportsapp.component.imageview.TrackTypeIcons -import ee.taltech.iti0213.sportsapp.db.repository.* -import ee.taltech.iti0213.sportsapp.track.Track -import ee.taltech.iti0213.sportsapp.track.TrackType -import ee.taltech.iti0213.sportsapp.track.pracelable.loaction.Checkpoint -import ee.taltech.iti0213.sportsapp.track.pracelable.loaction.TrackLocation -import ee.taltech.iti0213.sportsapp.track.pracelable.loaction.WayPoint +import ee.taltech.kilpkonn.sportsapp.api.controller.TrackSyncController +import ee.taltech.kilpkonn.sportsapp.api.dto.GpsLocationDto +import ee.taltech.kilpkonn.sportsapp.api.dto.GpsSessionDto +import ee.taltech.kilpkonn.sportsapp.component.imageview.TrackTypeIcons +import ee.taltech.kilpkonn.sportsapp.db.repository.* +import ee.taltech.kilpkonn.sportsapp.track.Track +import ee.taltech.kilpkonn.sportsapp.track.TrackType +import ee.taltech.kilpkonn.sportsapp.track.pracelable.loaction.Checkpoint +import ee.taltech.kilpkonn.sportsapp.track.pracelable.loaction.TrackLocation +import ee.taltech.kilpkonn.sportsapp.track.pracelable.loaction.WayPoint import io.jenetics.jpx.GPX import java.text.SimpleDateFormat diff --git a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/datatype/Vector2D.kt b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/datatype/Vector2D.kt similarity index 88% rename from app/src/main/java/ee/taltech/iti0213/sportsapp/util/datatype/Vector2D.kt rename to app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/datatype/Vector2D.kt index 3773f69..b4ab46d 100644 --- a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/datatype/Vector2D.kt +++ b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/datatype/Vector2D.kt @@ -1,4 +1,4 @@ -package ee.taltech.iti0213.sportsapp.util.datatype +package ee.taltech.kilpkonn.sportsapp.util.datatype import kotlin.math.sqrt diff --git a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/filter/IFilter.kt b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/filter/IFilter.kt similarity index 52% rename from app/src/main/java/ee/taltech/iti0213/sportsapp/util/filter/IFilter.kt rename to app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/filter/IFilter.kt index 2eccc2d..4d1044a 100644 --- a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/filter/IFilter.kt +++ b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/filter/IFilter.kt @@ -1,4 +1,4 @@ -package ee.taltech.iti0213.sportsapp.util.filter +package ee.taltech.kilpkonn.sportsapp.util.filter interface IFilter { diff --git a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/filter/KalmanTrackLocationFilter.kt b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/filter/KalmanTrackLocationFilter.kt similarity index 93% rename from app/src/main/java/ee/taltech/iti0213/sportsapp/util/filter/KalmanTrackLocationFilter.kt rename to app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/filter/KalmanTrackLocationFilter.kt index af10606..8703317 100644 --- a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/filter/KalmanTrackLocationFilter.kt +++ b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/filter/KalmanTrackLocationFilter.kt @@ -1,6 +1,6 @@ -package ee.taltech.iti0213.sportsapp.util.filter +package ee.taltech.kilpkonn.sportsapp.util.filter -import ee.taltech.iti0213.sportsapp.track.pracelable.loaction.TrackLocation +import ee.taltech.kilpkonn.sportsapp.track.pracelable.loaction.TrackLocation class KalmanTrackLocationFilter(private val qMetersPerSecond: Double) : IFilter { diff --git a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/filter/SimpleFilter.kt b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/filter/SimpleFilter.kt similarity index 88% rename from app/src/main/java/ee/taltech/iti0213/sportsapp/util/filter/SimpleFilter.kt rename to app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/filter/SimpleFilter.kt index 33c8b65..482ef01 100644 --- a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/filter/SimpleFilter.kt +++ b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/filter/SimpleFilter.kt @@ -1,4 +1,4 @@ -package ee.taltech.iti0213.sportsapp.util.filter +package ee.taltech.kilpkonn.sportsapp.util.filter class SimpleFilter(val length: Int): IFilter { diff --git a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/filter/SimpleFilter2D.kt b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/filter/SimpleFilter2D.kt similarity index 80% rename from app/src/main/java/ee/taltech/iti0213/sportsapp/util/filter/SimpleFilter2D.kt rename to app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/filter/SimpleFilter2D.kt index f59dcec..baa691f 100644 --- a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/filter/SimpleFilter2D.kt +++ b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/filter/SimpleFilter2D.kt @@ -1,6 +1,6 @@ -package ee.taltech.iti0213.sportsapp.util.filter +package ee.taltech.kilpkonn.sportsapp.util.filter -import ee.taltech.iti0213.sportsapp.util.datatype.Vector2D +import ee.taltech.kilpkonn.sportsapp.util.datatype.Vector2D class SimpleFilter2D(private val length: Int): IFilter { diff --git a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/serializer/TrackSerializer.kt b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/serializer/TrackSerializer.kt similarity index 96% rename from app/src/main/java/ee/taltech/iti0213/sportsapp/util/serializer/TrackSerializer.kt rename to app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/serializer/TrackSerializer.kt index 1053fb4..3ad4129 100644 --- a/app/src/main/java/ee/taltech/iti0213/sportsapp/util/serializer/TrackSerializer.kt +++ b/app/src/main/java/ee/taltech/kilpkonn/sportsapp/util/serializer/TrackSerializer.kt @@ -1,4 +1,4 @@ -package ee.taltech.iti0213.sportsapp.util.serializer +package ee.taltech.kilpkonn.sportsapp.util.serializer import android.content.Context import android.os.Environment diff --git a/app/src/main/res/layout/track_history_item.xml b/app/src/main/res/layout/track_history_item.xml index b70068a..447e3ea 100644 --- a/app/src/main/res/layout/track_history_item.xml +++ b/app/src/main/res/layout/track_history_item.xml @@ -15,7 +15,7 @@ android:background="@drawable/rounded_corners"> -