Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
705 commits
Select commit Hold shift + click to select a range
03c6d5c
Merge remote-tracking branch 'origin/feat/mobile-android-settings' in…
AatmanAJ Dec 4, 2026
353ad52
Merge remote-tracking branch 'origin/feat/mobile-android-uploads' int…
AatmanAJ Dec 4, 2026
5cd5597
Merge branch 'p06-finish2/uploads' into p06-finish2/editor
AatmanAJ Dec 4, 2026
4dd6d80
Merge remote-tracking branch 'origin/feat/mobile-android-analytics' i…
AatmanAJ Dec 4, 2026
90dbb16
Merge branch 'p06-finish2/editor' into p06-finish2/settings
AatmanAJ Dec 4, 2026
7418fc9
Merge branch 'p06-finish2/settings' into p06-finish2/analytics
AatmanAJ Dec 4, 2026
86f7107
Merge remote-tracking branch 'origin/feat/mobile-android-playback' in…
AatmanAJ Dec 4, 2026
d1744ac
Merge remote-tracking branch 'origin/feat/mobile-android-social' into…
AatmanAJ Dec 4, 2026
ed0f585
Merge remote-tracking branch 'origin/feat/mobile-android-management' …
AatmanAJ Dec 4, 2026
b634d56
Merge branch 'p06-finish2/playback' into p06-finish2/social
AatmanAJ Dec 4, 2026
8820a82
Merge branch 'p06-finish2/editor' into p06-finish2/settings
AatmanAJ Dec 4, 2026
e4d440c
Merge branch 'p06-finish2/settings' into p06-finish2/analytics
AatmanAJ Dec 4, 2026
60cac36
Merge branch 'p06-finish2/social' into p06-finish2/management
AatmanAJ Dec 4, 2026
56dee2b
Merge branch 'p06-finish2/management' into p06-finish2/uploads
AatmanAJ Dec 4, 2026
04237c7
Merge branch 'p06-finish2/uploads' into p06-finish2/editor
AatmanAJ Dec 4, 2026
9eb0780
fix(mobile-android): let the fixture switch active organisations
AatmanAJ Dec 4, 2026
8bdf6fa
Merge branch 'p07finish2/settings' into HEAD
AatmanAJ Dec 4, 2026
d16c4a9
fix(mobile-android): finish the library scope and sorting behaviour
AatmanAJ Dec 4, 2026
dd3b8fa
Merge commit 'd16c4a992f13d698210407179edaf26e2b6eba11' into HEAD
AatmanAJ Dec 4, 2026
569fcd6
Merge commit 'dd3b8faf9898b6e1523b16b1bb5c79879c5833db' into HEAD
AatmanAJ Dec 4, 2026
0998b9c
Merge commit '488d9aafa6bf283025b97449dbdf849f7e59c897' into HEAD
AatmanAJ Dec 4, 2026
d7b0cd1
Merge commit '0998b9c8bb7c58bb3d5befa3827205ad1db3d4a3' into HEAD
AatmanAJ Dec 4, 2026
0abc760
Merge commit '3f3f0bb0e545cd3cc3a8a790c41ba460ead6c37e' into HEAD
AatmanAJ Dec 4, 2026
488d9aa
Merge commit '0abc760a91d6a3b249c8213740a30502a924aedc' into HEAD
AatmanAJ Dec 4, 2026
3f3f0bb
Merge commit '569fcd6444465edd4bf6424b1468fa3ee8c84f04' into HEAD
AatmanAJ Dec 4, 2026
47e2a9f
test(mobile-android): cover team member downloads
AatmanAJ Dec 4, 2026
b6491c1
Merge remote-tracking branch 'origin/feat/mobile-android-settings' in…
AatmanAJ Dec 4, 2026
d1d2f4e
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 4, 2026
853a79a
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
5b90c3e
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 4, 2026
190d76c
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
88825cb
Merge remote-tracking branch 'origin/feat/mobile-android-analytics' i…
AatmanAJ Dec 4, 2026
89779be
Merge commit 'b6491c128339df734e5f34eb0a8c73d71ef1fcfe' into HEAD
AatmanAJ Dec 4, 2026
04992e8
Merge remote-tracking branch 'origin/feat/mobile-android-uploads' int…
AatmanAJ Dec 4, 2026
30848f3
Merge remote-tracking branch 'origin/feat/mobile-android-editor' into…
AatmanAJ Dec 4, 2026
e0bb51c
Merge remote-tracking branch 'origin/feat/mobile-android-management' …
AatmanAJ Dec 4, 2026
011313f
Merge commit 'e0bb51c2120d9f216d7bd37ebc771de86fac7a51' into HEAD
AatmanAJ Dec 4, 2026
4a07e69
Merge commit '011313f52e0f8efb409b508c825a19decc36437a' into HEAD
AatmanAJ Dec 4, 2026
1f21d44
Merge remote-tracking branch 'origin/feat/mobile-android-settings' in…
AatmanAJ Dec 4, 2026
6c32b39
Merge remote-tracking branch 'origin/feat/mobile-android-analytics' i…
AatmanAJ Dec 4, 2026
2fb9ed5
Merge commit '4a07e6933f6b893126a225e0a3c6efa9958995fd' into HEAD
AatmanAJ Dec 4, 2026
ac0e919
Merge commit '2fb9ed5d03cac11d78f6c97396a2f5562d47307d' into HEAD
AatmanAJ Dec 4, 2026
4a34439
fix(mobile-android): revert out-of-scope settings plan recovery
AatmanAJ Dec 4, 2026
16550c8
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
70bcf0b
test(mobile-android): scroll the upgrade row into view
AatmanAJ Dec 4, 2026
3dd1afa
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
2942256
test(mobile-android): prove empty spaces stay in the list
AatmanAJ Dec 4, 2026
0761ce4
Merge branch 'feat/mobile-android-library' into feat/mobile-android-p…
AatmanAJ Dec 4, 2026
f536d42
Merge branch 'feat/mobile-android-playback' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
0e02d41
Merge branch 'feat/mobile-android-social' into feat/mobile-android-ma…
AatmanAJ Dec 4, 2026
f4b4bbd
fix(mobile-android): only offer supported link audiences
AatmanAJ Dec 4, 2026
24a642c
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 4, 2026
c08a771
test(mobile-android): prove empty libraries show upload failures
AatmanAJ Dec 4, 2026
0d3e014
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
9b76414
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 4, 2026
db71789
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
ba8f93b
fix(mobile-android): keep empty libraries in the list
AatmanAJ Dec 4, 2026
e7a0a60
Merge branch 'feat/mobile-android-social' into feat/mobile-android-ma…
AatmanAJ Dec 4, 2026
39c3259
Merge branch 'feat/mobile-android-library' into feat/mobile-android-p…
AatmanAJ Dec 4, 2026
dd86b85
Merge branch 'feat/mobile-android-playback' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
25d6fc0
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
fbcd741
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 4, 2026
4cf4bf4
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
7f869b6
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 4, 2026
5307497
test(mobile-android): prove organisation sharing stays restricted
AatmanAJ Dec 4, 2026
56d3126
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
2cbbf13
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 4, 2026
c9d4c67
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
884aed4
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 4, 2026
0a4fbd6
test(mobile-android): open the share sheet in editor tests
AatmanAJ Dec 4, 2026
e88e28e
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 4, 2026
67da0ca
test(mobile-android): sign out without the version row
AatmanAJ Dec 4, 2026
1de9659
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
43b376b
test(mobile-android): expect the designed empty library
AatmanAJ Dec 4, 2026
582064c
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 4, 2026
288905d
Merge branch 'feat/mobile-android-library' into feat/mobile-android-p…
AatmanAJ Dec 4, 2026
2f6e77a
Merge branch 'feat/mobile-android-playback' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
834b226
Merge branch 'feat/mobile-android-social' into feat/mobile-android-ma…
AatmanAJ Dec 4, 2026
d59d00a
test(mobile-android): expect the empty design behind upload feedback
AatmanAJ Dec 4, 2026
42bcf80
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
8e0793f
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 4, 2026
76ac4df
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
a0e093d
test(mobile-android): use an empty account for upload feedback
AatmanAJ Dec 4, 2026
a22dc25
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
17c8e47
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 4, 2026
ce84247
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
906a5cf
fix(mobile-android): match the launcher icon to the brand artwork
AatmanAJ Dec 4, 2026
83b3e00
Merge branch 'feat/mobile-android-scaffold' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
3fb98b4
Merge branch 'feat/mobile-android-capkit-core' into feat/mobile-andro…
AatmanAJ Dec 4, 2026
11d12e3
Merge branch 'feat/mobile-android-design-system' into feat/mobile-and…
AatmanAJ Dec 4, 2026
5c5012e
Merge branch 'feat/mobile-android-auth' into feat/mobile-android-library
AatmanAJ Dec 4, 2026
aa661a6
Merge branch 'feat/mobile-android-library' into feat/mobile-android-p…
AatmanAJ Dec 4, 2026
4b80e5f
Merge branch 'feat/mobile-android-playback' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
09a5916
Merge branch 'feat/mobile-android-social' into feat/mobile-android-ma…
AatmanAJ Dec 4, 2026
321c27a
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 4, 2026
f0f17b3
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
03f86d1
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 4, 2026
5c8ec15
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
8a3f7eb
ci(mobile-android): run app unit tests
AatmanAJ Dec 4, 2026
4ebea2b
Merge branch 'feat/mobile-android-scaffold' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
b986e0c
Merge branch 'feat/mobile-android-design-system' into feat/mobile-and…
AatmanAJ Dec 4, 2026
795fc1e
Merge branch 'feat/mobile-android-capkit-core' into feat/mobile-andro…
AatmanAJ Dec 4, 2026
385e666
Merge branch 'feat/mobile-android-auth' into feat/mobile-android-library
AatmanAJ Dec 4, 2026
08f57fa
Merge branch 'feat/mobile-android-library' into feat/mobile-android-p…
AatmanAJ Dec 4, 2026
8e85791
Merge branch 'feat/mobile-android-playback' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
f1b97f4
Merge branch 'feat/mobile-android-social' into feat/mobile-android-ma…
AatmanAJ Dec 4, 2026
44af765
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 4, 2026
db4e11f
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
c69bc51
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 4, 2026
4244f67
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
7552255
feat(android): add first-run permission onboarding
AatmanAJ Dec 4, 2026
88a3b33
Merge branch 'feat/mobile-android-auth' into feat/mobile-android-library
AatmanAJ Dec 4, 2026
b686ee3
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-p…
AatmanAJ Dec 4, 2026
f295d6d
test(mobile-android): pin the launcher vector viewport
AatmanAJ Dec 4, 2026
fe117fb
Merge branch 'feat/mobile-android-scaffold' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
a44b15e
Merge branch 'feat/mobile-android-design-system' into feat/mobile-and…
AatmanAJ Dec 4, 2026
3e8235b
Merge branch 'feat/mobile-android-auth' into feat/mobile-android-library
AatmanAJ Dec 4, 2026
13e5871
Merge branch 'feat/mobile-android-playback' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
cc2dcff
Merge branch 'feat/mobile-android-library' into feat/mobile-android-p…
AatmanAJ Dec 4, 2026
f82667b
Merge branch 'feat/mobile-android-capkit-core' into feat/mobile-andro…
AatmanAJ Dec 4, 2026
0ab7703
Merge branch 'feat/mobile-android-social' into feat/mobile-android-ma…
AatmanAJ Dec 4, 2026
a59520a
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 4, 2026
e43993d
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
50ceb05
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 4, 2026
652fe0d
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
ecd8bc6
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-s…
AatmanAJ Dec 4, 2026
4261fe9
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-m…
AatmanAJ Dec 4, 2026
4460cab
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-u…
AatmanAJ Dec 4, 2026
f8aa60a
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
5f37f00
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-s…
AatmanAJ Dec 4, 2026
734de78
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-a…
AatmanAJ Dec 4, 2026
68e891b
test(mobile-android): share the launcher icon resource paths
AatmanAJ Dec 4, 2026
e9ef33a
Merge branch 'feat/mobile-android-scaffold' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
a978cc3
Merge branch 'feat/mobile-android-design-system' into feat/mobile-and…
AatmanAJ Dec 4, 2026
05a39d6
Merge branch 'feat/mobile-android-auth' into feat/mobile-android-library
AatmanAJ Dec 4, 2026
d351531
Merge branch 'feat/mobile-android-playback' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
92907a4
Merge branch 'feat/mobile-android-library' into feat/mobile-android-p…
AatmanAJ Dec 4, 2026
a46adb3
Merge branch 'feat/mobile-android-social' into feat/mobile-android-ma…
AatmanAJ Dec 4, 2026
67d049f
Merge branch 'feat/mobile-android-capkit-core' into feat/mobile-andro…
AatmanAJ Dec 4, 2026
7acebf0
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 4, 2026
d4e8a55
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
61950c4
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 4, 2026
99bc8d9
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
8b698bd
Merge branch 'feat/mobile-android-auth' into feat/mobile-android-auth
AatmanAJ Dec 4, 2026
8195aee
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-s…
AatmanAJ Dec 4, 2026
76264b5
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-p…
AatmanAJ Dec 4, 2026
5db23eb
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-l…
AatmanAJ Dec 4, 2026
7998d92
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-m…
AatmanAJ Dec 4, 2026
a44f16e
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-u…
AatmanAJ Dec 4, 2026
0db8dd0
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
25eca93
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-s…
AatmanAJ Dec 4, 2026
e49d048
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-a…
AatmanAJ Dec 4, 2026
38dc14f
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-s…
AatmanAJ Dec 4, 2026
569faa1
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-p…
AatmanAJ Dec 4, 2026
62ccf64
Merge branch 'feat/mobile-android-library' into feat/mobile-android-l…
AatmanAJ Dec 4, 2026
ced54c3
Merge branch 'feat/mobile-android-social' into feat/mobile-android-so…
AatmanAJ Dec 4, 2026
449f73e
Merge branch 'feat/mobile-android-playback' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
7f9e190
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-m…
AatmanAJ Dec 4, 2026
dc375e9
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-u…
AatmanAJ Dec 4, 2026
722cb9b
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-e…
AatmanAJ Dec 4, 2026
da488c6
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-s…
AatmanAJ Dec 4, 2026
4fdbd41
Merge branch 'feat/mobile-android-cascade' into feat/mobile-android-a…
AatmanAJ Dec 4, 2026
73e18bd
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 4, 2026
e19fa38
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-u…
AatmanAJ Dec 4, 2026
c7f0a7d
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-ed…
AatmanAJ Dec 4, 2026
610a9b3
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 4, 2026
540f45e
Merge branch 'feat/mobile-android-analytics' into feat/mobile-android…
AatmanAJ Dec 4, 2026
0c2668a
fix(mobile-android): match the launcher icon safe-zone scale
AatmanAJ Dec 5, 2026
b41bb3d
Merge branch 'feat/mobile-android-scaffold' into feat/mobile-android-…
AatmanAJ Dec 5, 2026
18ad393
Merge branch 'feat/mobile-android-design-system' into feat/mobile-and…
AatmanAJ Dec 5, 2026
ab48664
Merge branch 'feat/mobile-android-capkit-core' into feat/mobile-andro…
AatmanAJ Dec 5, 2026
9a289e8
Merge branch 'feat/mobile-android-social' into feat/mobile-android-ma…
AatmanAJ Dec 5, 2026
60178fe
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 5, 2026
4164810
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 5, 2026
b9abb8b
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 5, 2026
fc5aeae
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 5, 2026
a57a963
Merge branch 'feat/mobile-android-auth' into feat/mobile-android-library
AatmanAJ Dec 5, 2026
7e9cb45
Merge branch 'feat/mobile-android-playback' into feat/mobile-android-…
AatmanAJ Dec 5, 2026
eba8204
Merge branch 'feat/mobile-android-library' into feat/mobile-android-p…
AatmanAJ Dec 5, 2026
3256107
fix: keep first-run permissions lint clean
AatmanAJ Dec 5, 2026
21626ea
fix(mobile-android): make first-run permission grants usable
AatmanAJ Dec 5, 2026
c594536
Merge branch 'feat/mobile-android-auth' into feat/mobile-android-auth
AatmanAJ Dec 5, 2026
b24da20
test(mobile-android): isolate first-run permission state
AatmanAJ Dec 5, 2026
a7e6e24
test(mobile-android): reset first-run state safely
AatmanAJ Dec 5, 2026
bb61530
fix(mobile-android): close the signed-in root
AatmanAJ Dec 5, 2026
7a9c98d
fix(mobile-android): read sharing audiences for the cap
AatmanAJ Dec 5, 2026
bc671c6
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 5, 2026
cb74346
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 5, 2026
40061bf
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 5, 2026
087c3a2
fix(mobile-android): recover the settings plan
AatmanAJ Dec 5, 2026
1469281
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 5, 2026
1faffba
Merge commit 'a7e6e246250dc660c23b3672004e6a320c8de25a' into HEAD
AatmanAJ Dec 5, 2026
cae33cd
Merge commit '37cdab6e84b315d05c760a50e77e4fa51a3d87c1' into HEAD
AatmanAJ Dec 5, 2026
37cdab6
Merge commit '1faffbaa81d4003d0a1cf2f09b022f81d9c48a58' into HEAD
AatmanAJ Dec 5, 2026
9651cc4
Merge commit '15e4c3a8ef72f2ebd571208e262447b5c5d853ca' into HEAD
AatmanAJ Dec 5, 2026
5a4a768
Merge commit '9651cc4f6cd841a73ef4996fe28e26861e6c7a2d' into HEAD
AatmanAJ Dec 5, 2026
c9d65e1
Merge commit '5a4a768365aa0bc34876414aecdc1c75b6c27299' into HEAD
AatmanAJ Dec 5, 2026
39e331d
Merge commit 'c9d65e17847b1b63bc525ffbef068392ece19ec2' into HEAD
AatmanAJ Dec 5, 2026
15e4c3a
Merge commit 'cae33cddfbaaa7e7b14940c5f25332c6d7eb8e60' into HEAD
AatmanAJ Dec 5, 2026
44bcd16
feat(mobile-android): add upload notification actions
AatmanAJ Dec 5, 2026
2fd9fac
Merge upload notification actions into editor
AatmanAJ Dec 5, 2026
89aa33e
Merge upload notification actions into settings
AatmanAJ Dec 5, 2026
eec96e5
Merge upload notification actions into analytics
AatmanAJ Dec 5, 2026
02311d8
refactor: remove the analytics tab from the bottom navigation
AatmanAJ Dec 5, 2026
9de25a8
Merge branch 'shell-fix/cascade-playback' into HEAD
AatmanAJ Dec 5, 2026
439d9c1
Merge branch 'shell-fix/cascade-social' into HEAD
AatmanAJ Dec 5, 2026
56b81b9
Merge branch 'shell-fix/cascade-management' into HEAD
AatmanAJ Dec 5, 2026
a75c443
Merge branch 'shell-fix/cascade-uploads' into HEAD
AatmanAJ Dec 5, 2026
a73df96
Merge branch 'shell-fix/cascade-editor' into HEAD
AatmanAJ Dec 5, 2026
328fe37
Merge branch 'shell-fix/cascade-settings' into HEAD
AatmanAJ Dec 5, 2026
5c26e69
fix(mobile-android): stop a released cap player playing
AatmanAJ Dec 5, 2026
ac80d81
fix(mobile-android): keep transcript search available
AatmanAJ Dec 5, 2026
b3b805e
Merge branch 'final-round/cascade-social' into final-round/cascade-ma…
AatmanAJ Dec 5, 2026
b1a97eb
Merge branch 'final-round/cascade-management' into final-round/cascad…
AatmanAJ Dec 5, 2026
500c62a
Merge branch 'final-round/cascade-uploads' into final-round/cascade-e…
AatmanAJ Dec 5, 2026
2f99f14
Merge branch 'final-round/cascade-editor' into final-round/cascade-se…
AatmanAJ Dec 5, 2026
d0b6ce6
Merge branch 'final-round/cascade-settings' into final-round/cascade-…
AatmanAJ Dec 5, 2026
cc9ab0e
fix(mobile-android): keep deep-linked cap titles visible
AatmanAJ Dec 5, 2026
a26521f
Merge commit 'cc9ab0ef9536d49d436a7f845ed5cbf98532f828' into HEAD
AatmanAJ Dec 5, 2026
479d671
Merge commit 'a26521fd9a12bc11eb0b8b6fff777c988237b949' into HEAD
AatmanAJ Dec 5, 2026
1e2e9c4
Merge commit '479d6716410aeb81f199b9a81e86b6ed03bda6e2' into HEAD
AatmanAJ Dec 5, 2026
9941a81
Merge commit '1e2e9c4d530a47f6081bef52a1029bc5cbb7b512' into HEAD
AatmanAJ Dec 5, 2026
7c41993
Merge commit '9941a81ce301111da7a948dc1deee83a3fc10caf' into HEAD
AatmanAJ Dec 5, 2026
646c8a5
fix(mobile-android): keep pressed controls inside what they draw
AatmanAJ Dec 5, 2026
a5e3854
Merge branch 'feat/mobile-android-design-system' into feat/mobile-and…
AatmanAJ Dec 5, 2026
be4aa8e
fix(mobile-android): draw the sky hero the same on every phone
AatmanAJ Dec 5, 2026
2b185fe
Merge branch 'feat/mobile-android-library' into feat/mobile-android-p…
AatmanAJ Dec 5, 2026
bc18097
Merge branch 'feat/mobile-android-playback' into feat/mobile-android-…
AatmanAJ Dec 5, 2026
bc75aba
Merge branch 'feat/mobile-android-social' into feat/mobile-android-ma…
AatmanAJ Dec 5, 2026
18b4994
Merge branch 'feat/mobile-android-management' into feat/mobile-androi…
AatmanAJ Dec 5, 2026
1854365
Merge branch 'feat/mobile-android-uploads' into feat/mobile-android-e…
AatmanAJ Dec 5, 2026
24b120c
Merge branch 'feat/mobile-android-auth' into feat/mobile-android-library
AatmanAJ Dec 5, 2026
04195b6
Merge branch 'feat/mobile-android-editor' into feat/mobile-android-se…
AatmanAJ Dec 5, 2026
ae9dcb3
fix(mobile-android): use the design switch and single hairlines in se…
AatmanAJ Dec 5, 2026
9118e56
Merge branch 'feat/mobile-android-settings' into feat/mobile-android-…
AatmanAJ Dec 5, 2026
23e5e46
fix(mobile-android): close the signed-in branch in the playback root
AatmanAJ Dec 5, 2026
a0865a8
Merge branch 'fbr/playback' into fbr/social
AatmanAJ Dec 5, 2026
836bdb4
Merge branch 'fbr/social' into fbr/management
AatmanAJ Dec 5, 2026
17fe859
Merge branch 'fbr/management' into fbr/uploads
AatmanAJ Dec 5, 2026
7e744ef
Merge branch 'fbr/uploads' into fbr/editor
AatmanAJ Dec 5, 2026
f1b39a6
Merge branch 'fbr/editor' into fbr/settings
AatmanAJ Dec 5, 2026
fab47a9
Merge branch 'fbr/settings' into fbr/analytics
AatmanAJ Dec 5, 2026
80dc3fe
style(mobile-android): format the library layer's theme root
AatmanAJ Dec 5, 2026
ded7a28
Merge branch 'fbr/library' into fbr/playback
AatmanAJ Dec 5, 2026
46a1ac2
Merge branch 'fbr/playback' into fbr/social
AatmanAJ Dec 5, 2026
d976c6c
Merge branch 'fbr/social' into fbr/management
AatmanAJ Dec 5, 2026
12e8d84
Merge branch 'fbr/management' into fbr/uploads
AatmanAJ Dec 5, 2026
b60b375
Merge branch 'fbr/uploads' into fbr/editor
AatmanAJ Dec 5, 2026
83fbbb5
Merge branch 'fbr/editor' into fbr/settings
AatmanAJ Dec 5, 2026
df135a6
Merge branch 'fbr/settings' into fbr/analytics
AatmanAJ Dec 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
gpui: ${{ steps.filter.outputs.rust-without-cli == 'true' || steps.filter.outputs.gpui == 'true' }}
gpui-patches: ${{ steps.filter.outputs.gpui-patches }}
ios: ${{ steps.filter.outputs.ios }}
android: ${{ steps.filter.outputs.android }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -85,6 +86,10 @@ jobs:
- 'scripts/prepare-gpui-dependency.sh'
ios:
- 'apps/mobile-ios/**'
android:
- '.github/workflows/ci.yml'
- 'apps/mobile-android/**'
- 'apps/mobile-ios/CapKit/Tests/CapKitTests/Fixtures/**'

typecheck:
name: Typecheck
Expand Down Expand Up @@ -162,6 +167,28 @@ jobs:
-derivedDataPath "$RUNNER_TEMP/cap-ios"
CODE_SIGNING_ALLOWED=NO build

android:
name: Android
needs: changes
if: needs.changes.outputs.android == 'true'
runs-on: blacksmith-8vcpu-ubuntu-2404
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6

- name: Check, test and build
working-directory: apps/mobile-android
run: ./gradlew spotlessCheck :capkit:test :app:testDebugUnitTest :app:lintDebug :app:assembleRelease

format-biome:
name: Format (Biome)
runs-on: blacksmith-8vcpu-ubuntu-2404
Expand Down
6 changes: 6 additions & 0 deletions apps/mobile-android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build/
.gradle/
.kotlin/
local.properties
captures/
*.iml
1,068 changes: 1,068 additions & 0 deletions apps/mobile-android/PLAN.md

Large diffs are not rendered by default.

117 changes: 117 additions & 0 deletions apps/mobile-android/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# Cap for Android

Native Android app for Cap, written in Kotlin and Jetpack Compose. So far it holds `capkit`, the client core the screens will be built on, and an app with the design system, sign-in and the tab shell, whose pages are still placeholders apart from a first Settings page. [PLAN.md](PLAN.md) holds the audit of the iOS app and the plan for the rest.

## Layout

- `capkit/` is a plain Kotlin module on the JVM with no Android imports, the counterpart of the Foundation-only CapKit Swift package. It holds the server environment and its URL rules, the share-link, deep-link and sign-in callback parsers, the JSON models with their lenient decoding, the error model, the API client with every mobile endpoint, the text formatting helpers, and UploadEngine (request building and sending for S3 POST, PUT and Drive resumable targets). It has no UI. It stores two things, each under a directory the app hands it: the snapshot cache, JSON files with one directory per user, and PendingUploads, the file-upload records that survive relaunch.
- `app/` is the Android application, `so.cap.mobile`. With no saved session it opens on the sign-in screen, under `features/auth/`: an emailed code, or Google through the browser, which returns to the app at `cap://auth`. With one it opens on the tab shell: Caps and Analytics pages, which are placeholders for now, a Settings page under `features/settings/` that so far holds the version and Sign out, and a Record action that opens a placeholder full-screen page. `designsystem/` holds the theme and the shared components, and `app/src/debug` adds a gallery activity that shows every one of them.
- `gradle/libs.versions.toml` is the one place versions are pinned. The Gradle wrapper is checked in with its distribution checksum.

The directory has no `package.json`, so it is not a Bun workspace member and has no Turbo task. Gradle is the only build tool here.

## Develop

You need JDK 17 and an Android SDK with the API 37.2 platform (`platforms;android-37.2`). The Android Gradle plugin downloads its default Build Tools, 36.0.0, into the SDK on the first build if the SDK licences have been accepted.

```sh
export JAVA_HOME=/path/to/jdk-17
export ANDROID_HOME=$HOME/Library/Android/sdk
```

Run the checks from this directory. This is also what CI runs, apart from the debug build:

```sh
./gradlew spotlessCheck :capkit:test :app:testDebugUnitTest :app:lintDebug :app:assembleDebug :app:assembleRelease
```

- `:app:testDebugUnitTest` runs the app's JVM unit tests: the toast timing, the image request rules, the thumbnail, the credential vault, the app phases, the sign-in model, the session and library models, the Cap detail model, the player controls, the media request rules, the playback preferences, the backup rules and, for the debug build, the launch arguments.
- `spotlessCheck` checks Kotlin sources and Gradle scripts against ktfmt in the kotlinlang style. `./gradlew spotlessApply` rewrites them.
- Kotlin warnings fail the build in both modules.
- Android Lint treats warnings as errors. `app/lint-baseline.xml` is empty and should stay empty.

## capkit tests

`./gradlew :capkit:test` runs on the JVM, with no emulator and no network beyond loopback.

- The client tests send real requests with OkHttp to an HTTP server from the JDK bound to 127.0.0.1, and check the method, path, query, headers and body that arrive. There are no mocks and no sleeps.
- The decoding tests read the five JSON fixtures of the iOS tests in place, from `apps/mobile-ios/CapKit/Tests/CapKitTests/Fixtures`, which `capkit/build.gradle.kts` adds as a test resource directory. The files are not copied, so a change to a fixture reaches both clients, and CI runs the Android job when that directory changes.
- `capkit/src/test/resources/relative-dates.txt` is relative-date text recorded from Swift's formatter for the en_US locale. The formatting tests compare against it, because the JVM has no formatter that produces the same wording.

Any decision about where an HTTP request may go, or which URL may carry the API key, is made with OkHttp's own URL parser, the one that sends the request. Load a URL with OkHttp, or load the form `SafeUrl.media` returns, so that the loader and the check read the same host.

## Run on an emulator

```sh
adb install -r app/build/outputs/apk/debug/app-debug.apk
adb shell am start -n so.cap.mobile.debug/so.cap.mobile.MainActivity
```

Debug builds read two launch extras, the Android form of the iOS app's `CAP_API_BASE_URL` and `CAP_DEBUG_SESSION`, so the app can be driven against the fixture server of the iOS app with no real account:

```sh
python3 ../mobile-ios/Fixtures/server.py 4310
adb reverse tcp:4310 tcp:4310
adb shell am start -S -n so.cap.mobile.debug/so.cap.mobile.MainActivity \
--es capApiBaseUrl http://localhost:4310 \
--es capDebugSession 0f3a5c2e-6b4d-4a7f-9e1c-2d3b4a5c6d7e:user_richie
```

- `capApiBaseUrl` points the app at another server until the process ends: any https origin, or http on a local development host. It is read when `MainActivity` is created, so pass `-S` to start from a stopped app.
- `capDebugSession` is `<API key>:<user id>` and saves that session before the first screen, only when the server is a local development host. Leave it out to reach the sign-in screen; on the fixture any email signs in with the code 123456.
- Both are read by code in `app/src/debug` only. A release build ignores them.

Debug builds also carry a component gallery. `section` is optional and takes one of `foundations`, `controls`, `panels`, `buttons`, `text`, `badges`, `toasts`, `images`, `thumbnails`, `emptystates` or `skeletons`; `theme` takes `light` or `dark` and `fontScale` a number, and both default to the system setting. The gallery loads its sample images through the real image pipeline from a small HTTP server it runs on the device's loopback address.

```sh
adb shell am start -n so.cap.mobile.debug/so.cap.mobile.GalleryActivity --es section thumbnails --es theme dark --ef fontScale 2.0
```

The instrumented tests need a running emulator or device. They render every gallery component in light, in dark and at font scale 2.0 and fail if any text is clipped or truncated, they drive the tab shell, and they drive sign-in, sign-out and a rejected session against the fixture server. For those the fixture has to be running and reachable from the device at `http://localhost:4310`, which is what the two commands at the top of this section set up.

```sh
./gradlew :app:connectedDebugAndroidTest
```

If the fixture listens somewhere else, say where:

```sh
./gradlew :app:connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.capFixtureUrl=http://localhost:4314
```

## Debug and release builds

- Debug builds install as `so.cap.mobile.debug`, so a debug and a release build can sit on one device.
- Only debug builds allow HTTP, and only to `localhost` and `127.0.0.1`, through `app/src/debug/res/xml/network_security_config.xml`. Release builds carry no network security config.
- Release builds are unsigned and not shrunk yet.
- minSdk is 29 and targetSdk is 37. compileSdk is 37.2 because Compose 1.13.0 only compiles against API 37.1 or later.
- Backup is switched off (`allowBackup="false"`) and both backup rule files exclude every domain, for cloud backup and for device transfer. The saved session is a file in the no-backup directory, sealed with a key that stays in the Android Keystore, so it is neither copied off the device nor readable on it.

## Dependencies and licences

Read from each artefact's published POM on 30 November 2026, and AndroidX Browser's, Media3's and DataStore's on 1 December 2026.

| Scope | Dependency | Licence |
|---|---|---|
| Shipped in the app | Jetpack Compose (BOM 2026.11.01, Material 3 1.5.0), AndroidX Activity Compose 1.13.0, AndroidX Browser 1.10.0, Navigation 3 1.2.2, kotlinx.coroutines 1.11.0, Coil 3.6.3 (`coil-compose-core`, `coil-network-okhttp`), OkHttp 5.5.1, Media3 1.11.1 (`media3-exoplayer`, `media3-exoplayer-hls`, `media3-datasource-okhttp`, `media3-ui-compose`, `media3-session`), DataStore Preferences core 1.3.0, WorkManager 2.12.0 (`work-runtime`), `capkit` and what they bring in: 193 artefacts on the release runtime classpath. They are AndroidX, Kotlin, kotlinx, Compose Multiplatform, Coil, OkHttp and Okio libraries, plus Accompanist Drawable Painter, JSpecify, JetBrains annotations and Guava | Apache 2.0 for 192 of them; 189 state it in their own POM; Guava 33.3.1-android, `failureaccess` 1.0.2 and the empty `listenablefuture` state none and inherit it from `guava-parent`. `androidx.datastore:datastore-preferences-external-protobuf`, DataStore's repackaged copy of Protocol Buffers, is BSD 3-Clause |
| Shipped in the app | The Cap logo and wordmark on the sign-in screen, converted without loss to WebP from the iOS app's `CapLogoLarge` and `CapWordmark` images | Cap's own artwork, from this repository |
| Shipped in the app | The Google mark on "Continue with Google", the iOS app's `GoogleLogo` image as a vector drawable | From this repository; the mark is a trademark of Google |
| Shipped in the app | Material Symbols icons (Rounded), copied from [google/material-design-icons](https://github.com/google/material-design-icons) as vector drawables in `app/src/main/res/drawable` | Apache 2.0, from that repository's LICENSE file |
| Shipped in the app | Inter 4.1 Regular, Medium and SemiBold, copied unmodified from [rsms/inter](https://github.com/rsms/inter) into `app/src/main/res/font`; its licence is bundled in `app/src/main/assets/fonts/INTER_LICENSE.txt` | SIL Open Font License 1.1, from the release's LICENSE.txt |
| `capkit` | kotlinx.serialization JSON 1.13.0 and the kotlinx-serialization-core it brings in | Apache 2.0 |
| `capkit` | OkHttp 5.5.1 and the Okio 3.18.1 it brings in | Apache 2.0 |
| `capkit` | kotlinx.coroutines core 1.11.0 and the JetBrains annotations 23.0.0 it brings in | Apache 2.0 |
| Tests only | kotlinx.coroutines test 1.11.0 | Apache 2.0 |
| Tests only | JUnit 4.13.2 | Eclipse Public License 1.0 |
| Tests only | Hamcrest core 1.3, brought in by JUnit | New BSD, stated in `hamcrest-parent` |
| Tests only | Compose UI test (`ui-test-junit4` from the BOM), AndroidX Test ext JUnit 1.3.0, runner 1.7.0 and Espresso core 3.7.0, and what they bring in: 15 artefacts that are not in the app, among them JSR 305, Error Prone annotations and `javax.inject` | Apache 2.0 for all 15 |
| Tests only | Hamcrest library 1.3, brought in by Espresso | New BSD, stated in `hamcrest-parent` |
| Build | Android Gradle plugin 9.5.3 | Apache 2.0 |
| Build | Kotlin Gradle plugin, Compose compiler plugin and serialization plugin 2.4.21 | Apache 2.0 |
| Build | Spotless Gradle plugin 8.12.0, ktfmt 0.64 | Apache 2.0 |

The build plugins' own dependencies were not surveyed; they run on the build machine and are not part of the app. To list what ships:

```sh
./gradlew -q :app:dependencies --configuration releaseRuntimeClasspath
```
81 changes: 81 additions & 0 deletions apps/mobile-android/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.kotlin.serialization)
}

android {
namespace = "so.cap.mobile"
compileSdk {
version = release(37) { minorApiLevel = 2 }
}

defaultConfig {
applicationId = "so.cap.mobile"
minSdk = 29
targetSdk = 37
versionCode = 1
versionName = "1.0.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
buildConfigField("boolean", "WEB_UPGRADE", "false")
}

buildTypes {
debug {
applicationIdSuffix = ".debug"
}
release {
isMinifyEnabled = false
}
}

buildFeatures {
buildConfig = true
compose = true
}

lint {
warningsAsErrors = true
disable += "NewerVersionAvailable"
disable += "GradleDependency"
abortOnError = true
baseline = file("lint-baseline.xml")
}
}

kotlin {
jvmToolchain(17)
compilerOptions {
allWarningsAsErrors = true
}
}

dependencies {
implementation(project(":capkit"))
implementation(platform(libs.androidx.compose.bom))
implementation(libs.androidx.activity.compose)
implementation(libs.androidx.browser)
implementation(libs.androidx.compose.material3)
implementation(libs.androidx.navigation3.runtime)
implementation(libs.androidx.navigation3.ui)
implementation(libs.coil.compose.core)
implementation(libs.coil.network.okhttp)
implementation(libs.datastore.preferences.core)
implementation(libs.kotlinx.coroutines.android)
implementation(libs.media3.datasource.okhttp)
implementation(libs.media3.exoplayer)
implementation(libs.media3.exoplayer.hls)
implementation(libs.media3.session)
implementation(libs.media3.ui.compose)
implementation(libs.okhttp)
implementation(libs.work.runtime)

testImplementation(libs.junit)
testImplementation(libs.kotlinx.coroutines.test)

androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
androidTestImplementation(libs.androidx.test.espresso.core)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.androidx.test.runner)
}
4 changes: 4 additions & 0 deletions apps/mobile-android/app/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 9.5.3" type="baseline" client="gradle" dependencies="false" name="AGP (9.5.3)" variant="all" version="9.5.3">

