Skip to content

Commit

Permalink
Merge pull request #944 from StepicOrg/release/1.208
Browse files Browse the repository at this point in the history
Release/1.208
  • Loading branch information
rostikjoystick authored Feb 3, 2022
2 parents 81f6f5b + 194af5a commit 9dfb85a
Show file tree
Hide file tree
Showing 301 changed files with 754 additions and 477 deletions.
2 changes: 1 addition & 1 deletion androidsvg/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 30
compileSdkVersion versions.compileSdk
buildToolsVersion versions.buildTools

defaultConfig {
Expand Down
11 changes: 11 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ android {
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'

firebaseCrashlytics {
nativeSymbolUploadEnabled true
strippedNativeLibsDir 'build/intermediates/stripped_native_libs/release/out/lib'
unstrippedNativeLibsDir 'build/intermediates/merged_native_libs/release/out/lib'
}
}
debug {
minifyEnabled false
Expand Down Expand Up @@ -236,6 +242,7 @@ dependencies {
implementation(libraries.crashlytics) {
transitive = true
}
implementation libraries.crashlyticsNdk

testImplementation libraries.junit
testImplementation libraries.robolectric
Expand Down Expand Up @@ -263,6 +270,10 @@ dependencies {
releaseImplementation libraries.flipperNoop
}

afterEvaluate {
bundleRelease { finalizedBy(":app:uploadCrashlyticsSymbolFileRelease")}
}

apply plugin: 'com.google.gms.google-services'
if (getGradle().getStartParameter().getTaskRequests().toString().contains("Release")) {
apply plugin: 'com.getkeepsafe.dexcount'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.stepik.android.domain.debug.model

import ru.nobird.android.core.model.Identifiable
import ru.nobird.app.core.model.Identifiable

data class SplitTestData(
val splitTestName: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.stepik.android.presentation.debug

import ru.nobird.android.presentation.redux.container.ReduxViewContainer
import ru.nobird.app.presentation.redux.container.ReduxViewContainer
import ru.nobird.android.view.redux.viewmodel.ReduxViewModel

class DebugViewModel(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.stepik.android.presentation.debug

import ru.nobird.android.presentation.redux.container.ReduxViewContainer
import ru.nobird.android.view.redux.viewmodel.ReduxViewModel
import ru.nobird.app.presentation.redux.container.ReduxViewContainer

class InAppPurchasesViewModel(
reduxViewContainer: ReduxViewContainer<InAppPurchasesFeature.State, InAppPurchasesFeature.Message, InAppPurchasesFeature.Action.ViewAction>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.stepik.android.presentation.debug

import ru.nobird.android.presentation.redux.container.ReduxViewContainer
import ru.nobird.app.presentation.redux.container.ReduxViewContainer
import ru.nobird.android.view.redux.viewmodel.ReduxViewModel

class SplitTestsViewModel(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.stepik.android.domain.debug.model.EndpointConfig
import org.stepik.android.presentation.debug.DebugFeature.State
import org.stepik.android.presentation.debug.DebugFeature.Message
import org.stepik.android.presentation.debug.DebugFeature.Action
import ru.nobird.android.presentation.redux.reducer.StateReducer
import ru.nobird.app.presentation.redux.reducer.StateReducer
import javax.inject.Inject

class DebugReducer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ package org.stepik.android.presentation.debug.reducer
import org.stepik.android.presentation.debug.InAppPurchasesFeature.State
import org.stepik.android.presentation.debug.InAppPurchasesFeature.Message
import org.stepik.android.presentation.debug.InAppPurchasesFeature.Action
import ru.nobird.android.core.model.mutate

import ru.nobird.android.presentation.redux.reducer.StateReducer
import ru.nobird.app.presentation.redux.reducer.StateReducer
import javax.inject.Inject

class InAppPurchasesReducer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package org.stepik.android.presentation.debug.reducer
import org.stepik.android.presentation.debug.SplitTestsFeature.State
import org.stepik.android.presentation.debug.SplitTestsFeature.Message
import org.stepik.android.presentation.debug.SplitTestsFeature.Action
import ru.nobird.android.core.model.mutate
import ru.nobird.android.presentation.redux.reducer.StateReducer
import ru.nobird.app.core.model.mutate
import ru.nobird.app.presentation.redux.reducer.StateReducer
import javax.inject.Inject

class SplitTestsReducer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import org.stepik.android.presentation.debug.InAppPurchasesFeature
import org.stepik.android.presentation.debug.InAppPurchasesViewModel
import org.stepik.android.view.debug.ui.adapter.delegate.InAppPurchaseAdapterDelegate
import org.stepik.android.view.ui.delegate.ViewStateDelegate
import ru.nobird.android.presentation.redux.container.ReduxView
import ru.nobird.app.presentation.redux.container.ReduxView
import ru.nobird.android.ui.adapters.DefaultDelegateAdapter
import ru.nobird.android.view.redux.ui.extension.reduxViewModel
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import org.stepik.android.domain.debug.model.SplitTestData
import org.stepik.android.presentation.debug.SplitTestsFeature
import org.stepik.android.presentation.debug.SplitTestsViewModel
import org.stepik.android.view.debug.ui.adapter.delegate.SplitTestDataAdapterDelegate
import ru.nobird.android.presentation.redux.container.ReduxView
import ru.nobird.app.presentation.redux.container.ReduxView
import ru.nobird.android.ui.adapters.DefaultDelegateAdapter
import ru.nobird.android.view.redux.ui.extension.reduxViewModel
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import org.stepic.droid.util.copyTextToClipboard
import org.stepik.android.presentation.debug.DebugFeature
import org.stepik.android.presentation.debug.DebugViewModel
import org.stepik.android.view.ui.delegate.ViewStateDelegate
import ru.nobird.android.presentation.redux.container.ReduxView
import ru.nobird.app.presentation.redux.container.ReduxView
import ru.nobird.android.view.redux.ui.extension.reduxViewModel
import javax.inject.Inject
import android.content.Intent
Expand All @@ -26,7 +26,8 @@ import org.stepik.android.view.debug.ui.activity.InAppPurchasesActivity
import org.stepik.android.view.debug.ui.dialog.SplitTestsDialogFragment
import ru.nobird.android.view.base.ui.extension.showIfNotExists

class DebugFragment : Fragment(R.layout.fragment_debug), ReduxView<DebugFeature.State, DebugFeature.Action.ViewAction> {
class DebugFragment : Fragment(R.layout.fragment_debug),
ReduxView<DebugFeature.State, DebugFeature.Action.ViewAction> {
companion object {
fun newInstance(): Fragment =
DebugFragment()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import org.stepik.android.presentation.debug.DebugFeature
import org.stepik.android.presentation.debug.DebugViewModel
import org.stepik.android.presentation.debug.dispatcher.DebugActionDispatcher
import org.stepik.android.presentation.debug.reducer.DebugReducer
import ru.nobird.android.presentation.redux.container.wrapWithViewContainer
import ru.nobird.android.presentation.redux.dispatcher.wrapWithActionDispatcher
import ru.nobird.android.presentation.redux.feature.ReduxFeature
import ru.nobird.app.presentation.redux.container.wrapWithViewContainer
import ru.nobird.app.presentation.redux.dispatcher.wrapWithActionDispatcher
import ru.nobird.app.presentation.redux.feature.ReduxFeature

@Module
object DebugPresentationModule {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import org.stepik.android.presentation.debug.InAppPurchasesFeature
import org.stepik.android.presentation.debug.InAppPurchasesViewModel
import org.stepik.android.presentation.debug.dispatcher.InAppPurchasesActionDispatcher
import org.stepik.android.presentation.debug.reducer.InAppPurchasesReducer
import ru.nobird.android.presentation.redux.container.wrapWithViewContainer
import ru.nobird.android.presentation.redux.dispatcher.wrapWithActionDispatcher
import ru.nobird.android.presentation.redux.feature.ReduxFeature
import ru.nobird.app.presentation.redux.container.wrapWithViewContainer
import ru.nobird.app.presentation.redux.dispatcher.wrapWithActionDispatcher
import ru.nobird.app.presentation.redux.feature.ReduxFeature

@Module
object InAppPurchasesPresentationModule {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import org.stepik.android.presentation.debug.SplitTestsFeature
import org.stepik.android.presentation.debug.SplitTestsViewModel
import org.stepik.android.presentation.debug.dispatcher.SplitTestsActionDispatcher
import org.stepik.android.presentation.debug.reducer.SplitTestsReducer
import ru.nobird.android.presentation.redux.container.wrapWithViewContainer
import ru.nobird.android.presentation.redux.dispatcher.wrapWithActionDispatcher
import ru.nobird.android.presentation.redux.feature.ReduxFeature
import ru.nobird.app.presentation.redux.container.wrapWithViewContainer
import ru.nobird.app.presentation.redux.dispatcher.wrapWithActionDispatcher
import ru.nobird.app.presentation.redux.feature.ReduxFeature

@Module
object SplitTestsPresentationModule {
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
<uses-permission android:name="android.permission.STORAGE" />
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.stepic.droid.code.data

import ru.nobird.android.core.model.isNotOrdered
import ru.nobird.app.core.model.isNotOrdered

/**
* Class for fast search strings with common prefix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.stepic.droid.base.FragmentActivityBase
import org.stepic.droid.features.stories.ui.delegate.StoriesActivityDelegate
import org.stepik.android.presentation.story.StoryFeature
import org.stepik.android.view.story.viewmodel.StoryViewModel
import ru.nobird.android.presentation.redux.container.ReduxView
import ru.nobird.app.presentation.redux.container.ReduxView
import ru.nobird.android.stories.ui.custom.DismissableLayout
import ru.nobird.android.view.redux.ui.extension.reduxViewModel
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.stepic.droid.R
import org.stepic.droid.analytic.AmplitudeAnalytic
import org.stepic.droid.analytic.Analytic
import org.stepik.android.domain.story.model.StoryReaction
import ru.nobird.android.core.model.safeCast
import ru.nobird.app.core.model.safeCast
import ru.nobird.android.stories.model.Story
import ru.nobird.android.stories.ui.adapter.StoriesPagerAdapter
import ru.nobird.android.stories.ui.custom.DismissableLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.stepik.android.domain.progress.repository.ProgressRepository
import org.stepik.android.domain.section.repository.SectionRepository
import org.stepik.android.domain.unit.repository.UnitRepository
import org.stepik.android.model.Unit
import ru.nobird.android.core.model.mapToLongArray
import ru.nobird.app.core.model.mapToLongArray
import javax.inject.Inject

@AppSingleton
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.stepic.droid.persistence.model

import org.stepik.android.model.Course
import ru.nobird.android.core.model.Identifiable
import ru.nobird.app.core.model.Identifiable

data class DownloadItem(
val course: Course,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.stepic.droid.util.AppConstants
import org.stepik.android.model.Progressable
import org.stepik.android.model.Step
import org.stepik.android.model.Video
import ru.nobird.android.core.model.Identifiable
import ru.nobird.app.core.model.Identifiable

@Parcelize
data class StepPersistentWrapper(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import io.reactivex.Completable
import io.reactivex.Maybe
import io.reactivex.Single
import org.stepic.droid.storage.dao.IDao
import ru.nobird.android.core.model.PagedList
import ru.nobird.app.core.model.PagedList
import org.stepik.android.cache.certificates.structure.DbStructureCertificate
import org.stepik.android.data.certificate.source.CertificateCacheDataSource
import org.stepik.android.model.Certificate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.stepik.android.data.course_collection.source.CourseCollectionCacheDat
import org.stepik.android.domain.course_collection.model.CourseCollectionQuery
import org.stepik.android.model.CourseCollection
import org.stepik.android.model.PlatformType
import ru.nobird.android.core.model.mapOfNotNull
import ru.nobird.app.core.model.mapOfNotNull
import javax.inject.Inject

class CourseCollectionCacheDataSourceImpl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.stepic.droid.storage.dao.IDao
import org.stepik.android.cache.course_payments.structure.DbStructureCoursePayments
import org.stepik.android.data.course_payments.source.CoursePaymentsCacheDataSource
import org.stepik.android.domain.course_payments.model.CoursePayment
import ru.nobird.android.core.model.mapOfNotNull
import ru.nobird.app.core.model.mapOfNotNull
import javax.inject.Inject

class CoursePaymentsCacheDataSourceImpl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import io.reactivex.Completable
import io.reactivex.Maybe
import io.reactivex.Single
import org.stepic.droid.storage.dao.IDao
import ru.nobird.android.core.model.PagedList
import ru.nobird.app.core.model.PagedList
import org.stepik.android.cache.course_reviews.structure.DbStructureCourseReview
import org.stepik.android.data.course_reviews.source.CourseReviewsCacheDataSource
import org.stepik.android.domain.course_reviews.model.CourseReview
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.stepik.android.cache.user_courses.structure.DbStructureUserCourse
import org.stepik.android.data.user_courses.source.UserCoursesCacheDataSource
import org.stepik.android.domain.course_list.model.UserCourseQuery
import org.stepik.android.domain.user_courses.model.UserCourse
import ru.nobird.android.core.model.mapOfNotNull
import ru.nobird.app.core.model.mapOfNotNull
import javax.inject.Inject

class UserCoursesCacheDataSourceImpl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package org.stepik.android.data.base.repository.delegate
import io.reactivex.Completable
import io.reactivex.Single
import org.stepik.android.domain.base.DataSourceType
import ru.nobird.android.core.model.Identifiable
import ru.nobird.app.core.model.Identifiable
import ru.nobird.android.domain.rx.doCompletableOnSuccess
import ru.nobird.android.domain.rx.requireSize

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import io.reactivex.Completable
import io.reactivex.Maybe
import io.reactivex.Single
import org.stepik.android.domain.base.DataSourceType
import ru.nobird.android.core.model.Identifiable
import ru.nobird.app.core.model.Identifiable
import ru.nobird.android.domain.rx.doCompletableOnSuccess

class SingleRepositoryDelegate<ID, Item : Identifiable<ID>>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.stepik.android.data.certificate.repository

import io.reactivex.Maybe
import io.reactivex.Single
import ru.nobird.android.core.model.PagedList
import ru.nobird.app.core.model.PagedList
import ru.nobird.android.domain.rx.doCompletableOnSuccess
import org.stepik.android.data.certificate.source.CertificateCacheDataSource
import org.stepik.android.data.certificate.source.CertificateRemoteDataSource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package org.stepik.android.data.certificate.source
import io.reactivex.Completable
import io.reactivex.Maybe
import io.reactivex.Single
import ru.nobird.android.core.model.PagedList
import ru.nobird.app.core.model.PagedList
import org.stepik.android.model.Certificate

interface CertificateCacheDataSource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.stepik.android.data.certificate.source

import io.reactivex.Maybe
import io.reactivex.Single
import ru.nobird.android.core.model.PagedList
import ru.nobird.app.core.model.PagedList
import org.stepik.android.model.Certificate

interface CertificateRemoteDataSource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.stepik.android.data.course.repository

import io.reactivex.Completable
import io.reactivex.Single
import ru.nobird.android.core.model.PagedList
import ru.nobird.app.core.model.PagedList
import org.stepik.android.data.base.repository.delegate.ListRepositoryDelegate
import org.stepik.android.data.course.source.CourseCacheDataSource
import org.stepik.android.data.course.source.CourseRemoteDataSource
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.stepik.android.data.course.source

import io.reactivex.Single
import ru.nobird.android.core.model.PagedList
import ru.nobird.app.core.model.PagedList
import org.stepik.android.domain.course_list.model.CourseListQuery
import org.stepik.android.model.Course

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import io.reactivex.Single
import org.stepik.android.data.course_revenue.source.CourseBenefitByMonthsRemoteDataSource
import org.stepik.android.domain.course_revenue.model.CourseBenefitByMonth
import org.stepik.android.domain.course_revenue.repository.CourseBenefitByMonthsRepository
import ru.nobird.android.core.model.PagedList
import ru.nobird.app.core.model.PagedList
import javax.inject.Inject

class CourseBenefitByMonthsRepositoryImpl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import io.reactivex.Single
import org.stepik.android.data.course_revenue.source.CourseBenefitsRemoteDataSource
import org.stepik.android.domain.course_revenue.model.CourseBenefit
import org.stepik.android.domain.course_revenue.repository.CourseBenefitsRepository
import ru.nobird.android.core.model.PagedList
import ru.nobird.app.core.model.PagedList
import javax.inject.Inject

class CourseBenefitsRepositoryImpl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.stepik.android.data.course_revenue.source

import io.reactivex.Single
import org.stepik.android.domain.course_revenue.model.CourseBenefitByMonth
import ru.nobird.android.core.model.PagedList
import ru.nobird.app.core.model.PagedList

interface CourseBenefitByMonthsRemoteDataSource {
fun getCourseBenefitByMonths(courseId: Long, page: Int = 1): Single<PagedList<CourseBenefitByMonth>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.stepik.android.data.course_revenue.source

import io.reactivex.Single
import org.stepik.android.domain.course_revenue.model.CourseBenefit
import ru.nobird.android.core.model.PagedList
import ru.nobird.app.core.model.PagedList

interface CourseBenefitsRemoteDataSource {
fun getCourseBenefits(courseId: Long, page: Int = 1): Single<PagedList<CourseBenefit>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package org.stepik.android.data.course_reviews.repository
import io.reactivex.Completable
import io.reactivex.Maybe
import io.reactivex.Single
import ru.nobird.android.core.model.PagedList
import ru.nobird.app.core.model.PagedList
import ru.nobird.android.domain.rx.doCompletableOnSuccess
import org.stepik.android.data.course_reviews.source.CourseReviewsCacheDataSource
import org.stepik.android.data.course_reviews.source.CourseReviewsRemoteDataSource
Expand Down
Loading

0 comments on commit 9dfb85a

Please sign in to comment.