diff --git a/app/build.gradle b/app/build.gradle index 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 31 versionCode 260 versionName "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 file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 916af975..cc5eac27 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,8 +9,8 @@ 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] = footprintOverlay diff --git a/app/src/main/res/drawable-nodpi/worldmap_dark.webp b/app/src/main/res/drawable-nodpi/worldmap_dark.webp new file mode 100644 index 00000000..9f19b71b Binary files /dev/null and b/app/src/main/res/drawable-nodpi/worldmap_dark.webp differ diff --git a/app/src/main/res/drawable/ic_splash.xml b/app/src/main/res/drawable/ic_splash.xml new file mode 100644 index 00000000..ced383bb --- /dev/null +++ b/app/src/main/res/drawable/ic_splash.xml @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_splash_drawable.xml b/app/src/main/res/drawable/ic_splash_drawable.xml deleted file mode 100644 index 29db487d..00000000 --- a/app/src/main/res/drawable/ic_splash_drawable.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/menu/nav_menu.xml b/app/src/main/res/menu/nav_menu.xml deleted file mode 100644 index d695c43d..00000000 --- a/app/src/main/res/menu/nav_menu.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 5e140696..8420a89b 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -4,10 +4,10 @@ false @style/Theme.Look4Sat.Main @color/surfaceBg - @drawable/ic_splash_drawable + @drawable/ic_splash -