From 531d5512bc1e1a005744afa50e4f7dcaa279e355 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 09:56:53 -0500 Subject: [PATCH 1/8] actions: bump `com.google.dagger:hilt-android` to 2.49 (fixes #2783) (#2768) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dogi --- app/build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 516ccca5d1..98dee52407 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 21 targetSdkVersion 34 - versionCode 1175 - versionName "0.11.75" + versionCode 1176 + versionName "0.11.76" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true @@ -102,8 +102,8 @@ dependencies { implementation 'com.github.jeancsanchez:jcplayer:2.7.2' - implementation "com.google.dagger:hilt-android:2.48.1" - kapt "com.google.dagger:hilt-android-compiler:2.48.1" + implementation "com.google.dagger:hilt-android:2.49" + kapt "com.google.dagger:hilt-android-compiler:2.49" implementation 'com.mikepenz:crossfader:1.6.0@aar' implementation 'com.mikepenz:crossfadedrawerlayout:1.1.0@aar' From 3e6df1d2f4020bdaea5bff55efd3a987db2bd71b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 10:09:49 -0500 Subject: [PATCH 2/8] actions: bump `com.google.dagger:hilt-android-gradle-plugin` to 2.49 (fixes #2785) (#2770) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dogi --- app/build.gradle | 4 ++-- build.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 98dee52407..5474c7682a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 21 targetSdkVersion 34 - versionCode 1176 - versionName "0.11.76" + versionCode 1177 + versionName "0.11.77" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/build.gradle b/build.gradle index 2e67f33cd6..3182fad1c7 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:8.1.4' classpath "io.realm:realm-gradle-plugin:10.17.0" - classpath "com.google.dagger:hilt-android-gradle-plugin:2.48.1" + classpath "com.google.dagger:hilt-android-gradle-plugin:2.49" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files From e7cdac870e644383161364b8aadcbcc5948cd754 Mon Sep 17 00:00:00 2001 From: Gideon Okuro Date: Mon, 4 Dec 2023 20:24:26 +0300 Subject: [PATCH 3/8] courses: improve stability (fixes #2788) (#2789) Co-authored-by: dogi --- app/build.gradle | 4 ++-- .../java/org/ole/planet/myplanet/model/RealmCourseActivity.kt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 5474c7682a..82ba6e6cce 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 21 targetSdkVersion 34 - versionCode 1177 - versionName "0.11.77" + versionCode 1178 + versionName "0.11.78" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/org/ole/planet/myplanet/model/RealmCourseActivity.kt b/app/src/main/java/org/ole/planet/myplanet/model/RealmCourseActivity.kt index 52f25d026c..baef96b0fc 100644 --- a/app/src/main/java/org/ole/planet/myplanet/model/RealmCourseActivity.kt +++ b/app/src/main/java/org/ole/planet/myplanet/model/RealmCourseActivity.kt @@ -10,6 +10,7 @@ import java.util.UUID open class RealmCourseActivity : RealmObject() { @PrimaryKey + private var id: String? = null private var _id: String? = null @JvmField var createdOn: String? = null From 7318f53a9e2516a2ca633debae0b4102606738ae Mon Sep 17 00:00:00 2001 From: Gideon Okuro Date: Mon, 4 Dec 2023 20:36:28 +0300 Subject: [PATCH 4/8] courses: better course step display (fixes #2771) (#2782) Co-authored-by: dogi --- app/build.gradle | 4 ++-- .../ole/planet/myplanet/ui/course/CourseStepFragment.java | 4 ++-- app/src/main/res/layout/fragment_course_step.xml | 5 ++++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 82ba6e6cce..1aeba4388f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 21 targetSdkVersion 34 - versionCode 1178 - versionName "0.11.78" + versionCode 1179 + versionName "0.11.79" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/course/CourseStepFragment.java b/app/src/main/java/org/ole/planet/myplanet/ui/course/CourseStepFragment.java index a8444ef703..da9d94242c 100644 --- a/app/src/main/java/org/ole/planet/myplanet/ui/course/CourseStepFragment.java +++ b/app/src/main/java/org/ole/planet/myplanet/ui/course/CourseStepFragment.java @@ -142,7 +142,7 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) { fragmentCourseStepBinding.description.setMovementMethod(LinkMovementMethod.getInstance()); if (!RealmMyCourse.isMyCourse(user.getId(), step.getCourseId(), mRealm)) { - fragmentCourseStepBinding.btnTakeTest.setVisibility(View.INVISIBLE); + fragmentCourseStepBinding.btnTakeTest.setVisibility(View.GONE); } setListeners(); @@ -164,7 +164,7 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) { } private void hideTestIfNoQuestion() { - fragmentCourseStepBinding.btnTakeTest.setVisibility(View.INVISIBLE); + fragmentCourseStepBinding.btnTakeTest.setVisibility(View.GONE); if (stepExams != null && stepExams.size() > 0) { String first_step_id = stepExams.get(0).getId(); RealmResults questions = mRealm.where(RealmExamQuestion.class).equalTo("examId", first_step_id).findAll(); diff --git a/app/src/main/res/layout/fragment_course_step.xml b/app/src/main/res/layout/fragment_course_step.xml index aa52cb3ee9..d93988ee11 100644 --- a/app/src/main/res/layout/fragment_course_step.xml +++ b/app/src/main/res/layout/fragment_course_step.xml @@ -13,6 +13,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="right" + android:layout_marginEnd="@dimen/_10dp" android:gravity="right">