-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* moved hint handler to domain layer * fixed app layer espresso tests * fix app layer robolectric tests * fixed domain layer tests * Added annotations to test exemptions * proto lint fix * fixed hint handler for training sessions * nit and removed test excemptions * added hint tests for config change * fixed test file exemptions * fixed failing test * made HintHandler injectable * fixed ktlint error * Added tests for hint handler * nits * fixed failing build * fixed failing build * fix build * fixed imports * nits and improved testing * updated exploration.proto * removed progress controller from kdoc exemptions * fix failing test * moved timer to domain * fixed build and nits * nit * added listener back to test exemptions * nit fixes and added more tests * lint fix * First round: make HintHandler independent. This also brings HintHandler into an interface + factory pattern. This isn't the final design since I think we can largely simplify the way hints work; that'll be my next pass. This breaks questions & HintHandlerTest; those will require further work later. * Simplify HelpIndex in proto. Move HelpIndex to PendingState to avoid the entire domain case of handling CompletedState. * Simplify hints & solutions. This removes the per-Hint/Solution tracking & completely leans on HelpIndex for proper hints & solution tracking both in the domain & UI layers. Fixes a bunch of other stuff, too, including QuestionAssessmentProgressController tests. * Clean up dead code paths & improve handler API. * fixed test modules and lint * renamed HintHandlerTest to HintHandlerImplTest * Add tests for HintHandler. This introduces some new explorations for making testing HintHandlerImpl easier. * Add remaining tests/exemptions for new files. * Lint fixes. * Post-merge fixes (including lint fixes). * Post-merge maven_install fix. * Revert "Merge branch 'develop' into move-hint-handler-to-domain" This reverts commit e2fea90, reversing changes made to 6659858. * Post-merge Gradle-discovered fixes. * Revert "Revert "Merge branch 'develop' into move-hint-handler-to-domain"" This reverts commit b1622c0. * Additional post-merge fixes. * Address first batch of review comments. (Clarified some proto fields & remove trailing comma). * Fix testing module tests & remove unnecessary changes. * Simplify & fix more reviewer comments. This simplifies some data pipelining in the UI, and improves HintHandler documentation in addition to fixing some more reviewer comments. * Improve documentation to address review comment. * Rename new module to prod module. This simplifies the changes & approvals needed in #3705. * Rename proto field (to address review comment). Also, fix broken reference error accidentally introduced in an earlier commit. * Kotlin lint fixes. Co-authored-by: yashraj-01 <yashrajprime@gmail.com> Co-authored-by: Ben Henning <henning.benmax@gmail.com>
- Loading branch information
1 parent
da652a4
commit d2372ae
Showing
181 changed files
with
5,378 additions
and
1,464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
app/src/main/java/org/oppia/android/app/hintsandsolution/RevealHintListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package org.oppia.android.app.hintsandsolution | ||
|
||
/** Interface to check the preference regarding alert for [HintsAndSolutionDialogFragment]. */ | ||
/** Callback listener for when the user wishes to reveal a hint. */ | ||
interface RevealHintListener { | ||
/** | ||
* If saveUserChoice is true, show solution and save preference do not show dialog again. | ||
* If saveUserChoice is false, show solution and do not save preference and show this dialog next time too. | ||
* Called when the user indicates they want to reveal the hint corresponding to the specified | ||
* index. | ||
*/ | ||
fun revealHint(saveUserChoice: Boolean, hintIndex: Int) | ||
fun revealHint(hintIndex: Int) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.