Skip to content

Commit

Permalink
Release/3.3.1 (#110)
Browse files Browse the repository at this point in the history
* Bump to 3.0.3 (#99)

(cherry picked from commit fd10937)

* Update docs

(cherry picked from commit 018adae)

* Update actions

(cherry picked from commit 09a21d8)

* Update actions

(cherry picked from commit 5d539a1)

* Set theme jekyll-theme-slate

(cherry picked from commit e5af85e)

* Set theme jekyll-theme-minimal

(cherry picked from commit f63752c)

* Change privacy police uri (#100)

* Feature/exams UI (#102)

* Fix icon badges

* Update all schedules test

* Update all schedules test

* Dont throw exception if employee department is null

* Load only exams for zaoch groups

* Load only exams for part time groups

* Move part-time classes to separate menu category

* Change employee placeholder

* Fix weeks for employees

* Show dialog only in resumed state

* Fix week numbers fetch

* Split hints for exams and lessons

* Small design fixes

* Small design fixes

* Small design fixes

* Reformat code

* Add exceptions to Analytics

* Add Flurry analytics

* Add Flurry

* Add Flurry

* Add Flurry

* Code refactoring

* Code refactoring

* Code refactoring

* Code refactoring

* Code refactoring

* Fix widget crash

* Fix widget crash

* Code refactoring

* Fix rate app dialog displaying

* Fix update dialog analytics

* Add lesson types enum

* Exclude google-services.json from gitignore

* Release/3.2.0 (#105)

(cherry picked from commit c2f0a92)

* Release/3.3.0 (#106)

(cherry picked from commit 246e9bc)

* Update dependencies (#108)

* Fix faculties loading (#109)

* Bump version to 3.3.1
  • Loading branch information
Ilyshka991 authored Jul 17, 2021
1 parent 246e9bc commit 8e07557
Show file tree
Hide file tree
Showing 18 changed files with 124 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/markdown-navigator-enh.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions .idea/markdown-navigator.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ dependencies {

kaptAndroidTest daggerProcessor

implementation ktxDependencies.values()
implementation glide
implementation lottie

Expand Down
4 changes: 4 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-repackageclasses
-allowaccessmodification
-optimizationpasses 10
-keepattributes SourceFile, LineNumberTable
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,27 @@ class LiveEvent<T> : MediatorLiveData<T>() {

@MainThread
override fun observe(owner: LifecycleOwner, observer: Observer<in T>) {
observers.find { it.observer === observer }?.let { _ -> // existing
return
}
val wrapper = ObserverWrapper(observer)
observers.add(wrapper)
super.observe(owner, wrapper)
}

@MainThread
override fun observeForever(observer: Observer<in T>) {
observers.find { it.observer === observer }?.let { _ -> // existing
return
}
val wrapper = ObserverWrapper(observer)
observers.add(wrapper)
super.observeForever(wrapper)
}

@MainThread
override fun removeObserver(observer: Observer<in T>) {
if (observers.remove(observer)) {
if (observer is ObserverWrapper && observers.remove(observer)) {
super.removeObserver(observer)
return
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<string name="staff_list_hint_enter_auditory">Введите номер аудитории</string>

<string name="staff_list_msg_group_course">%1$d курс</string>
<string name="staff_list_msg_employee_department">Кафедра: %1$s</string>
<string name="staff_list_msg_employee_department">%1$s</string>
<string name="staff_list_msg_auditory_capacity">Вместимость: %1$d</string>
<string name="staff_list_msg_empty">Ничего не найдено</string>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<string name="staff_list_hint_enter_employee_name">Enter employee name</string>
<string name="staff_list_hint_enter_auditory">Enter auditory</string>
<string name="staff_list_msg_group_course">%1$d course</string>
<string name="staff_list_msg_employee_department">Department: %1$s</string>
<string name="staff_list_msg_employee_department">%1$s</string>
<string name="staff_list_msg_auditory_capacity">Capacity: %1$d</string>
<string name="staff_list_msg_empty">Not found</string>

Expand Down
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20"
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.2"
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20'
classpath 'com.google.gms:google-services:4.3.8'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5'
}
}

allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

Expand Down
4 changes: 2 additions & 2 deletions configuration.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ ext.configuration = [
minSdkVersion : 21,
targetSdkVersion : 30,

versionCode : 20,
versionName : '3.3.0',
versionCode : 21,
versionName : '3.3.1',

flurryApiKey : ""
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class SpecialityRepositoryImpl(
override suspend fun isCached() = withContext(Dispatchers.IO) {
listOf(
async { performDaoCall { dao.isDepartmentsNotEmpty() } },
async { performDaoCall { dao.isFacultiesNotEmpty() } },
async { performDaoCall { dao.isSpecialitiesNotEmpty() } }
).awaitAll().foldRight(true) { isNotEmpty, acc ->
isNotEmpty and acc
Expand Down Expand Up @@ -103,7 +102,7 @@ class SpecialityRepositoryImpl(
}

private suspend fun loadFacultiesFromApi(): List<Faculty> =
performApiCall { api.getAllFaculties() }
performApiCallCatching(emptyList()) { api.getAllFaculties() }
.map { dto ->
dto.toDomainEntity()
}
Expand Down
53 changes: 25 additions & 28 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
def libraryVersions = [
kotlin : '1.4.0',
coroutines : '1.3.9',

core : '1.2.0',
appCompat : '1.1.0',
annotation : '1.1.0',
activity : '1.1.0',
fragment : '1.2.1',
kotlin : '1.5.20',
coroutines : '1.5.1',

core : '1.6.0',
appCompat : '1.3.0',
annotation : '1.2.0',
activity : '1.2.3',
fragment : '1.3.5',
multidex : '2.0.1',

materialComponents: '1.1.0',
materialComponents: '1.4.0',
cardView : '1.0.0',
constraintLayout : '1.1.3',
constraintLayout : '2.0.4',
coordinatorlayout : '1.1.0',
recyclerView : '1.1.0',
recyclerView : '1.2.1',
viewPager2 : '1.0.0',

workManager : '2.3.1',
lifeCycle : '2.2.0',
workManager : '2.5.0',
lifeCycle : '2.3.1',

room : '2.2.3',
room : '2.3.0',

dagger : '2.26',
dagger : '2.37',
javax : '1',

ktx : '1.1.0',
leekcanary : '2.2',
glide : '4.11.0',
lottie : '3.3.1',
leekcanary : '2.7',
glide : '4.12.0',
lottie : '3.7.1',

retrofit : '2.9.0',
okHttp : '4.9.0',
okHttp : '4.9.1',
moshiAdapter : '2.9.0',
moshi : '1.11.0',
moshi : '1.12.0',

crashlytics : '17.2.1',
analytics : '17.5.0',
crashlytics : '18.1.0',
analytics : '19.0.0',

junit : '4.12',

Expand All @@ -44,7 +43,7 @@ def libraryVersions = [
espresso : '3.2.0-alpha03',
junitExtVersion : '1.1.1',

flurry : '12.9.0'
flurry : '12.13.0'
]

ext {
Expand Down Expand Up @@ -76,7 +75,8 @@ ext {
liveData : "androidx.lifecycle:lifecycle-livedata-ktx:${libraryVersions.lifeCycle}",
viewModel : "androidx.lifecycle:lifecycle-viewmodel-ktx:${libraryVersions.lifeCycle}",
viewModelSavedState: "androidx.lifecycle:lifecycle-viewmodel-savedstate:${libraryVersions.lifeCycle}",
extenssions : "androidx.lifecycle:lifecycle-extensions:${libraryVersions.lifeCycle}"
process : "androidx.lifecycle:lifecycle-process:${libraryVersions.lifeCycle}"

]
archComponentsProcessor = "androidx.lifecycle:lifecycle-compiler:${libraryVersions.lifeCycle}"

Expand All @@ -90,9 +90,6 @@ ext {
]
roomProcessor = "androidx.room:room-compiler:${libraryVersions.room}"

ktxDependencies = [
core: "androidx.core:core-ktx:${libraryVersions.ktx}"
]
leekcanary = "com.squareup.leakcanary:leakcanary-android:${libraryVersions.leekcanary}"
glide = "com.github.bumptech.glide:glide:${libraryVersions.glide}"
lottie = "com.airbnb.android:lottie:${libraryVersions.lottie}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import kotlinx.android.parcel.Parcelize

@Parcelize
data class Building(
val id: Long,
val name: String
val id: Long,
val name: String
) : Parcelable

val Building.coordinates: LatLng?
get() = when (name) {
"1" -> LatLng(53.917750, 27.595138)
"2" -> LatLng(53.918812, 27.593705)
"3" -> LatLng(53.916677, 27.596191)
"4" -> LatLng(53.912343, 27.594539)
"5" -> LatLng(53.911641, 27.595961)
"7" -> LatLng(53.902895, 27.598172)
"8" -> LatLng(53.903092, 27.598119)
get() = when (name.firstOrNull()) {
'1' -> LatLng(53.917750, 27.595138)
'2' -> LatLng(53.918812, 27.593705)
'3' -> LatLng(53.916677, 27.596191)
'4' -> LatLng(53.912343, 27.594539)
'5' -> LatLng(53.911641, 27.595961)
'7' -> LatLng(53.902895, 27.598172)
'8' -> LatLng(53.903092, 27.598119)
else -> null
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ data class SpecialityCached(
@ColumnInfo(name = "education_form_id", index = true)
val educationFormId: Long,
@ColumnInfo(name = "name")
var name: String,
val name: String,
@ColumnInfo(name = "abbreviation")
val abbreviation: String,
@ColumnInfo(name = "code")
Expand Down

0 comments on commit 8e07557

Please sign in to comment.