Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feat/ui_changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PavloNetrebchuk committed Mar 27, 2024
2 parents f514c8b + f13bd47 commit 8b1146f
Show file tree
Hide file tree
Showing 18 changed files with 128 additions and 593 deletions.
3 changes: 2 additions & 1 deletion app/src/main/java/org/openedx/app/di/ScreenModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ val screenModule = module {
get(),
get(),
get(),
get(),
)
}
viewModel { (courseId: String, handoutsType: String) ->
Expand All @@ -259,7 +260,7 @@ val screenModule = module {
viewModel { CourseSearchViewModel(get(), get(), get(), get(), get()) }
viewModel { SelectDialogViewModel(get()) }

single { DiscussionRepository(get(), get()) }
single { DiscussionRepository(get(), get(), get()) }
factory { DiscussionInteractor(get()) }
viewModel { (courseId: String) -> DiscussionTopicsViewModel(get(), get(), get(), courseId) }
viewModel { (courseId: String, topicId: String, threadType: String) ->
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ plugins {
id "com.google.firebase.crashlytics" version "2.9.6" apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
tasks.register('clean', Delete) {
delete rootProject.layout.buildDirectory
}

ext {
Expand Down
9 changes: 9 additions & 0 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
plugins {
id 'java-library'
}

repositories {
mavenCentral()
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

dependencies {
implementation localGroovy()
implementation gradleApi()
Expand Down
7 changes: 4 additions & 3 deletions core/src/main/java/org/openedx/core/ui/ComposeCommon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ fun Toolbar(
canShowBackBtn: Boolean = false,
onBackClick: () -> Unit = {}
) {
Row(
Box(
modifier = modifier
.fillMaxWidth()
.height(48.dp),
Expand All @@ -162,9 +162,10 @@ fun Toolbar(

Text(
modifier = Modifier
.fillMaxWidth()
.testTag("txt_toolbar_title")
.align(Alignment.CenterVertically)
.padding(end = 16.dp),
.align(Alignment.Center)
.padding(start = 48.dp, end = 48.dp),
text = label,
color = MaterialTheme.appColors.textPrimary,
style = MaterialTheme.appTypography.titleMedium,
Expand Down

This file was deleted.

Loading

0 comments on commit 8b1146f

Please sign in to comment.