Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge all the things part 3 (DO NOT MERGE) #506

Closed
wants to merge 376 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
376 commits
Select commit Hold shift + click to select a range
be186d3
Added ProfileTestHelperTest
jamesxu0 Nov 8, 2019
7c57f11
added test case for profilechooserfragment
jamesxu0 Nov 8, 2019
43a5508
Merge branch 'implement-profile-chooser-fragment' into implement-add-…
jamesxu0 Nov 8, 2019
8c487fc
Added test for AdminAuthActivity
jamesxu0 Nov 9, 2019
91b6ab2
using string.xml values in tests
jamesxu0 Nov 9, 2019
d0de127
Merge branch 'implement-profile-chooser-fragment' into implement-add-…
jamesxu0 Nov 9, 2019
730049b
Started AddProfileActivityTest
jamesxu0 Nov 9, 2019
851b83e
Finished test cases
jamesxu0 Nov 10, 2019
1d7130b
Merge branch 'implement-add-profile-fragment' into implement-pin-pass…
jamesxu0 Nov 10, 2019
53abdc1
Finished test cases and adjusted sizes
jamesxu0 Nov 11, 2019
221bdbe
Minor fixes and added default profile avatar
jamesxu0 Nov 11, 2019
b2c68fb
minor fixes
jamesxu0 Nov 11, 2019
16cf025
added endline
jamesxu0 Nov 11, 2019
16f911b
Merge branch 'implement-profile-chooser-fragment' into implement-add-…
jamesxu0 Nov 11, 2019
fd946b4
Minor fixes
jamesxu0 Nov 11, 2019
a5c7c57
removed resources
jamesxu0 Nov 11, 2019
250f2ce
Merge branch 'implement-add-profile-fragment' into implement-pin-pass…
jamesxu0 Nov 11, 2019
0684cff
Minor fixes
jamesxu0 Nov 11, 2019
acf2610
nit
nikitamarysolomanpvt Nov 11, 2019
b760c44
UI hi-fi for text,number,and fraction input views
nikitamarysolomanpvt Nov 11, 2019
deaa102
UI hi-fi for text,number,and fraction input views
nikitamarysolomanpvt Nov 11, 2019
5f30564
UI hi-fi for text,number,and fraction input views nit
nikitamarysolomanpvt Nov 12, 2019
8484f34
nit
nikitamarysolomanpvt Nov 12, 2019
f15d11e
Finished audio functionality for statefragment
jamesxu0 Nov 12, 2019
767b7c7
moved audio fragment to top
jamesxu0 Nov 12, 2019
33e1232
nit
nikitamarysolomanpvt Nov 12, 2019
f693a72
Added test cases to NetworkConnectionUtil
jamesxu0 Nov 12, 2019
a251c62
Added remove audiofragment animation
jamesxu0 Nov 12, 2019
be4415e
Minor fixes.
jamesxu0 Nov 12, 2019
98b83e8
moved exploration retrieval to AudioViewModel
jamesxu0 Nov 12, 2019
5a02bdd
Merge branch 'introduce-question-progress-controller-interface' into …
jamesxu0 Nov 12, 2019
d9c5fc3
Started UI
jamesxu0 Nov 12, 2019
6cdc71e
setup ViewModel
jamesxu0 Nov 13, 2019
d108ff0
test cases update
nikitamarysolomanpvt Nov 13, 2019
fc2355f
accent color
nikitamarysolomanpvt Nov 13, 2019
adc0fbf
input type in fraction input type
nikitamarysolomanpvt Nov 13, 2019
e0a7c5a
input type in fraction input type
nikitamarysolomanpvt Nov 13, 2019
47b7aad
Merge branches 'develop' and 'hi-fi-input-interaction-views' of https…
nikitamarysolomanpvt Nov 13, 2019
1e3ed3a
Merge branches 'develop' and 'hi-fi-input-interaction-views' of https…
nikitamarysolomanpvt Nov 13, 2019
fe0f1d8
text color in input type views
nikitamarysolomanpvt Nov 13, 2019
8a489a0
changed inputtype in edit text
nikitamarysolomanpvt Nov 13, 2019
3a50d06
added binding adapter
jamesxu0 Nov 13, 2019
22d1c0b
Added no audio available
jamesxu0 Nov 13, 2019
66b9450
Handles basic functionality
jamesxu0 Nov 14, 2019
77f21e9
Moved code around
jamesxu0 Nov 14, 2019
0eff2ef
margin updated in input views
nikitamarysolomanpvt Nov 14, 2019
9d8f704
margin updated in input views
nikitamarysolomanpvt Nov 14, 2019
81c012c
Added replay button
jamesxu0 Nov 14, 2019
5a5d00c
Remove all temporary topic, skill, exploration, story, and question
BenHenning Nov 14, 2019
00aa3da
Changed NetworkConnectionUtil for tests
jamesxu0 Nov 15, 2019
33918e1
new audio test cases, removed old ones
jamesxu0 Nov 15, 2019
bf5b915
Merge branch 'develop' into state-fragment-audio
jamesxu0 Nov 15, 2019
ede3c0a
Fixed tests
jamesxu0 Nov 15, 2019
635c8cb
Fixed comment
jamesxu0 Nov 15, 2019
17da879
Fixed rotation case
jamesxu0 Nov 16, 2019
7d19bc8
Removed unused methods and imports
jamesxu0 Nov 16, 2019
3bb99f9
Started updating to DataProviders
jamesxu0 Nov 16, 2019
b429ec8
nit
nikitamarysolomanpvt Nov 18, 2019
9981d81
keyboardhelper to handle softinoutkeyboard
nikitamarysolomanpvt Nov 18, 2019
321facd
Merge branch 'develop' of https://github.com/oppia/oppia-android into…
nikitamarysolomanpvt Nov 18, 2019
ef864b2
Edit text focus removed.
nikitamarysolomanpvt Nov 18, 2019
70d4c73
as per review suggestion added binding.stateRecyclerView.smoothScroll…
nikitamarysolomanpvt Nov 18, 2019
6d01b40
nit
nikitamarysolomanpvt Nov 18, 2019
8289c5e
Fix-406
Nov 18, 2019
900d248
nit changes and keybord helper class renamed.
nikitamarysolomanpvt Nov 18, 2019
4c6a0db
Merge branches 'fix-406' and 'hi-fi-input-interaction-views' of https…
nikitamarysolomanpvt Nov 18, 2019
68e70a3
Added feedback playback
jamesxu0 Nov 19, 2019
c043ae1
Merge branch 'develop' into question_player_lofi
jamesxu0 Nov 19, 2019
1c94120
nit
nikitamarysolomanpvt Nov 19, 2019
8e88592
merged with develop, inputviews test cases fix
nikitamarysolomanpvt Nov 19, 2019
f9f5149
kdoc for keyboardhelper.nit changes
nikitamarysolomanpvt Nov 19, 2019
7922ce3
kdoc for keyboardhelper
nikitamarysolomanpvt Nov 19, 2019
c288193
nit
nikitamarysolomanpvt Nov 19, 2019
16ed76d
nit
nikitamarysolomanpvt Nov 19, 2019
03ddc53
Merge branches 'develop' and 'hi-fi-input-interaction-views' of https…
nikitamarysolomanpvt Nov 19, 2019
9984a6d
nit
nikitamarysolomanpvt Nov 19, 2019
fbfb1c0
nit
nikitamarysolomanpvt Nov 19, 2019
9b69e00
nit
nikitamarysolomanpvt Nov 19, 2019
5c9ed90
validation in fraction input
nikitamarysolomanpvt Nov 19, 2019
1adc337
merged with develop
nikitamarysolomanpvt Nov 19, 2019
196a780
nit
nikitamarysolomanpvt Nov 19, 2019
4616518
nit
nikitamarysolomanpvt Nov 19, 2019
01ce99b
Added autoplay
jamesxu0 Nov 19, 2019
43a919c
Add support for showing concept cards in feedback, and add a concept
BenHenning Nov 19, 2019
a95b285
Merge branch 'develop' into implement-pin-password
jamesxu0 Nov 20, 2019
3ca5f57
Fixed recyclerview
jamesxu0 Nov 20, 2019
aea7e5b
Always add audio fragment
jamesxu0 Nov 20, 2019
d065f43
nit
nikitamarysolomanpvt Nov 20, 2019
21e93d3
Working on test cases
jamesxu0 Nov 20, 2019
21519a8
Added exploration tests and fixed not showing exploration title
jamesxu0 Nov 21, 2019
bc12f89
Added more test cases
jamesxu0 Nov 21, 2019
c2b3dd0
Do not auto play audio when language selection is shown
jamesxu0 Nov 21, 2019
e7c9549
Fixed test case
jamesxu0 Nov 21, 2019
5f4c993
Merge branch 'develop' into state-fragment-audio
jamesxu0 Nov 22, 2019
ab38cda
Fixed loginToProfile
jamesxu0 Nov 22, 2019
e0659c3
errorcode enum
nikitamarysolomanpvt Nov 22, 2019
b2118f3
errorcode enum
nikitamarysolomanpvt Nov 22, 2019
82a9331
nit
nikitamarysolomanpvt Nov 22, 2019
db757c3
nit
nikitamarysolomanpvt Nov 22, 2019
51e675a
Merge branch 'develop' into Implement-profile-management-controller
jamesxu0 Nov 25, 2019
835ad9f
Minor fixes
jamesxu0 Nov 25, 2019
787d5e7
nit
nikitamarysolomanpvt Nov 25, 2019
46200b8
nit
nikitamarysolomanpvt Nov 25, 2019
53eaaea
Added comments and new test.
jamesxu0 Nov 25, 2019
ba6b3c8
Merge branch 'Implement-profile-management-controller' into implement…
jamesxu0 Nov 25, 2019
3881966
minor fixes
jamesxu0 Nov 25, 2019
fb38ba2
Merge branch 'develop' into introduce-question-progress-controller-im…
BenHenning Nov 26, 2019
2711acf
Merge branch 'develop' into question_player_lofi
BenHenning Nov 26, 2019
f86e776
Merge branch 'introduce-question-progress-controller-implementation' …
BenHenning Nov 26, 2019
3ed0cf2
Make questions partially work.
BenHenning Nov 26, 2019
d74a1b0
Temporarily remove check in StateDeck that breaks questions.
BenHenning Nov 26, 2019
11451ff
error text on Fraction input
nikitamarysolomanpvt Nov 26, 2019
0e2ec7a
error text on Fraction input
nikitamarysolomanpvt Nov 26, 2019
374b4de
nit
nikitamarysolomanpvt Nov 26, 2019
d36e0ad
nit
nikitamarysolomanpvt Nov 26, 2019
bb5797d
Home fragment implementation 2
Nov 26, 2019
945e2b2
Fixed bug
jamesxu0 Nov 26, 2019
7ae7953
Added vector version of avatar
jamesxu0 Nov 26, 2019
992d780
Merge branch 'Implement-profile-management-controller' into implement…
jamesxu0 Nov 26, 2019
1ae27a7
Merge branch 'develop' into state-fragment-audio
jamesxu0 Nov 27, 2019
91b0902
Minor bug fixes
Nov 27, 2019
bcf3604
Updated test cases
Nov 27, 2019
128764e
Fix other test cases
Nov 27, 2019
f0b4a2f
updated FractionParsingErrors Enum with string resources, added getPe…
nikitamarysolomanpvt Nov 27, 2019
9af5ce4
nit
nikitamarysolomanpvt Nov 27, 2019
4e04196
nit
nikitamarysolomanpvt Nov 27, 2019
812fb69
nit
nikitamarysolomanpvt Nov 27, 2019
7288409
Minor fixes.
jamesxu0 Nov 27, 2019
21420e4
Converted livedata to dataproviders
jamesxu0 Nov 27, 2019
aed08c8
Merge branch 'Implement-profile-management-controller' into implement…
jamesxu0 Nov 27, 2019
416b998
Merge branch 'implement-profile-chooser-fragment' into implement-add-…
jamesxu0 Nov 27, 2019
6535831
Minor fixes
jamesxu0 Nov 27, 2019
0b8991b
Merge branch 'Implement-profile-management-controller' into implement…
jamesxu0 Nov 27, 2019
d349940
Removed coroutines from test.
jamesxu0 Nov 27, 2019
49d2f47
Merge branch 'implement-profile-chooser-fragment' into implement-add-…
jamesxu0 Nov 27, 2019
4ad7773
Added helper methods
jamesxu0 Nov 27, 2019
ac44e90
Removed ExperimentalCoroutinesApi
jamesxu0 Nov 27, 2019
5603950
Merge branch 'Implement-profile-management-controller' into implement…
jamesxu0 Nov 27, 2019
fa2cf78
Removed import
jamesxu0 Nov 27, 2019
4d15d4b
Removed ExperimentalCouroutinesApi
jamesxu0 Nov 27, 2019
676c903
Merge branch 'implement-profile-chooser-fragment' into implement-add-…
jamesxu0 Nov 27, 2019
b26bd3b
Addressed comments
jamesxu0 Nov 28, 2019
d291dd2
Merge branch 'implement-add-profile-fragment' into implement-pin-pass…
jamesxu0 Nov 28, 2019
fb2bd89
Fixed Project.xml
jamesxu0 Nov 28, 2019
9118604
Addressed all comments.
jamesxu0 Nov 28, 2019
8c9e415
Merge branch 'develop' into state-fragment-audio
jamesxu0 Nov 28, 2019
a7e68ce
Merge remote-tracking branch 'upstream/develop' into home-low-fi-part-2
Nov 28, 2019
5296ad8
Optimised UX
Nov 28, 2019
bb81937
Merge branches 'develop' and 'hi-fi-input-interaction-views-validatio…
nikitamarysolomanpvt Nov 28, 2019
2ab1b45
Merge conflict issue fix
nikitamarysolomanpvt Nov 28, 2019
056ea73
Merge branch 'develop' of https://github.com/oppia/oppia-android into…
nikitamarysolomanpvt Nov 28, 2019
dd4d929
Merge branch 'develop' of https://github.com/oppia/oppia-android into…
nikitamarysolomanpvt Nov 28, 2019
f7ad0d0
not showing error on fiest - symbol in fraction input, new method for…
nikitamarysolomanpvt Nov 28, 2019
c3a9b0b
not showing error on fiest - symbol in fraction input, new method for…
nikitamarysolomanpvt Nov 28, 2019
a5cf2ba
nit
nikitamarysolomanpvt Nov 28, 2019
388ec6d
partial answer removed error message display by regex for partial values
nikitamarysolomanpvt Nov 28, 2019
c617d13
nit import optimisation changes reverted
nikitamarysolomanpvt Nov 28, 2019
289135c
nit import optimisation changes reverted
nikitamarysolomanpvt Nov 28, 2019
ddc950a
Topic play animation
Nov 28, 2019
da5701c
nit import optimisation changes reverted
nikitamarysolomanpvt Nov 28, 2019
5429720
carsh fix in EditTextBindingAdapters
nikitamarysolomanpvt Nov 28, 2019
9d560a2
Minor bug fixes
Nov 28, 2019
2b9924a
on submit button displays error for partial input and divided by 0
nikitamarysolomanpvt Nov 29, 2019
2632149
Minor optimisation
Nov 29, 2019
afe06ad
instance check
nikitamarysolomanpvt Nov 29, 2019
ae1fb63
Final topic play animation
Nov 29, 2019
16c18aa
Remove unused code
Nov 29, 2019
faf8229
Nit renaming
Nov 29, 2019
afc639b
Improvised bullet code
Nov 29, 2019
a209c6f
moved FractionParsingError to StringToFractionParser,
nikitamarysolomanpvt Nov 29, 2019
7309044
color names updated casing
nikitamarysolomanpvt Nov 29, 2019
ea87520
Audio Content highlight
Nov 29, 2019
aef1b58
Ensure all state navigation buttons are on the same line and the same
BenHenning Dec 1, 2019
ddbbca4
Fix dp adjustment that caused previous button to disappear.
BenHenning Dec 1, 2019
0be9562
Undo .idea/misc.xml change that snuck in.
BenHenning Dec 1, 2019
dd42f75
Update & fix StateFragmentTest (at least for Espresso). See #495 desc…
BenHenning Dec 1, 2019
8496db0
Merge branch 'develop' into introduce-question-progress-controller-im…
BenHenning Dec 1, 2019
3071c87
Merge branch 'introduce-question-progress-controller-implementation' …
BenHenning Dec 1, 2019
82a47b5
Merge branch 'align-and-dedup-continue-button-state-fragment' into te…
BenHenning Dec 1, 2019
7d3b53c
Merge branch 'temp-base-branch-for-question-player' into question_pla…
BenHenning Dec 1, 2019
67f8965
Post-merge fixes with some temporary stop-gap solutions.
BenHenning Dec 1, 2019
2dcd1ad
Fix questions image rendering and consolidate GCS resource bucket names.
BenHenning Dec 1, 2019
da371eb
Fix question session not properly being reinitialized for new sessions.
BenHenning Dec 1, 2019
d3c02e2
Merge branch 'introduce-question-progress-controller-implementation' …
BenHenning Dec 1, 2019
689e6e1
Merge branch 'temp-base-branch-for-question-player' into question_pla…
BenHenning Dec 1, 2019
4ace331
Fix index accounting for questions. Before, the index incremented upon
BenHenning Dec 1, 2019
1cf2a42
Remove support for backward navigation in questions since it isn't
BenHenning Dec 1, 2019
1283e82
Merge branch 'introduce-question-progress-controller-implementation' …
BenHenning Dec 1, 2019
28591fb
Merge branch 'temp-base-branch-for-question-player' into question_pla…
BenHenning Dec 1, 2019
93e233e
Set title of question activity to 'Train Mode'.
BenHenning Dec 1, 2019
5f09c80
Add support for a synthetic ephemeral question to represent the end of a
BenHenning Dec 1, 2019
11d4300
Merge branch 'introduce-question-progress-controller-implementation' …
BenHenning Dec 1, 2019
84c4bba
Merge branch 'temp-base-branch-for-question-player' into question_pla…
BenHenning Dec 1, 2019
c29ed4d
Update question progress tracking to be translatable and to ensure that
BenHenning Dec 1, 2019
0c0aaa2
Move most state player functional support into a new configurable
BenHenning Dec 1, 2019
cebe3c8
Hook up StatePlayerRecyclerViewAssembler to the question player fragment
BenHenning Dec 1, 2019
d236445
Introduce proper terminal page and disable overscroll. Note that the end
BenHenning Dec 1, 2019
1700630
Add support & button for training session replay.
BenHenning Dec 2, 2019
7cfc880
Update/add TODOs to correspond to GitHub tracked issues.
BenHenning Dec 2, 2019
928baa7
Fix broken import.
BenHenning Dec 2, 2019
75b9afb
Merge remote-tracking branch 'upstream/develop' into home-low-fi-part-2
Dec 2, 2019
77fc38f
All suggested changes
Dec 2, 2019
f8b35e6
Merge remote-tracking branch 'upstream/develop' into topic-play-anima…
Dec 2, 2019
fa42522
Introduced disparity between the patterns used to validate vs the one…
nikitamarysolomanpvt Dec 2, 2019
f288b1b
Updated test cases
Dec 2, 2019
7680e22
Merge remote-tracking branch 'upstream/develop' into bullet-fix-2
Dec 2, 2019
7b992e5
Updated bullets
Dec 2, 2019
8460bf1
test cases for error messages.
nikitamarysolomanpvt Dec 2, 2019
31f9cef
nit
nikitamarysolomanpvt Dec 2, 2019
daf908b
Merge branch 'introduce-question-player-ui-structure' into temp-integ…
BenHenning Dec 3, 2019
93dce52
Merge branch 'implement-pin-password' into temp-integration-pt3
BenHenning Dec 3, 2019
4137504
Merge branch 'home-low-fi-part-2' into temp-integration-pt3
BenHenning Dec 3, 2019
c7ad282
Merge branch 'topic-play-animation-part-1' into temp-integration-pt3
BenHenning Dec 3, 2019
1076a06
Merge branch 'state-fragment-audio' into temp-integration-pt3
BenHenning Dec 3, 2019
2eb945c
Merge branch 'show-concept-card-links' into temp-integration-pt3
BenHenning Dec 3, 2019
0d53298
Merge branch 'hifi-audio-content-card' into temp-integration-pt3
BenHenning Dec 3, 2019
415ab5b
Merge branch 'bullet-fix-2' into temp-integration-pt3
BenHenning Dec 3, 2019
7cdd43d
Merge branch 'hi-fi-input-interaction-views-validation' into temp-int…
BenHenning Dec 3, 2019
f5013a4
Fix post-merge breakage.
BenHenning Dec 3, 2019
8da7fbd
Merge branch 'remove-temp-topic-data' into temp-integration-pt3
BenHenning Dec 3, 2019
8c600c7
Remove sample question.
BenHenning Dec 3, 2019
88ae630
Attempt to fix content highlighting during audio playout. Didn't work.
BenHenning Dec 3, 2019
cdc0458
Hardcode profiles temporarily.
BenHenning Nov 20, 2019
63b070d
Default audio language to Hindi.
BenHenning Dec 3, 2019
2b121f5
Enable local file caching.
BenHenning Dec 3, 2019
e424455
Fix voiceover URL formatting when caching voiceovers.
BenHenning Dec 3, 2019
04714de
Fix image URL building for cached images.
BenHenning Dec 3, 2019
642c835
partial mixed fraction issue fix
nikitamarysolomanpvt Dec 3, 2019
889813a
nit
nikitamarysolomanpvt Dec 3, 2019
4a75614
Image centre fix
Dec 3, 2019
8810d08
Function name update
Dec 3, 2019
f5d7253
Updated code as per suggestion
Dec 4, 2019
bb6c9be
Fixed pin password spacing
jamesxu0 Dec 4, 2019
e5e4b20
Always show audio on fraction exploration
jamesxu0 Dec 4, 2019
5fb1395
Merge branch 'hi-fi-input-interaction-views-validation' into temp-int…
BenHenning Dec 4, 2019
331fda3
Autoplay audio fix (#515)
rt4914 Dec 4, 2019
2116427
Merge branch 'temp-integration-pt3' of github.com:oppia/oppia-android…
BenHenning Dec 5, 2019
10263a0
Fix part of #494: Audio Content highlighting (#514)
rt4914 Dec 5, 2019
286389e
Merge branch 'rich-text-image-fix' into temp-integration-pt3
BenHenning Dec 5, 2019
5538240
Merge branch 'develop' into temp-integration-pt3
BenHenning Dec 5, 2019
33cc142
Guarantee setData is called when collapsing previous for questions
jamesxu0 Dec 5, 2019
00201d4
Fixed audio returning to content.
jamesxu0 Dec 5, 2019
8f5a1fc
Number of questions correct first try.
jamesxu0 Dec 5, 2019
95e25e7
Merge branch 'temp-integration-pt3' of github.com:oppia/oppia-android…
BenHenning Dec 5, 2019
8fba550
Always show audio bar for meaning of equal parts rather than 'what is a
BenHenning Dec 5, 2019
97ff918
Fixes for MDPI devices
Dec 5, 2019
a775f02
EOF added
Dec 5, 2019
dab0642
Replace a few refresher lesson links with concept card tags, instead …
BenHenning Dec 5, 2019
613cc1b
Merge branch 'bullet-fix-2' into temp-integration-pt3
BenHenning Dec 5, 2019
81cb11e
Merge branch 'develop' into temp-integration-pt3
BenHenning Dec 5, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ dependencies {
'androidx.lifecycle:lifecycle-runtime-ktx:2.2.0-alpha03',
'androidx.multidex:multidex:2.0.1',
'androidx.recyclerview:recyclerview:1.0.0',
'com.chaos.view:pinview:1.4.3',
'com.github.bumptech.glide:glide:4.9.0',
'com.google.android.material:material:1.0.0-alpha1',
'com.google.android.material:material:1.0.0',
'com.google.dagger:dagger:2.24',
'com.google.guava:guava:28.1-android',
'de.hdodenhof:circleimageview:3.0.1',
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version",
'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1',
'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.1',
Expand Down Expand Up @@ -113,6 +115,8 @@ dependencies {
// TODO (#59): Remove this once Bazel is introduced
api project(':data')
implementation project(":model")
testImplementation project(":model")
androidTestImplementation project(":model")
implementation project(":domain")
implementation project(":utility")
}
41 changes: 26 additions & 15 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.oppia.app">

<!-- TODO(#56): Reenable landscape support. -->

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:name=".application.OppiaApplication"
android:allowBackup="true"
Expand All @@ -15,20 +14,31 @@
android:theme="@style/OppiaTheme">
<activity
android:name=".home.continueplaying.ContinuePlayingActivity"
android:theme="@style/OppiaThemeWithoutActionBar"
android:screenOrientation="portrait" />
android:screenOrientation="portrait"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity android:name=".testing.AudioFragmentTestActivity" />
<activity
android:name=".home.HomeActivity"
android:screenOrientation="portrait" />
<activity android:name=".player.audio.testing.AudioFragmentTestActivity" />
<activity
android:name=".player.exploration.ExplorationActivity"
android:theme="@style/OppiaThemeWithoutActionBar"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize"/>
android:theme="@style/OppiaThemeWithoutActionBar"
android:windowSoftInputMode="adjustResize" />
<activity android:name=".player.state.testing.StateFragmentTestActivity" />
<activity
android:name=".profile.AddProfileActivity"
android:screenOrientation="portrait" />
<activity
android:name=".profile.AdminAuthActivity"
android:screenOrientation="portrait" />
<activity
android:name=".profile.PinPasswordActivity"
android:theme="@style/OppiaThemeWithoutActionBar"
android:screenOrientation="portrait" />
<activity
android:name=".profile.ProfileActivity"
android:theme="@style/OppiaThemeWithoutActionBar"
android:screenOrientation="portrait" />
<activity
android:name=".settings.profile.ProfileRenameActivity"
Expand All @@ -38,8 +48,8 @@
android:screenOrientation="portrait" />
<activity
android:name=".splash.SplashActivity"
android:theme="@style/SplashScreenTheme"
android:screenOrientation="portrait">
android:screenOrientation="portrait"
android:theme="@style/SplashScreenTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -51,11 +61,10 @@
</activity>
<activity
android:name=".story.StoryActivity"
android:theme="@style/OppiaThemeWithoutActionBar"
android:screenOrientation="portrait" />
android:screenOrientation="portrait"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity android:name=".story.testing.StoryFragmentTestActivity" />
<activity android:name=".testing.BindableAdapterTestActivity" />
<activity android:name=".testing.ContentCardTestActivity" />
<activity android:name=".testing.ContinuePlayingFragmentTestActivity" />
<activity android:name=".testing.HtmlParserTestActivity" />
<activity android:name=".testing.InputInteractionViewTestActivity" />
Expand All @@ -65,13 +74,15 @@
<activity
android:name=".testing.TopicTestActivityForStory"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity android:name=".testing.ExplorationInjectionActivity" />
<activity android:name=".testing.ConceptCardFragmentTestActivity" />
<activity
android:name=".topic.questionplayer.QuestionPlayerActivity"
android:screenOrientation="portrait" />
android:screenOrientation="portrait"
android:label="@string/question_player_title" />
<activity
android:name=".topic.TopicActivity"
android:theme="@style/OppiaThemeWithoutActionBar"
android:screenOrientation="portrait" />
android:screenOrientation="portrait"
android:theme="@style/OppiaThemeWithoutActionBar" />
</application>
</manifest>
14 changes: 10 additions & 4 deletions app/src/main/java/org/oppia/app/activity/ActivityComponent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@ import dagger.Subcomponent
import org.oppia.app.fragment.FragmentComponent
import org.oppia.app.home.HomeActivity
import org.oppia.app.home.continueplaying.ContinuePlayingActivity
import org.oppia.app.player.audio.testing.AudioFragmentTestActivity
import org.oppia.app.testing.AudioFragmentTestActivity
import org.oppia.app.player.exploration.ExplorationActivity
import org.oppia.app.player.state.testing.StateFragmentTestActivity
import org.oppia.app.profile.AddProfileActivity
import org.oppia.app.profile.AdminAuthActivity
import org.oppia.app.profile.PinPasswordActivity
import org.oppia.app.profile.ProfileActivity
import org.oppia.app.settings.profile.ProfileRenameActivity
import org.oppia.app.settings.profile.ProfileResetPinActivity
import org.oppia.app.story.StoryActivity
import org.oppia.app.story.testing.StoryFragmentTestActivity
import org.oppia.app.testing.BindableAdapterTestActivity
import org.oppia.app.testing.ContentCardTestActivity
import org.oppia.app.testing.ContinuePlayingFragmentTestActivity
import org.oppia.app.testing.ExplorationInjectionActivity
import org.oppia.app.testing.HtmlParserTestActivity
import org.oppia.app.testing.TopicTestActivity
import org.oppia.app.testing.TopicTestActivityForStory
Expand All @@ -39,23 +42,26 @@ interface ActivityComponent {

fun getFragmentComponentBuilderProvider(): Provider<FragmentComponent.Builder>

fun inject(addProfileActivity: AddProfileActivity)
fun inject(adminAuthActivity: AdminAuthActivity)
fun inject(audioFragmentTestActivity: AudioFragmentTestActivity)
fun inject(bindableAdapterTestActivity: BindableAdapterTestActivity)
fun inject(conceptCardFragmentTestActivity: ConceptCardFragmentTestActivity)
fun inject(contentCardTestActivity: ContentCardTestActivity)
fun inject(continuePlayingActivity: ContinuePlayingActivity)
fun inject(continuePlayingFragmentTestActivity: ContinuePlayingFragmentTestActivity)
fun inject(explorationActivity: ExplorationActivity)
fun inject(homeActivity: HomeActivity)
fun inject(htmlParserTestActivity: HtmlParserTestActivity)
fun inject(pinPasswordActivity: PinPasswordActivity)
fun inject(profileActivity: ProfileActivity)
fun inject(questionPlayerActivity: QuestionPlayerActivity)
fun inject(stateFragmentTestActivity: StateFragmentTestActivity)
fun inject(profileRenameActivity: ProfileRenameActivity)
fun inject(profileResetPinActivity: ProfileResetPinActivity)
fun inject(storyActivity: StoryActivity)
fun inject(stateFragmentTestActivity: StateFragmentTestActivity)
fun inject(topicActivity: TopicActivity)
fun inject(topicTestActivity: TopicTestActivity)
fun inject(topicTestActivityForStory: TopicTestActivityForStory)
fun inject(storyFragmentTestActivity: StoryFragmentTestActivity)
fun inject(explorationInjectionActivity: ExplorationInjectionActivity)
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import org.oppia.domain.classify.rules.multiplechoiceinput.MultipleChoiceInputMo
import org.oppia.domain.classify.rules.numberwithunits.NumberWithUnitsRuleModule
import org.oppia.domain.classify.rules.numericinput.NumericInputRuleModule
import org.oppia.domain.classify.rules.textinput.TextInputRuleModule
import org.oppia.domain.question.QuestionModule
import org.oppia.util.caching.CachingModule
import org.oppia.util.gcsresource.GcsResourceModule
import org.oppia.util.logging.LoggerModule
Expand All @@ -30,7 +31,7 @@ import javax.inject.Singleton
ContinueModule::class, FractionInputModule::class, ItemSelectionInputModule::class, MultipleChoiceInputModule::class,
NumberWithUnitsRuleModule::class, NumericInputRuleModule::class, TextInputRuleModule::class,
InteractionsModule::class, GcsResourceModule::class, GlideImageLoaderModule::class, ImageParsingModule::class,
HtmlParserEntityTypeModule::class, CachingModule::class
HtmlParserEntityTypeModule::class, CachingModule::class, QuestionModule::class
])
interface ApplicationComponent {
@Component.Builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,20 @@ class NumericInputInteractionView @JvmOverloads constructor(
defStyle: Int = android.R.attr.editTextStyle
) : EditText(context, attrs, defStyle), View.OnFocusChangeListener {
private val stateKeyboardButtonListener: StateKeyboardButtonListener
private val hintText: String

init {
onFocusChangeListener = this
hintText = (hint ?: "").toString()
stateKeyboardButtonListener = context as StateKeyboardButtonListener
}

override fun onFocusChange(v: View, hasFocus: Boolean) = if (hasFocus) {
hint = ""
typeface = Typeface.DEFAULT
showSoftKeyboard(v, context)
} else {
hint = hintText
if (text.isEmpty()) setTypeface(typeface, Typeface.ITALIC)
hideSoftKeyboard(v, context)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package org.oppia.app.databinding

import android.graphics.drawable.GradientDrawable
import android.view.View
import android.widget.Button
import androidx.annotation.ColorInt
import androidx.annotation.DrawableRes
import androidx.databinding.BindingAdapter
import org.oppia.app.R

Expand All @@ -27,3 +29,8 @@ fun setRectangleBackgroundDrawable(view: View, @ColorInt colorRgb: Int) {
// The input color needs to have alpha channel prepended to it.
(view.background as GradientDrawable).setColor((0xff000000 or colorRgb.toLong()).toInt())
}

@BindingAdapter("android:button")
fun setBackgroundResource(button: Button, @DrawableRes resource: Int) {
button.setBackgroundResource(resource)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.oppia.app.databinding

import android.text.TextWatcher
import android.widget.EditText
import androidx.databinding.BindingAdapter

/** This bindingAdapter tells the compiler how to set a TextWatcher on an EditText. */

@BindingAdapter("app:textChangedListener")
fun bindTextWatcher(editText: EditText, textWatcher: TextWatcher) {
editText.addTextChangedListener(textWatcher)
}

Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,11 @@ fun setImageDrawable(imageView: ImageView, thumbnailGraphic: SkillThumbnailGraph
}
)
}

@BindingAdapter("profile:src")
fun setProfileImage(imageView: ImageView, imageUrl: String) {
Glide.with(imageView.context)
.load(imageUrl)
.placeholder(R.drawable.ic_default_avatar)
.into(imageView)
}
14 changes: 7 additions & 7 deletions app/src/main/java/org/oppia/app/fragment/FragmentComponent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import org.oppia.app.home.continueplaying.ContinuePlayingFragment
import org.oppia.app.player.audio.AudioFragment
import org.oppia.app.player.exploration.ExplorationFragment
import org.oppia.app.player.state.StateFragment
import org.oppia.app.profile.AdminSettingsDialogFragment
import org.oppia.app.settings.profile.ProfileEditFragment
import org.oppia.app.settings.profile.ProfileListFragment
import org.oppia.app.player.state.itemviewmodel.InteractionViewModelModule
import org.oppia.app.profile.AddProfileFragment
import org.oppia.app.profile.AdminAuthFragment
import org.oppia.app.profile.ProfileChooserFragment
import org.oppia.app.profile.ResetPinDialogFragment
import org.oppia.app.story.StoryFragment
import org.oppia.app.testing.BindableAdapterTestFragment
import org.oppia.app.topic.TopicFragment
Expand All @@ -40,23 +40,23 @@ interface FragmentComponent {

fun getViewComponentBuilderProvider(): Provider<ViewComponent.Builder>

fun inject(adminSettingsDialogFragment: AdminSettingsDialogFragment)
fun inject(audioFragment: AudioFragment)
fun inject(bindableAdapterTestFragment: BindableAdapterTestFragment)
fun inject(conceptCardFragment: ConceptCardFragment)
fun inject(continuePlayingFragment: ContinuePlayingFragment)
fun inject(explorationFragment: ExplorationFragment)
fun inject(homeFragment: HomeFragment)
fun inject(profileChooserFragment: ProfileChooserFragment)
fun inject(profileEditFragment: ProfileEditFragment)
fun inject(profileListFragment: ProfileListFragment)
fun inject(questionPlayerFragment: QuestionPlayerFragment)
fun inject(resetPinDialogFragment: ResetPinDialogFragment)
fun inject(stateFragment: StateFragment)
fun inject(storyFragment: StoryFragment)
fun inject(topicFragment: TopicFragment)
fun inject(topicOverviewFragment: TopicOverviewFragment)
fun inject(topicPlayFragment: TopicPlayFragment)
fun inject(topicReviewFragment: TopicReviewFragment)
fun inject(topicTrainFragment: TopicTrainFragment)
fun inject(profileListFragment: ProfileListFragment)
fun inject(profileEditFragment: ProfileEditFragment)
fun inject(profileChooserFragment: ProfileChooserFragment)
fun inject(adminAuthFragment: AdminAuthFragment)
fun inject(addProfileFragment: AddProfileFragment)
}
Loading