Satellite tracker and pass predictor for Android, inspired by Gpredict
Kotlin amsatcelestrakgpsham-radiohamlibhamradiokotlinnasaradiosatellitesatellite-datasatellite-positionsatellite-predictionsatellitessatnogssdrspacespacexstarlink
Dependencies update, minor code cleanup
Arty Bishop27156b5070f0
diff --git a/app/build.gradle b/app/build.gradleindex 932822a2..3feb86e6 100644--- a/app/build.gradle+++ b/app/build.gradle@@ -1,7 +1,7 @@plugins {id "com.android.application"- id "kotlin-android"- id "kotlin-kapt"+ id "org.jetbrains.kotlin.android"+ id "org.jetbrains.kotlin.kapt"id "dagger.hilt.android.plugin"}@@ -11,11 +11,13 @@ android {defaultConfig {applicationId "com.rtbishop.look4sat"- minSdkVersion 21- resConfigs 'en,ru'- targetSdkVersion 31+ minSdk 21+ targetSdk 31versionCode 260versionName "2.6.0"+ resConfigs "en,ru"++ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"kapt {arguments {@@ -25,7 +27,6 @@ android {}}}-buildTypes {release {postprocessing {@@ -39,8 +40,8 @@ android {buildFeatures {viewBinding true}- hilt {- enableAggregatingTask true+ testOptions {+ animationsDisabled true}compileOptions {sourceCompatibility JavaVersion.VERSION_11@@ -49,30 +50,33 @@ android {kotlinOptions {jvmTarget = JavaVersion.VERSION_11.toString()}- packagingOptions {- resources.excludes += "DebugProbesKt.bin"- }}dependencies {- implementation project(':core')- implementation "androidx.core:core-splashscreen:$splash_screen_version"- implementation "androidx.constraintlayout:constraintlayout:$constraint_layout_version"- implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"- implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"- implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"- implementation "androidx.room:room-runtime:$room_version"- implementation "androidx.room:room-ktx:$room_version"- kapt "androidx.room:room-compiler:$room_version"+ implementation project(":core")+ implementation "androidx.core:core-ktx:1.7.0"+ implementation "androidx.core:core-splashscreen:1.0.0-beta01"+ implementation "androidx.appcompat:appcompat:1.4.1"+ implementation "com.google.android.material:material:1.5.0"+ implementation "androidx.constraintlayout:constraintlayout:2.1.3"+ implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"+ implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.4.0"+ implementation "androidx.navigation:navigation-fragment-ktx:2.4.0"+ implementation "androidx.navigation:navigation-ui-ktx:2.4.0"+ implementation "androidx.room:room-runtime:2.4.1"+ implementation "androidx.room:room-ktx:2.4.1"+ kapt "androidx.room:room-compiler:2.4.1"- implementation "com.google.dagger:hilt-android:$hilt_version"- kapt "com.google.dagger:hilt-android-compiler:$hilt_version"+ implementation "com.google.dagger:hilt-android:2.40.5"+ kapt "com.google.dagger:hilt-compiler:2.40.5"- implementation "org.osmdroid:osmdroid-android:$osmdroid_version"- implementation "com.jakewharton.timber:timber:$timber_version"+ implementation "org.osmdroid:osmdroid-android:6.1.11"- testImplementation "junit:junit:$junit_version"- testImplementation "org.mockito:mockito-android:$mockito_version"- testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"- debugImplementation "com.squareup.leakcanary:leakcanary-android:$leak_canary_version"-}+ debugImplementation "com.squareup.leakcanary:leakcanary-android:2.8.1"+ testImplementation "junit:junit:4.13.2"+ testImplementation "org.mockito:mockito-core:4.3.1"+ testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.0"+ androidTestImplementation "androidx.test.ext:junit:1.1.3"+ androidTestImplementation "org.mockito:mockito-android:4.3.1"+ androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"+}\ No newline at end of filediff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xmlindex 916af975..cc5eac27 100644--- a/app/src/main/AndroidManifest.xml+++ b/app/src/main/AndroidManifest.xml@@ -9,8 +9,8 @@<applicationandroid:name=".presentation.Look4SatApplication"android:icon="@mipmap/ic_launcher"- android:roundIcon="@mipmap/ic_launcher_round"android:label="@string/app_name"+ android:roundIcon="@mipmap/ic_launcher_round"android:theme="@style/Theme.Look4Sat.Main"><activityandroid:name=".presentation.MainActivity"diff --git a/app/src/main/java/com/rtbishop/look4sat/presentation/Extensions.kt b/app/src/main/java/com/rtbishop/look4sat/presentation/Extensions.ktindex 06b2c170..eba7f440 100644--- a/app/src/main/java/com/rtbishop/look4sat/presentation/Extensions.kt+++ b/app/src/main/java/com/rtbishop/look4sat/presentation/Extensions.kt@@ -33,6 +33,8 @@ import androidx.navigation.NavControllerimport androidx.navigation.NavOptionsimport androidx.navigation.Navigatorimport androidx.navigation.fragment.findNavController+import java.net.InetSocketAddress+import java.net.Socketimport java.security.MessageDigestimport java.util.concurrent.TimeUnitimport java.util.regex.Pattern@@ -140,3 +142,17 @@ fun AlertDialog.Builder.setEditText(editText: EditText): AlertDialog.Builder {setView(superContainer)return this}++fun ping(hostname: String, port: Int): Int {+ val start = System.currentTimeMillis()+ val socket = Socket()+ try {+ socket.connect(InetSocketAddress(hostname, port), 6000)+ socket.close()+ } catch (exception: Exception) {+ exception.printStackTrace()+ println("Failed to ping: $hostname")+ return Int.MAX_VALUE+ }+ return (System.currentTimeMillis() - start).toInt()+}diff --git a/app/src/main/java/com/rtbishop/look4sat/presentation/Look4SatApplication.kt b/app/src/main/java/com/rtbishop/look4sat/presentation/Look4SatApplication.ktindex cc6ded8c..f24d4002 100644--- a/app/src/main/java/com/rtbishop/look4sat/presentation/Look4SatApplication.kt+++ b/app/src/main/java/com/rtbishop/look4sat/presentation/Look4SatApplication.kt@@ -18,15 +18,7 @@package com.rtbishop.look4sat.presentationimport android.app.Application-import com.rtbishop.look4sat.BuildConfigimport dagger.hilt.android.HiltAndroidApp-import timber.log.Timber@HiltAndroidApp-class Look4SatApplication : Application() {-- override fun onCreate() {- super.onCreate()- if (BuildConfig.DEBUG) Timber.plant(Timber.DebugTree())- }-}+class Look4SatApplication : Application()\ No newline at end of filediff --git a/app/src/main/java/com/rtbishop/look4sat/presentation/MainActivity.kt b/app/src/main/java/com/rtbishop/look4sat/presentation/MainActivity.ktindex fac74185..80066242 100644--- a/app/src/main/java/com/rtbishop/look4sat/presentation/MainActivity.kt+++ b/app/src/main/java/com/rtbishop/look4sat/presentation/MainActivity.kt@@ -34,8 +34,8 @@ class MainActivity : AppCompatActivity() {@SuppressLint("SourceLockedOrientationActivity")override fun onCreate(savedInstanceState: Bundle?) {requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT- super.onCreate(savedInstanceState)installSplashScreen()+ super.onCreate(savedInstanceState)setContentView(ActivityMainBinding.inflate(layoutInflater).root)mainViewModel.calculatePasses()}diff --git a/app/src/main/java/com/rtbishop/look4sat/presentation/mapScreen/MapFragment.kt b/app/src/main/java/com/rtbishop/look4sat/presentation/mapScreen/MapFragment.ktindex 643d7ca8..b71d0b04 100644--- a/app/src/main/java/com/rtbishop/look4sat/presentation/mapScreen/MapFragment.kt+++ b/app/src/main/java/com/rtbishop/look4sat/presentation/mapScreen/MapFragment.kt@@ -42,7 +42,6 @@ import org.osmdroid.views.overlay.FolderOverlayimport org.osmdroid.views.overlay.Markerimport org.osmdroid.views.overlay.Polygonimport org.osmdroid.views.overlay.Polyline-import timber.log.Timberimport javax.inject.Inject@AndroidEntryPoint@@ -128,7 +127,7 @@ class MapFragment : Fragment(R.layout.fragment_map) {try {position = GeoPoint(it.value.latitude, it.value.longitude)} catch (exception: IllegalArgumentException) {- Timber.d(exception)+ println(exception.stackTraceToString())}setOnMarkerClickListener { _, _ ->viewModel.selectSatellite(it.key)@@ -152,7 +151,7 @@ class MapFragment : Fragment(R.layout.fragment_map) {outlinePaint.set(trackPaint)trackOverlay.add(this)} catch (exception: IllegalArgumentException) {- Timber.d(exception)+ println(exception.stackTraceToString())}}}@@ -167,7 +166,7 @@ class MapFragment : Fragment(R.layout.fragment_map) {try {this.points = footprintPoints} catch (exception: IllegalArgumentException) {- Timber.d(exception)+ println(exception.stackTraceToString())}}binding.mapView.overlays[2] = footprintOverlaydiff --git a/app/src/main/res/drawable-nodpi/worldmap_dark.webp b/app/src/main/res/drawable-nodpi/worldmap_dark.webpnew file mode 100644index 00000000..9f19b71bBinary files /dev/null and b/app/src/main/res/drawable-nodpi/worldmap_dark.webp differdiff --git a/app/src/main/res/drawable/ic_splash.xml b/app/src/main/res/drawable/ic_splash.xmlnew file mode 100644index 00000000..ced383bb--- /dev/null+++ b/app/src/main/res/drawable/ic_splash.xml@@ -0,0 +1,13 @@+<vector xmlns:android="http://schemas.android.com/apk/res/android"+ android:width="192dp"+ android:height="200dp"+ android:viewportWidth="210"+ android:viewportHeight="220">+ <group+ android:translateX="52"+ android:translateY="44">+ <path+ android:fillColor="@color/themeAccent"+ android:pathData="m104.005,111.936q0.504,0 0.958,-0.063 0.467,-0.076 0.87,-0.176l0,1.674q-0.202,0.101 -0.555,0.214 -0.34,0.113 -0.807,0.201 -0.454,0.101 -1.034,0.164 -0.58,0.063 -1.261,0.063 -0.87,0 -1.576,-0.214 -0.706,-0.201 -1.198,-0.68 -0.492,-0.491 -0.757,-1.259 -0.265,-0.78 -0.265,-1.913l0,-8.244l-1.942,0l0,-1.322q0.832,0 1.488,-0.327 0.656,-0.327 1.047,-0.755 0.794,-0.831 1.185,-2.555l2.144,0l0,3.197l3.304,0l0,1.762l-3.304,0l0,7.98q0,1.171 0.391,1.712 0.404,0.541 1.311,0.541zM85.595,109.922q0,1.108 0.353,1.661 0.353,0.554 1.11,0.554 0.555,0 0.996,-0.227 0.454,-0.239 0.769,-0.667 0.328,-0.428 0.492,-1.032 0.177,-0.617 0.177,-1.372l0,-1.938l-1.16,0.076q-0.769,0.038 -1.299,0.252 -0.53,0.201 -0.845,0.566 -0.315,0.365 -0.454,0.894 -0.139,0.529 -0.139,1.233zM87.89,101.188q-0.492,0 -0.832,0.214 -0.328,0.201 -0.53,0.579 -0.202,0.365 -0.29,0.881 -0.076,0.503 -0.076,1.108 -1.74,0 -2.623,-0.39 -0.87,-0.39 -0.87,-1.334 0,-0.705 0.416,-1.208 0.429,-0.503 1.147,-0.818 0.731,-0.315 1.69,-0.453 0.971,-0.151 2.068,-0.151 1.362,0 2.371,0.239 1.021,0.227 1.69,0.743 0.681,0.516 1.021,1.359 0.34,0.831 0.34,2.039l0,6.57q0,0.529 0.076,0.881 0.088,0.352 0.265,0.566 0.177,0.201 0.479,0.289 0.303,0.088 0.731,0.088l0.101,0l0,1.372l-4.804,0l-0.542,-1.775l-0.227,0q-0.429,0.516 -0.807,0.906 -0.378,0.378 -0.807,0.629 -0.429,0.252 -0.971,0.365 -0.53,0.126 -1.261,0.126 -0.857,0 -1.601,-0.252 -0.731,-0.252 -1.286,-0.768 -0.542,-0.529 -0.857,-1.309 -0.315,-0.793 -0.315,-1.863 0,-2.102 1.438,-3.109 1.45,-1.007 4.35,-1.095l2.118,-0.076l0,-1.422q0,-0.642 -0.05,-1.183 -0.05,-0.541 -0.214,-0.931 -0.164,-0.39 -0.492,-0.604 -0.315,-0.214 -0.845,-0.214zM72.115,114.013q-1.74,0 -2.9,-0.327 -1.16,-0.327 -1.866,-0.843 -0.694,-0.516 -0.996,-1.158 -0.29,-0.642 -0.29,-1.271 0,-0.667 0.24,-1.12 0.252,-0.453 0.656,-0.743 0.416,-0.289 0.933,-0.415 0.53,-0.126 1.097,-0.126 0,1.108 0.265,1.951 0.265,0.831 0.731,1.397 0.467,0.554 1.11,0.843 0.656,0.277 1.425,0.277 0.757,0 1.349,-0.214 0.593,-0.214 1.009,-0.592 0.416,-0.378 0.63,-0.881 0.214,-0.516 0.214,-1.108 0,-0.654 -0.265,-1.158 -0.265,-0.516 -0.807,-0.944 -0.53,-0.441 -1.349,-0.831 -0.807,-0.403 -1.891,-0.856 -1.349,-0.554 -2.282,-1.133 -0.921,-0.592 -1.488,-1.271 -0.567,-0.68 -0.82,-1.473 -0.24,-0.793 -0.24,-1.737 0,-1.183 0.479,-2.14 0.479,-0.957 1.324,-1.636 0.845,-0.68 2.005,-1.045 1.16,-0.365 2.522,-0.365 1.425,0 2.459,0.239 1.034,0.227 1.702,0.629 0.681,0.403 1.009,0.957 0.328,0.541 0.328,1.171 0,0.453 -0.202,0.843 -0.189,0.39 -0.593,0.68 -0.391,0.289 -0.996,0.453 -0.593,0.164 -1.387,0.164 0,-0.541 -0.151,-1.158 -0.139,-0.629 -0.467,-1.158 -0.328,-0.541 -0.857,-0.894 -0.517,-0.352 -1.261,-0.352 -0.517,0 -0.984,0.151 -0.467,0.151 -0.82,0.453 -0.34,0.302 -0.542,0.755 -0.202,0.441 -0.202,1.019 0,0.541 0.177,1.019 0.177,0.478 0.643,0.944 0.479,0.453 1.299,0.919 0.832,0.453 2.144,0.982 1.324,0.541 2.257,1.108 0.933,0.566 1.526,1.221 0.605,0.642 0.87,1.422 0.277,0.768 0.277,1.712 0,1.246 -0.492,2.291 -0.492,1.032 -1.412,1.775 -0.921,0.743 -2.219,1.158 -1.286,0.415 -2.9,0.415zM62.115,108.966l0,1.573q0,0.604 0.164,0.969 0.177,0.365 0.454,0.566 0.29,0.189 0.681,0.252 0.391,0.063 0.82,0.063l0.328,0l0,1.372l-9.054,0l0,-1.372l0.719,0q0.441,0 0.82,-0.063 0.391,-0.063 0.668,-0.252 0.29,-0.201 0.454,-0.566 0.177,-0.365 0.177,-0.969l0,-1.573l-7.15,0l0,-1.573l7.326,-12.032l3.594,0l0,11.906l2.686,0l0,1.699zM58.345,102.761q0,-1.133 0.038,-2.442 0.038,-1.309 0.139,-2.517 -0.126,0.302 -0.404,0.831 -0.277,0.529 -0.593,1.095 -0.315,0.554 -0.605,1.057 -0.29,0.491 -0.441,0.73l-3.48,5.752l5.347,0zM50.855,113.761l-0.366,0q-1.412,0 -2.371,-0.063 -0.958,-0.063 -1.652,-0.289 -0.694,-0.227 -1.198,-0.68 -0.504,-0.466 -1.009,-1.259l-2.295,-3.612 -1.034,0.768l0,2.089q0,0.554 0.177,0.881 0.189,0.327 0.454,0.503 0.277,0.176 0.605,0.239 0.328,0.05 0.605,0.05l0.303,0l0,1.372L34.866,113.761l0,-1.372l0.303,0q0.29,0 0.605,-0.05 0.328,-0.063 0.593,-0.239 0.277,-0.176 0.454,-0.503 0.189,-0.327 0.189,-0.881l0,-13.606q0,-0.516 -0.189,-0.818 -0.177,-0.315 -0.454,-0.478 -0.277,-0.176 -0.605,-0.227 -0.315,-0.05 -0.593,-0.05l-0.303,0l0,-1.359l6.065,0l0,9.943q0,0.352 -0.025,0.818 -0.013,0.453 -0.038,0.868 -0.038,0.491 -0.063,0.994l3.253,-3.637q0.429,-0.478 0.555,-0.755 0.139,-0.289 0.139,-0.478 0,-0.327 -0.353,-0.503 -0.34,-0.189 -0.984,-0.189l0,-1.296l6.507,0l0,1.296q-0.895,0 -1.765,0.529 -0.857,0.516 -1.879,1.661l-1.627,1.85 3.43,5.11q0.681,1.019 1.374,1.51 0.694,0.491 1.311,0.491l0.088,0zM33.517,106.31q0,1.007 -0.29,1.901 -0.29,0.894 -0.82,1.573 -0.517,0.667 -1.261,1.057 -0.731,0.39 -1.627,0.39 -1.198,0 -2.333,-0.73 -1.122,-0.743 -2.055,-2.417 -0.794,1.523 -1.828,2.303 -1.034,0.768 -2.181,0.768 -0.883,0 -1.627,-0.34 -0.744,-0.352 -1.286,-0.982 -0.542,-0.642 -0.845,-1.548 -0.29,-0.919 -0.29,-2.052 0,-1.032 0.29,-1.926 0.29,-0.906 0.82,-1.561 0.53,-0.667 1.274,-1.045 0.744,-0.39 1.664,-0.39 0.593,0 1.173,0.176 0.593,0.164 1.147,0.541 0.567,0.365 1.072,0.944 0.517,0.579 0.946,1.41 0.794,-1.498 1.791,-2.24 0.996,-0.755 2.295,-0.755 0.883,0 1.614,0.352 0.731,0.352 1.248,0.994 0.53,0.642 0.82,1.548 0.29,0.906 0.29,2.026zM29.418,103.113q-0.921,0 -1.652,0.793 -0.731,0.78 -1.475,2.404 0.668,1.598 1.412,2.404 0.744,0.793 1.74,0.793 0.555,0 0.996,-0.252 0.454,-0.252 0.769,-0.692 0.315,-0.441 0.479,-1.019 0.177,-0.592 0.177,-1.259 0,-0.667 -0.177,-1.246 -0.177,-0.579 -0.504,-1.007 -0.315,-0.428 -0.769,-0.667 -0.441,-0.252 -0.996,-0.252zM21.172,109.432q0.87,0 1.639,-0.78 0.769,-0.78 1.488,-2.417 -0.668,-1.598 -1.425,-2.391 -0.757,-0.806 -1.753,-0.806 -0.542,0 -0.984,0.252 -0.429,0.252 -0.744,0.692 -0.303,0.441 -0.479,1.032 -0.164,0.579 -0.164,1.246 0,0.642 0.139,1.221 0.151,0.566 0.454,1.007 0.303,0.428 0.757,0.692 0.454,0.252 1.072,0.252zM0,113.761l0,-1.372l1.084,0q0.29,0 0.53,-0.05 0.24,-0.063 0.416,-0.239 0.177,-0.176 0.277,-0.503 0.101,-0.327 0.101,-0.881l0,-12.322q0,-0.554 -0.101,-0.881 -0.101,-0.327 -0.277,-0.503 -0.177,-0.176 -0.416,-0.227 -0.24,-0.063 -0.53,-0.063l-1.084,0l0,-1.359l8.915,0l0,1.359l-1.084,0q-0.265,0 -0.517,0.063 -0.24,0.05 -0.416,0.214 -0.177,0.164 -0.29,0.478 -0.101,0.302 -0.101,0.818l0,13.895l4.804,0q0.908,0 1.412,-0.566 0.504,-0.579 0.731,-1.674l0.416,-1.938l1.45,0l-0.189,5.752zM72.992,22.376c-5.257,-5.314 -9.076,-11.473 -10.756,-17.343 -0.02,-0.07 -0.035,-0.137 -0.055,-0.207l-50.504,23.741c-0.944,0.444 -1.357,1.584 -0.922,2.548 0.317,0.703 0.998,1.118 1.71,1.118 0.263,0 0.531,-0.057 0.786,-0.177l46.414,-21.818c-1.259,2.404 -2.014,5.114 -2.169,7.986l-23.687,15.866c-0.869,0.582 -1.111,1.773 -0.541,2.659 0.361,0.562 0.961,0.867 1.575,0.867 0.354,0 0.712,-0.102 1.03,-0.315l21.873,-14.652c0.941,5.449 4.122,10.109 8.544,12.959l-36.92,45.919c-0.659,0.82 -0.543,2.03 0.261,2.703 0.35,0.294 0.772,0.436 1.193,0.436 0.544,0 1.083,-0.24 1.455,-0.702l37.474,-46.607c2.056,0.785 4.272,1.235 6.593,1.235 3.314,0 6.428,-0.882 9.139,-2.417l-18.725,42.66c-0.425,0.968 0,2.104 0.947,2.538 0.25,0.114 0.511,0.168 0.769,0.168 0.719,0 1.405,-0.423 1.718,-1.136l20.622,-46.983c-5.886,-1.561 -12.337,-5.499 -17.824,-11.047zM74.851,20.498c5.316,5.374 11.519,9.128 17.044,10.47l1.179,-2.686c0.012,-0.027 0.016,-0.056 0.027,-0.083 1.365,-2.668 2.149,-5.691 2.149,-8.903 0,-10.64 -8.481,-19.295 -18.904,-19.295 -3.444,0 -6.666,0.96 -9.451,2.61l-2.283,1.074c0.054,0.205 0.089,0.402 0.149,0.612 1.559,5.446 5.142,11.199 10.09,16.202z" />+ </group>+</vector>\ No newline at end of filediff --git a/app/src/main/res/drawable/ic_splash_drawable.xml b/app/src/main/res/drawable/ic_splash_drawable.xmldeleted file mode 100644index 29db487d..00000000--- a/app/src/main/res/drawable/ic_splash_drawable.xml+++ /dev/null@@ -1,9 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android"- android:width="192dp"- android:height="200dp"- android:viewportWidth="105.83323"- android:viewportHeight="114.01299">- <path- android:fillColor="@color/themeAccent"- android:pathData="m104.005,111.936q0.504,0 0.958,-0.063 0.467,-0.076 0.87,-0.176l0,1.674q-0.202,0.101 -0.555,0.214 -0.34,0.113 -0.807,0.201 -0.454,0.101 -1.034,0.164 -0.58,0.063 -1.261,0.063 -0.87,0 -1.576,-0.214 -0.706,-0.201 -1.198,-0.68 -0.492,-0.491 -0.757,-1.259 -0.265,-0.78 -0.265,-1.913l0,-8.244l-1.942,0l0,-1.322q0.832,0 1.488,-0.327 0.656,-0.327 1.047,-0.755 0.794,-0.831 1.185,-2.555l2.144,0l0,3.197l3.304,0l0,1.762l-3.304,0l0,7.98q0,1.171 0.391,1.712 0.404,0.541 1.311,0.541zM85.595,109.922q0,1.108 0.353,1.661 0.353,0.554 1.11,0.554 0.555,0 0.996,-0.227 0.454,-0.239 0.769,-0.667 0.328,-0.428 0.492,-1.032 0.177,-0.617 0.177,-1.372l0,-1.938l-1.16,0.076q-0.769,0.038 -1.299,0.252 -0.53,0.201 -0.845,0.566 -0.315,0.365 -0.454,0.894 -0.139,0.529 -0.139,1.233zM87.89,101.188q-0.492,0 -0.832,0.214 -0.328,0.201 -0.53,0.579 -0.202,0.365 -0.29,0.881 -0.076,0.503 -0.076,1.108 -1.74,0 -2.623,-0.39 -0.87,-0.39 -0.87,-1.334 0,-0.705 0.416,-1.208 0.429,-0.503 1.147,-0.818 0.731,-0.315 1.69,-0.453 0.971,-0.151 2.068,-0.151 1.362,0 2.371,0.239 1.021,0.227 1.69,0.743 0.681,0.516 1.021,1.359 0.34,0.831 0.34,2.039l0,6.57q0,0.529 0.076,0.881 0.088,0.352 0.265,0.566 0.177,0.201 0.479,0.289 0.303,0.088 0.731,0.088l0.101,0l0,1.372l-4.804,0l-0.542,-1.775l-0.227,0q-0.429,0.516 -0.807,0.906 -0.378,0.378 -0.807,0.629 -0.429,0.252 -0.971,0.365 -0.53,0.126 -1.261,0.126 -0.857,0 -1.601,-0.252 -0.731,-0.252 -1.286,-0.768 -0.542,-0.529 -0.857,-1.309 -0.315,-0.793 -0.315,-1.863 0,-2.102 1.438,-3.109 1.45,-1.007 4.35,-1.095l2.118,-0.076l0,-1.422q0,-0.642 -0.05,-1.183 -0.05,-0.541 -0.214,-0.931 -0.164,-0.39 -0.492,-0.604 -0.315,-0.214 -0.845,-0.214zM72.115,114.013q-1.74,0 -2.9,-0.327 -1.16,-0.327 -1.866,-0.843 -0.694,-0.516 -0.996,-1.158 -0.29,-0.642 -0.29,-1.271 0,-0.667 0.24,-1.12 0.252,-0.453 0.656,-0.743 0.416,-0.289 0.933,-0.415 0.53,-0.126 1.097,-0.126 0,1.108 0.265,1.951 0.265,0.831 0.731,1.397 0.467,0.554 1.11,0.843 0.656,0.277 1.425,0.277 0.757,0 1.349,-0.214 0.593,-0.214 1.009,-0.592 0.416,-0.378 0.63,-0.881 0.214,-0.516 0.214,-1.108 0,-0.654 -0.265,-1.158 -0.265,-0.516 -0.807,-0.944 -0.53,-0.441 -1.349,-0.831 -0.807,-0.403 -1.891,-0.856 -1.349,-0.554 -2.282,-1.133 -0.921,-0.592 -1.488,-1.271 -0.567,-0.68 -0.82,-1.473 -0.24,-0.793 -0.24,-1.737 0,-1.183 0.479,-2.14 0.479,-0.957 1.324,-1.636 0.845,-0.68 2.005,-1.045 1.16,-0.365 2.522,-0.365 1.425,0 2.459,0.239 1.034,0.227 1.702,0.629 0.681,0.403 1.009,0.957 0.328,0.541 0.328,1.171 0,0.453 -0.202,0.843 -0.189,0.39 -0.593,0.68 -0.391,0.289 -0.996,0.453 -0.593,0.164 -1.387,0.164 0,-0.541 -0.151,-1.158 -0.139,-0.629 -0.467,-1.158 -0.328,-0.541 -0.857,-0.894 -0.517,-0.352 -1.261,-0.352 -0.517,0 -0.984,0.151 -0.467,0.151 -0.82,0.453 -0.34,0.302 -0.542,0.755 -0.202,0.441 -0.202,1.019 0,0.541 0.177,1.019 0.177,0.478 0.643,0.944 0.479,0.453 1.299,0.919 0.832,0.453 2.144,0.982 1.324,0.541 2.257,1.108 0.933,0.566 1.526,1.221 0.605,0.642 0.87,1.422 0.277,0.768 0.277,1.712 0,1.246 -0.492,2.291 -0.492,1.032 -1.412,1.775 -0.921,0.743 -2.219,1.158 -1.286,0.415 -2.9,0.415zM62.115,108.966l0,1.573q0,0.604 0.164,0.969 0.177,0.365 0.454,0.566 0.29,0.189 0.681,0.252 0.391,0.063 0.82,0.063l0.328,0l0,1.372l-9.054,0l0,-1.372l0.719,0q0.441,0 0.82,-0.063 0.391,-0.063 0.668,-0.252 0.29,-0.201 0.454,-0.566 0.177,-0.365 0.177,-0.969l0,-1.573l-7.15,0l0,-1.573l7.326,-12.032l3.594,0l0,11.906l2.686,0l0,1.699zM58.345,102.761q0,-1.133 0.038,-2.442 0.038,-1.309 0.139,-2.517 -0.126,0.302 -0.404,0.831 -0.277,0.529 -0.593,1.095 -0.315,0.554 -0.605,1.057 -0.29,0.491 -0.441,0.73l-3.48,5.752l5.347,0zM50.855,113.761l-0.366,0q-1.412,0 -2.371,-0.063 -0.958,-0.063 -1.652,-0.289 -0.694,-0.227 -1.198,-0.68 -0.504,-0.466 -1.009,-1.259l-2.295,-3.612 -1.034,0.768l0,2.089q0,0.554 0.177,0.881 0.189,0.327 0.454,0.503 0.277,0.176 0.605,0.239 0.328,0.05 0.605,0.05l0.303,0l0,1.372L34.866,113.761l0,-1.372l0.303,0q0.29,0 0.605,-0.05 0.328,-0.063 0.593,-0.239 0.277,-0.176 0.454,-0.503 0.189,-0.327 0.189,-0.881l0,-13.606q0,-0.516 -0.189,-0.818 -0.177,-0.315 -0.454,-0.478 -0.277,-0.176 -0.605,-0.227 -0.315,-0.05 -0.593,-0.05l-0.303,0l0,-1.359l6.065,0l0,9.943q0,0.352 -0.025,0.818 -0.013,0.453 -0.038,0.868 -0.038,0.491 -0.063,0.994l3.253,-3.637q0.429,-0.478 0.555,-0.755 0.139,-0.289 0.139,-0.478 0,-0.327 -0.353,-0.503 -0.34,-0.189 -0.984,-0.189l0,-1.296l6.507,0l0,1.296q-0.895,0 -1.765,0.529 -0.857,0.516 -1.879,1.661l-1.627,1.85 3.43,5.11q0.681,1.019 1.374,1.51 0.694,0.491 1.311,0.491l0.088,0zM33.517,106.31q0,1.007 -0.29,1.901 -0.29,0.894 -0.82,1.573 -0.517,0.667 -1.261,1.057 -0.731,0.39 -1.627,0.39 -1.198,0 -2.333,-0.73 -1.122,-0.743 -2.055,-2.417 -0.794,1.523 -1.828,2.303 -1.034,0.768 -2.181,0.768 -0.883,0 -1.627,-0.34 -0.744,-0.352 -1.286,-0.982 -0.542,-0.642 -0.845,-1.548 -0.29,-0.919 -0.29,-2.052 0,-1.032 0.29,-1.926 0.29,-0.906 0.82,-1.561 0.53,-0.667 1.274,-1.045 0.744,-0.39 1.664,-0.39 0.593,0 1.173,0.176 0.593,0.164 1.147,0.541 0.567,0.365 1.072,0.944 0.517,0.579 0.946,1.41 0.794,-1.498 1.791,-2.24 0.996,-0.755 2.295,-0.755 0.883,0 1.614,0.352 0.731,0.352 1.248,0.994 0.53,0.642 0.82,1.548 0.29,0.906 0.29,2.026zM29.418,103.113q-0.921,0 -1.652,0.793 -0.731,0.78 -1.475,2.404 0.668,1.598 1.412,2.404 0.744,0.793 1.74,0.793 0.555,0 0.996,-0.252 0.454,-0.252 0.769,-0.692 0.315,-0.441 0.479,-1.019 0.177,-0.592 0.177,-1.259 0,-0.667 -0.177,-1.246 -0.177,-0.579 -0.504,-1.007 -0.315,-0.428 -0.769,-0.667 -0.441,-0.252 -0.996,-0.252zM21.172,109.432q0.87,0 1.639,-0.78 0.769,-0.78 1.488,-2.417 -0.668,-1.598 -1.425,-2.391 -0.757,-0.806 -1.753,-0.806 -0.542,0 -0.984,0.252 -0.429,0.252 -0.744,0.692 -0.303,0.441 -0.479,1.032 -0.164,0.579 -0.164,1.246 0,0.642 0.139,1.221 0.151,0.566 0.454,1.007 0.303,0.428 0.757,0.692 0.454,0.252 1.072,0.252zM0,113.761l0,-1.372l1.084,0q0.29,0 0.53,-0.05 0.24,-0.063 0.416,-0.239 0.177,-0.176 0.277,-0.503 0.101,-0.327 0.101,-0.881l0,-12.322q0,-0.554 -0.101,-0.881 -0.101,-0.327 -0.277,-0.503 -0.177,-0.176 -0.416,-0.227 -0.24,-0.063 -0.53,-0.063l-1.084,0l0,-1.359l8.915,0l0,1.359l-1.084,0q-0.265,0 -0.517,0.063 -0.24,0.05 -0.416,0.214 -0.177,0.164 -0.29,0.478 -0.101,0.302 -0.101,0.818l0,13.895l4.804,0q0.908,0 1.412,-0.566 0.504,-0.579 0.731,-1.674l0.416,-1.938l1.45,0l-0.189,5.752zM72.992,22.376c-5.257,-5.314 -9.076,-11.473 -10.756,-17.343 -0.02,-0.07 -0.035,-0.137 -0.055,-0.207l-50.504,23.741c-0.944,0.444 -1.357,1.584 -0.922,2.548 0.317,0.703 0.998,1.118 1.71,1.118 0.263,0 0.531,-0.057 0.786,-0.177l46.414,-21.818c-1.259,2.404 -2.014,5.114 -2.169,7.986l-23.687,15.866c-0.869,0.582 -1.111,1.773 -0.541,2.659 0.361,0.562 0.961,0.867 1.575,0.867 0.354,0 0.712,-0.102 1.03,-0.315l21.873,-14.652c0.941,5.449 4.122,10.109 8.544,12.959l-36.92,45.919c-0.659,0.82 -0.543,2.03 0.261,2.703 0.35,0.294 0.772,0.436 1.193,0.436 0.544,0 1.083,-0.24 1.455,-0.702l37.474,-46.607c2.056,0.785 4.272,1.235 6.593,1.235 3.314,0 6.428,-0.882 9.139,-2.417l-18.725,42.66c-0.425,0.968 0,2.104 0.947,2.538 0.25,0.114 0.511,0.168 0.769,0.168 0.719,0 1.405,-0.423 1.718,-1.136l20.622,-46.983c-5.886,-1.561 -12.337,-5.499 -17.824,-11.047zM74.851,20.498c5.316,5.374 11.519,9.128 17.044,10.47l1.179,-2.686c0.012,-0.027 0.016,-0.056 0.027,-0.083 1.365,-2.668 2.149,-5.691 2.149,-8.903 0,-10.64 -8.481,-19.295 -18.904,-19.295 -3.444,0 -6.666,0.96 -9.451,2.61l-2.283,1.074c0.054,0.205 0.089,0.402 0.149,0.612 1.559,5.446 5.142,11.199 10.09,16.202z" />-</vector>diff --git a/app/src/main/res/menu/nav_menu.xml b/app/src/main/res/menu/nav_menu.xmldeleted file mode 100644index d695c43d..00000000--- a/app/src/main/res/menu/nav_menu.xml+++ /dev/null@@ -1,19 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<menu xmlns:android="http://schemas.android.com/apk/res/android">- <item- android:id="@+id/nav_satellites"- android:icon="@drawable/ic_nav_satellites"- android:title="@string/menu_satellites" />- <item- android:id="@+id/nav_passes"- android:icon="@drawable/ic_nav_passes"- android:title="@string/menu_passes" />- <item- android:id="@+id/nav_map"- android:icon="@drawable/ic_nav_map"- android:title="@string/menu_map" />- <item- android:id="@+id/nav_settings"- android:icon="@drawable/ic_nav_settings"- android:title="@string/menu_settings" />-</menu>\ No newline at end of filediff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xmlindex 5e140696..8420a89b 100644--- a/app/src/main/res/values/styles.xml+++ b/app/src/main/res/values/styles.xml@@ -4,10 +4,10 @@<item name="android:forceDarkAllowed" tools:targetApi="q">false</item><item name="postSplashScreenTheme">@style/Theme.Look4Sat.Main</item><item name="windowSplashScreenBackground">@color/surfaceBg</item>- <item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash_drawable</item>+ <item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash</item></style>- <style name="Theme.Look4Sat.Main" parent="Theme.AppCompat.NoActionBar">+ <style name="Theme.Look4Sat.Main" parent="Theme.MaterialComponents.NoActionBar"><item name="colorAccent">@color/themeAccent</item><item name="colorControlNormal">@color/themeLight</item><item name="colorPrimary">@color/themeAccent</item>diff --git a/build.gradle b/build.gradleindex b8631b88..9c36fb5e 100644--- a/build.gradle+++ b/build.gradle@@ -1,40 +1,15 @@buildscript {- ext {- gradle_version = '7.1.0'- kotlin_version = '1.6.10'- coroutines_version = '1.6.0-native-mt'- splash_screen_version = '1.0.0-alpha01'- constraint_layout_version = '2.1.3'- lifecycle_version = '2.4.0'- navigation_version = '2.3.5'- preference_version = '1.1.1'- room_version = '2.4.1'- hilt_version = '2.40.5'- json_version = '20211205'- osmdroid_version = '6.1.11'- timber_version = '5.0.1'- junit_version = '4.13.2'- mockito_version = '4.3.1'- leak_canary_version = '2.8.1'- }- repositories {- google()- mavenCentral()- }dependencies {- classpath "com.android.tools.build:gradle:$gradle_version"- classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"+ classpath "com.google.dagger:hilt-android-gradle-plugin:2.40.5"}}-allprojects {- repositories {- google()- mavenCentral()- }+plugins {+ id "com.android.application" version "7.1.1" apply false+ id "com.android.library" version "7.1.1" apply false+ id "org.jetbrains.kotlin.android" version "1.6.10" apply false}task clean(type: Delete) {delete rootProject.buildDir-}+}\ No newline at end of filediff --git a/core/build.gradle b/core/build.gradleindex 87408990..3156ff39 100644--- a/core/build.gradle+++ b/core/build.gradle@@ -1,5 +1,5 @@plugins {- id 'kotlin'+ id "kotlin"}tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {@@ -12,10 +12,10 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {}dependencies {- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"- implementation "org.json:json:$json_version"+ implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0"+ implementation "org.json:json:20211205"- testImplementation "junit:junit:$junit_version"- testImplementation "org.mockito:mockito-core:$mockito_version"- testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"-}+ testImplementation "junit:junit:4.13.2"+ testImplementation "org.mockito:mockito-core:4.3.1"+ testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.0"+}\ No newline at end of filediff --git a/gradle.properties b/gradle.propertiesindex 462df245..1d3799ae 100644--- a/gradle.properties+++ b/gradle.properties@@ -6,17 +6,19 @@# http://www.gradle.org/docs/current/userguide/build_environment.html# Specifies the JVM arguments used for the daemon process.# The setting is particularly useful for tweaking memory settings.-org.gradle.jvmargs=-Xmx2048m -XX:+UseParallelGC+org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8# When configured, Gradle will run in incubating parallel mode.# This option should only be used with decoupled projects. More details, visit# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects# org.gradle.parallel=true# AndroidX package structure to make it clearer which packages are bundled with the-# Android operating system, and which are packaged with your app's APK+# Android operating system, and which are packaged with your app"s APK# https://developer.android.com/topic/libraries/support-library/androidx-rnandroid.useAndroidX=true-# Automatically convert third-party libraries to use AndroidX-android.enableJetifier=true# Kotlin code style for this project: "official" or "obsolete":kotlin.code.style=official-kapt.use.worker.api=true+# Enables namespacing of each library's R class so that its R class includes only the+# resources declared in the library itself and none from the library's dependencies,+# thereby reducing the size of the R class for that library+android.nonTransitiveRClass=true+kapt.use.worker.api=true\ No newline at end of filediff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.propertiesindex 84d1f85f..a33384a3 100644--- a/gradle/wrapper/gradle-wrapper.properties+++ b/gradle/wrapper/gradle-wrapper.properties@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOMEdistributionPath=wrapper/distsdistributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zipzipStoreBase=GRADLE_USER_HOME-zipStorePath=wrapper/dists+zipStorePath=wrapper/dists\ No newline at end of filediff --git a/settings.gradle b/settings.gradleindex 1323db3c..d7c1f4ec 100644--- a/settings.gradle+++ b/settings.gradle@@ -1,3 +1,17 @@-include ':app'-include ':core'-rootProject.name='Look4Sat'+pluginManagement {+ repositories {+ gradlePluginPortal()+ google()+ mavenCentral()+ }+}+dependencyResolutionManagement {+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)+ repositories {+ google()+ mavenCentral()+ }+}+rootProject.name = "Look4Sat"+include ":app"+include ":core"\ No newline at end of file