</issues>
18 changes: 18 additions & 0 deletions apps/mobile-android/app/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application>
<activity
android:name="so.cap.mobile.FakeBrowserActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />
<data android:scheme="https" />
</intent-filter>
</activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
package so.cap.mobile

import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.test.IdlingResource
import androidx.compose.ui.test.assertIsSelected
import androidx.compose.ui.test.hasClickAction
import androidx.compose.ui.test.hasContentDescription
import androidx.compose.ui.test.junit4.v2.createAndroidComposeRule
import androidx.compose.ui.test.performClick
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import kotlinx.coroutines.runBlocking
import org.junit.After
import org.junit.Assert.assertEquals
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import so.cap.kit.CapApi
import so.cap.kit.CapEnvironment
import so.cap.kit.CredentialSnapshot
import so.cap.mobile.app.SessionModel
import so.cap.mobile.designsystem.CapTheme
import so.cap.mobile.features.analytics.AnalyticsModel
import so.cap.mobile.features.analytics.AnalyticsScreen

@RunWith(AndroidJUnit4::class)
class AnalyticsTest {
@get:Rule val compose = createAndroidComposeRule<DesignSystemTestActivity>()

private val app = ApplicationProvider.getApplicationContext<CapApplication>()
private val relay =
FixtureRelay(
InstrumentationRegistry.getArguments().getString("capFixtureUrl")
?: "http://localhost:4310"
)
private val richie = "0f3a5c2e-6b4d-4a7f-9e1c-2d3b4a5c6d7e:user_richie"

@After
fun closeTheFixture() {
relay.close()
runBlocking { app.services.cache.removeAll() }
}

private val analyticsRequests
get() = relay.requests.filter { it.startsWith("GET /api/mobile/analytics") }

private fun await(signal: () -> Boolean) {
val resource =
object : IdlingResource {
override val isIdleNow: Boolean
get() = signal()
}
compose.registerIdlingResource(resource)
try {
compose.waitForIdle()
} finally {
compose.unregisterIdlingResource(resource)
}
}

private fun awaitRequest(range: String) {
await { "GET /api/mobile/analytics?range=$range" in analyticsRequests }
}

@Test
fun switchingRangeAsksForEachRange() {
lateinit var analytics: AnalyticsModel
compose.setContent {
val scope = rememberCoroutineScope()
val session = remember {
val environment =
checkNotNull(CapEnvironment.parse(relay.origin, allowInsecureLocalhost = true))
val credentials =
CredentialSnapshot(richie.substringBefore(':'), richie.substringAfter(':'))
val api = CapApi(environment, "Cap-Android/test", credentials = { credentials })
SessionModel(api, app.services.cache, credentials, scope)
}
analytics = session.analytics
CapTheme {
AnalyticsScreen(
model = analytics,
session = session,
onBack = null,
onOpenCap = {},
)
}
}
compose.runOnIdle { analytics.organizationChanged("org_cap") }
awaitRequest("7d")
compose.onNode(hasContentDescription("Last 7 days")).assertIsSelected()

for ((label, range) in
listOf("Last 24 hours" to "24h", "Last 30 days" to "30d", "All time" to "lifetime")) {
compose.onNode(hasContentDescription(label) and hasClickAction()).performClick()
awaitRequest(range)
compose.onNode(hasContentDescription(label)).assertIsSelected()
}

assertEquals(
listOf("7d", "24h", "30d", "lifetime").map { "GET /api/mobile/analytics?range=$it" },
analyticsRequests,
)
}
}
Loading
Loading