Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
298 commits
Select commit Hold shift + click to select a range
a1e45e7
fixed padding for Account Text in InternetArchiveLoginScreen
Elelan Mar 12, 2025
7decff5
preview activity btn color change
Elelan Mar 13, 2025
e030d80
dark mode improvement
Elelan Mar 13, 2025
548b4ec
leakcanary leaks fix temp
Elelan Mar 13, 2025
da11ecd
commented out zxing barcode scanner code used for dweb temporarily
Elelan Mar 13, 2025
ce706c4
removed swipe to delete from upload media screen
Elelan Mar 14, 2025
07a878d
Merge remote-tracking branch 'origin/feature/common-dialogs' into fea…
Elelan Mar 14, 2025
204d011
removed camera permission from PreviewActivity
Elelan Mar 18, 2025
2f769f1
dark mode color fix for buttons and texts
Elelan Mar 18, 2025
a7a451b
extracted strings to resource file
Elelan Mar 18, 2025
9d036e1
updated env secret keys
Elelan Mar 18, 2025
142c6b9
fix missing local.properties
Elelan Mar 18, 2025
808c66a
removed circleci
Elelan Mar 18, 2025
1a6d08b
Merge remote-tracking branch 'origin/feature/common-dialogs' into fea…
Elelan Mar 18, 2025
a0b07f2
updated detekt github action
Elelan Mar 18, 2025
bf61050
Merge remote-tracking branch 'origin/feature/common-dialogs' into fea…
Elelan Mar 18, 2025
a01ed33
Merge pull request #651 from OpenArchive/feature/common-dialogs-minus…
prathieshna Mar 18, 2025
2955b96
added missing string resources for hardcoded strings
Elelan Mar 18, 2025
874bd2e
escaped string resources
Elelan Mar 18, 2025
8e82309
Merge remote-tracking branch 'origin/feature/common-dialogs' into fea…
Elelan Mar 18, 2025
990c8ca
Merge branch 'next' into feature/common-dialogs-minus-dweb
Elelan Mar 18, 2025
5142f12
Merge pull request #652 from OpenArchive/feature/common-dialogs-minus…
Elelan Mar 18, 2025
c93289f
escaped string resources 2
Elelan Mar 18, 2025
1a938c5
Merge remote-tracking branch 'origin/feature/common-dialogs' into fea…
Elelan Mar 18, 2025
b20126e
Merge remote-tracking branch 'origin/feature/common-dialogs-minus-dwe…
Elelan Mar 18, 2025
f7cb66b
Merge branch 'next' into feature/common-dialogs
Elelan Mar 18, 2025
782386e
Merge pull request #653 from OpenArchive/feature/common-dialogs
Elelan Mar 18, 2025
f5a8ab4
disabled InternetArchiveLoginContent Password toggle when loading
Elelan Mar 18, 2025
dcd6eaf
Merge remote-tracking branch 'origin/feature/common-dialogs' into fea…
Elelan Mar 18, 2025
796b29c
Merge remote-tracking branch 'origin/next' into feature/common-dialog…
Elelan Mar 18, 2025
1c95892
Merge pull request #654 from OpenArchive/feature/common-dialogs-minus…
Elelan Mar 18, 2025
c8b79e2
Updated String File
prathieshna Mar 19, 2025
910fa1f
Updated String File
prathieshna Mar 19, 2025
15395d1
Updated String File
prathieshna Mar 19, 2025
258ffaf
Updated String File
prathieshna Mar 19, 2025
7b39b8e
Updated String File
prathieshna Mar 19, 2025
7573d6c
Updated String File
prathieshna Mar 19, 2025
134bc7e
top and bottom bar color changed
Elelan Mar 21, 2025
9a4c3a5
kotlin upgrade to 2.1.20
Elelan Mar 21, 2025
9a32770
Updated the permissions
prathieshna Mar 24, 2025
fbfbf85
Merge pull request #655 from OpenArchive/bug/prrofmode-permission-fix
Elelan Mar 25, 2025
8fe2d12
ui fixes - button colors, text etc
Elelan Mar 25, 2025
e9ede4d
Merge remote-tracking branch 'origin/next' into bugFix/minor-ui-fixes…
Elelan Mar 25, 2025
c50afb1
Merge pull request #656 from OpenArchive/bugFix/minor-ui-fixes-figma
Elelan Mar 25, 2025
33b5580
italic placeholders for text fields (compose and xml) temp fix
Elelan Mar 25, 2025
578e30d
webdav show error text below textfiels
Elelan Mar 27, 2025
61fcff6
media upload - hide upload percentage in MainMediaScreen
Elelan Mar 27, 2025
961cda9
Merge pull request #657 from OpenArchive/bugFix/webdav-login-ui-fix
Elelan Mar 27, 2025
cb5547f
Special characters fix
prathieshna Mar 27, 2025
e11b265
Merge branch 'next' into bugfix/header-sanitisation
Elelan Mar 27, 2025
acdefb6
Merge pull request #658 from OpenArchive/bugfix/header-sanitisation
Elelan Mar 27, 2025
9493102
changed app colors to teal color from figma
Elelan Mar 28, 2025
ca632b6
detekt for push requests only
Elelan Mar 28, 2025
3c210a3
detekt changes
Elelan Mar 28, 2025
082f23d
Merge pull request #659 from OpenArchive/bugFix/new-ui-colors-fixed
Elelan Mar 28, 2025
467f19d
Removed Phone permissions for Android App to generate ProofMode.
prathieshna Apr 2, 2025
1c98ffa
Merge pull request #660 from OpenArchive/feature/proofmode-2.0
prathieshna Apr 7, 2025
09f3521
Updated Proof Mode Text
prathieshna Apr 7, 2025
10988e1
changed icon colors to black for add more btn and hamburger menu in d…
Elelan Apr 11, 2025
1afda26
Merge pull request #661 from OpenArchive/bugFix/hamburger-menu-icon-c…
Elelan Apr 11, 2025
443a5fa
archive folder popup item added
Elelan Apr 16, 2025
2b7a4fe
Commented Proof Mode in IA
prathieshna Apr 17, 2025
40ccaed
main media bottom bar icons color changed
Elelan Apr 17, 2025
bb3189c
Merge pull request #662 from OpenArchive/bugFix/archive-folder-changes
Elelan Apr 17, 2025
be3182b
Merge branch 'next' into feature/disable-proofmode-for-IA
Elelan Apr 17, 2025
bba8c17
Merge pull request #663 from OpenArchive/feature/disable-proofmode-fo…
Elelan Apr 17, 2025
d4dce08
removed icon from Remove from app btn in Folder Info screen
Elelan Apr 17, 2025
770643d
Merge branch 'next' into bugFix/archive-folder-changes
Elelan Apr 17, 2025
1d1f103
Merge pull request #664 from OpenArchive/bugFix/archive-folder-changes
Elelan Apr 17, 2025
0a04bf6
reduced folder name text weight in BrowseFoldersAdapter List Item (fo…
Elelan Apr 18, 2025
94e70e3
Merge branch 'next' into bugFix/archive-folder-changes
Elelan Apr 18, 2025
e182ef4
Merge pull request #665 from OpenArchive/bugFix/archive-folder-changes
Elelan Apr 18, 2025
ef67c4d
added no servers and no folders text for server list screen and archi…
Elelan Apr 23, 2025
0c317a1
Merge pull request #666 from OpenArchive/feature/no-servers-text
Elelan Apr 23, 2025
d57faef
fixed nav issue with archived folders screen
Elelan Apr 23, 2025
977af9c
Merge pull request #667 from OpenArchive/feature/no-servers-text
Elelan Apr 23, 2025
0e61a0d
fixed issue for server list empty state not showing correctly
Elelan Apr 23, 2025
c7915d7
Merge branch 'next' into feature/no-servers-text
Elelan Apr 29, 2025
c6bd237
Merge pull request #668 from OpenArchive/feature/no-servers-text
Elelan Apr 29, 2025
ddb359a
added firebase crashlytics
Elelan May 1, 2025
365eedd
Merge pull request #669 from OpenArchive/feature/firebase-integration
Elelan May 1, 2025
82c0a26
app rating poc
Elelan May 1, 2025
372869d
fixed a crash where app crashed when trying to add IA account without…
Elelan May 2, 2025
8951809
Merge pull request #670 from OpenArchive/bugFix/internet-archive-no-i…
Elelan May 2, 2025
b91a184
Proof Mode to work only with Private Cloud Camera uploads
prathieshna May 5, 2025
e8bf6f0
Merge pull request #671 from OpenArchive/feature/proofmode-improved
Elelan May 5, 2025
ff3a64f
Merge branch 'next' into feature/in-app-rating-integration
Elelan Jun 3, 2025
24f7706
Integrate in-app review functionality with helper methods for managin…
Elelan Jun 3, 2025
dda22df
added Tor disabled warning popup with informational dialog
Elelan Jun 3, 2025
16cd7b5
Merge branch 'bugFix/tor-disabled-warning-popup' into feature/in-app-…
Elelan Jun 3, 2025
1a2c0c7
Merge pull request #675 from OpenArchive/bugFix/tor-disabled-warning-…
Elelan Jun 3, 2025
32c81f3
Merge remote-tracking branch 'origin/next' into feature/in-app-rating…
Elelan Jun 3, 2025
5217689
Merge pull request #676 from OpenArchive/feature/in-app-rating-integr…
Elelan Jun 3, 2025
fe1d04e
bump versionCode to 30007 for upcoming release
Elelan Jun 4, 2025
8de169c
localization fixes from next branch added to backup branch
Elelan Jun 23, 2025
60a0176
Refactor: Remove Snackbar confirmation for media deletion
Elelan Jun 25, 2025
eb1f3f9
Updated dialog UI and added Tor download link
Elelan Jun 26, 2025
5a66b95
removed unused string res
Elelan Jun 30, 2025
328baca
Merge pull request #694 from OpenArchive/bugFix/translations-added-fr…
prathieshna Jun 30, 2025
61e8b85
feat: Enable edge-to-edge display and update dependencies
Elelan Jul 11, 2025
e13a617
Updated String Changes in Settings
Jul 17, 2025
63f84cb
Merge pull request #695 from OpenArchive/feature/settings-screen-update
prathieshna Jul 17, 2025
7067da0
feat: Enable edge-to-edge display and update dependencies
Elelan Jul 18, 2025
d9ea4e8
Merge remote-tracking branch 'origin/next-backup-10th' into feature/a…
Elelan Jul 18, 2025
98722fe
Merge pull request #700 from OpenArchive/next-backup-10th
prathieshna Jul 18, 2025
9027e33
feat: Update media picker to use official pick visual media and remov…
Elelan Jul 18, 2025
9ff789c
feat: Implement edge-to-edge display support and update layout for na…
Elelan Jul 18, 2025
b94318d
Merge remote-tracking branch 'origin/next' into feature/android-edge-…
Elelan Jul 21, 2025
4a14566
feat: Refactor media handling and update camera functionality with mo…
Elelan Jul 21, 2025
af4d826
feat: reverted okhttp library to v4.12.0 to support sardine-android.
Elelan Jul 22, 2025
d54ec1b
updated proof-mode to 1.0.30 and fixed breaking changes
Elelan Aug 1, 2025
ee91fff
updated version to 4.0.2 and version code to 30014
Elelan Aug 1, 2025
5409f79
AndroidManifest.xml minor code cleanup
Elelan Aug 1, 2025
c03a6db
Merge pull request #701 from OpenArchive/feature/android-edge-to-edge
Elelan Aug 11, 2025
0fa02db
fix: update internet archive description to clarify account types
Elelan Aug 12, 2025
4321b34
Merge pull request #702 from OpenArchive/bugFix/ia-login-header-descr…
Elelan Aug 12, 2025
ef61d88
chore: increment versionCode to 30015
Elelan Aug 12, 2025
347927f
fix: update upload description for internet archive to specify free p…
Elelan Aug 12, 2025
3777cbf
Merge pull request #703 from OpenArchive/bugFix/ia-login-header-descr…
Elelan Aug 12, 2025
750795a
Updated ProofMode descriptions and UI text
Elelan Aug 27, 2025
7db133a
library upgrades and minor fixes
Elelan Aug 27, 2025
17ad1f3
Merge remote-tracking branch 'origin/next' into bugFix/proofmode-text…
Elelan Aug 27, 2025
79c1fc9
feature: implement custom camera with CameraX and smart permission ha…
Elelan Aug 28, 2025
432def7
The `strings.xml` file was modified to remove an extra space in the `…
Elelan Aug 28, 2025
1b6aca4
Merge pull request #706 from OpenArchive/bugFix/proofmode-text-changes
prathieshna Aug 28, 2025
1d3c2d0
Merge remote-tracking branch 'origin/next' into feature/camera-x-inte…
Elelan Aug 28, 2025
e9bcf49
Bump versionCode to 30017
Elelan Sep 2, 2025
c722ca0
Code cleanup = Dependency Upgrades
Elelan Sep 3, 2025
c06800e
SetupLicenseFragment now added for Internet Archive Onboarding and IA…
Elelan Sep 4, 2025
59b3cac
adde new cc0 license to webdav and internet archive and setup license…
Elelan Sep 4, 2025
2b539e3
added add server btn to space list screen
Elelan Sep 4, 2025
7fe5657
Main activity side menu added Server text
Elelan Sep 5, 2025
96f2e81
setup passcode screen desc text change
Elelan Sep 10, 2025
1c3d4d0
library upgrades and minor code fix
Elelan Sep 10, 2025
13b478c
added productFlavors to differentiate dev, staging vs production buil…
Elelan Sep 10, 2025
3cc0390
ia screens arguments cleanup
Elelan Sep 10, 2025
9ad7f42
Merge pull request #707 from OpenArchive/feature/ia-cc-license
Elelan Sep 10, 2025
c670f1a
Merge branch 'next' into feature/camera-x-integration
Elelan Sep 10, 2025
3add861
upgraded ksp to 2.2.20-2.0.2
Elelan Sep 10, 2025
05538d0
library upgrades
Elelan Sep 11, 2025
d0ec211
Merge branch 'next' into feature/camera-x-integration
Elelan Sep 11, 2025
538b844
updated camera lib
Elelan Sep 11, 2025
6be2a2e
Merge branch 'next' into feature/AOO-39-app-masking
Elelan Sep 11, 2025
fccbf05
set default app in app masking
Elelan Sep 11, 2025
89a5576
removed add column migration script to fix duplicate column crash.
Elelan Sep 11, 2025
7b6623d
onboarding archive - text change
Elelan Sep 11, 2025
22febb4
increased passcode setup screen desc text font size
Elelan Sep 11, 2025
2e7b6ba
ComposeAppBar fixed title text style
Elelan Sep 12, 2025
6e31ae4
Merge pull request #711 from OpenArchive/bugFix/compose-app-bar-ui-fi…
Elelan Sep 12, 2025
95becd7
- replaced Orbot with Tor in onboarding
Elelan Sep 15, 2025
c69af21
Refactor: UI/UX improvements and onboarding flow fixes
Elelan Sep 16, 2025
3fb5850
Merge pull request #712 from OpenArchive/bugFix/qe-review-changes-and…
prathieshna Sep 16, 2025
0184da2
fixed an issue where ProofMode init caused ANR in MainActivity - cras…
Elelan Sep 18, 2025
7413985
fixed Picker.import() inputStream resource management
Elelan Sep 18, 2025
7b4acc3
Merge pull request #713 from OpenArchive/bugFix/proofmode-anr-and-pic…
prathieshna Sep 18, 2025
275aed6
fixed two app instances in recent apps due to OnboardingActivity flag…
Elelan Sep 18, 2025
687ab2e
Merge pull request #714 from OpenArchive/bugFix/proofmode-anr-and-pic…
Elelan Sep 18, 2025
3972efb
QA feedback fixes in Splash, Onboarding and ProofMode
Elelan Sep 19, 2025
4c07252
Fix: Corrected extra line break in ProofMode warning text
Elelan Sep 19, 2025
58ddf5e
Merge branch 'next' into bugFix/proofmode-anr-and-picker-fixes
Elelan Sep 19, 2025
fde2ee9
Merge pull request #715 from OpenArchive/bugFix/proofmode-anr-and-pic…
Elelan Sep 19, 2025
0ca1277
Bump versionCode to 30020
Elelan Sep 19, 2025
3ed2c22
Refactor: Update text styles and labels across various components
Elelan Oct 3, 2025
49d5d0e
Merge pull request #717 from OpenArchive/bugFix/reviewed-fixes-next
prathieshna Oct 3, 2025
d1ded8c
Fixed typo in Orbot download button label
Oct 3, 2025
ebf369b
Refactor: remove unused string resources
Oct 3, 2025
98f9e24
Refactor: remove unused string resources
Oct 3, 2025
637f80b
Translate strings.xml in tr
transifex-integration[bot] Oct 7, 2025
57be4d1
Refactor: Update text styles 2
Elelan Oct 7, 2025
0a6b78a
Translate strings.xml in ar
transifex-integration[bot] Oct 10, 2025
c681a2f
Translate strings.xml in ar
transifex-integration[bot] Oct 10, 2025
6cde0c9
Translate strings.xml in fr
transifex-integration[bot] Oct 12, 2025
8d91a49
Translate strings.xml in uk
transifex-integration[bot] Oct 14, 2025
3f38348
In app update - initial implementation
Elelan Oct 14, 2025
bfdbd6a
in app update optimization - only after onboarding flow completed and…
Elelan Oct 14, 2025
bb1a955
Translate strings.xml in uk
transifex-integration[bot] Oct 14, 2025
a0fe63c
Translate strings.xml in uk
transifex-integration[bot] Oct 14, 2025
1876ffd
Translate strings.xml in uk
transifex-integration[bot] Oct 14, 2025
7e5d379
Translate strings.xml in uk
transifex-integration[bot] Oct 14, 2025
f114b88
Translate strings.xml in uk
transifex-integration[bot] Oct 14, 2025
5fd385a
Translate strings.xml in es
transifex-integration[bot] Oct 15, 2025
f3cd5d3
Translate strings.xml in es
transifex-integration[bot] Oct 17, 2025
654b17d
Translate strings.xml in es
transifex-integration[bot] Oct 17, 2025
82eb94e
Translate strings.xml in fr
transifex-integration[bot] Oct 20, 2025
3a8e350
Translate strings.xml in fr
transifex-integration[bot] Oct 20, 2025
e3e18d9
Translate strings.xml in fr
transifex-integration[bot] Oct 20, 2025
d2454d8
Translate strings.xml in fr
transifex-integration[bot] Oct 20, 2025
305280b
Translate strings.xml in fr
transifex-integration[bot] Oct 20, 2025
7b3197c
changed font weight in passcode screens
Elelan Oct 22, 2025
602af8a
Translate strings.xml in ar
transifex-integration[bot] Oct 24, 2025
a4e620d
fixed drawer showing when no space is available
Elelan Nov 6, 2025
e2aba53
ia and web dav screen bug fixes
Elelan Nov 9, 2025
2fc4671
main media screen rename folder cropped text
Elelan Nov 9, 2025
43dec59
Merge pull request #722 from OpenArchive/translations_505366de2109483…
prathieshna Nov 10, 2025
d14dd1b
Merge pull request #721 from OpenArchive/translations_505366de2109483…
prathieshna Nov 10, 2025
c49ac76
Merge branch 'next' into translations_505366de2109483998b8a27df3b898d…
prathieshna Nov 10, 2025
dd8ef80
Merge pull request #720 from OpenArchive/translations_505366de2109483…
prathieshna Nov 10, 2025
e9ba3a3
Merge branch 'next' into translations_505366de2109483998b8a27df3b898d…
prathieshna Nov 10, 2025
3b00db4
Merge pull request #719 from OpenArchive/translations_505366de2109483…
prathieshna Nov 10, 2025
50cc60a
Merge branch 'next' into translations_505366de2109483998b8a27df3b898d…
prathieshna Nov 10, 2025
2fc9432
Merge pull request #718 from OpenArchive/translations_505366de2109483…
prathieshna Nov 10, 2025
591f2d1
preview screen multiple fixes
Elelan Nov 16, 2025
65639c0
main media adapter and preview adapter fix selection mode bugs with c…
Elelan Nov 17, 2025
2762ad0
removed libsave.so to reduce apk size in production
Elelan Nov 17, 2025
cbb03c7
preview activity edge to edge support fixes
Elelan Nov 17, 2025
930a462
darkmode toggle flicker black screen issue potential fix
Elelan Nov 17, 2025
d8464bf
Merge branch 'next' into bugFix/reviewed-fixes-next
Elelan Nov 17, 2025
413cd2a
fix string tags
Elelan Nov 17, 2025
3a0cd5b
fix string tags 2
Elelan Nov 17, 2025
3729fcb
Merge pull request #724 from OpenArchive/bugFix/reviewed-fixes-next
prathieshna Nov 18, 2025
73d59b9
Translate strings.xml in fr
transifex-integration[bot] Nov 18, 2025
cccff46
Translate strings.xml in es
transifex-integration[bot] Nov 18, 2025
21d5e3e
Translate strings.xml in ar
transifex-integration[bot] Nov 18, 2025
40e1259
Translate strings.xml in uk
transifex-integration[bot] Nov 18, 2025
04e3adb
Translate strings.xml in tr
transifex-integration[bot] Nov 18, 2025
1404e96
Merge branch 'next' into feature/camera-x-integration
Elelan Nov 18, 2025
7dc8a49
upgraded camerax version
Elelan Nov 18, 2025
12e5532
added feature toggle for camerax
Elelan Nov 18, 2025
69684ef
detekt github action workflow upgraded to use latest actions
Elelan Nov 18, 2025
d3a4def
Merge pull request #710 from OpenArchive/feature/camera-x-integration
Elelan Nov 18, 2025
8615fec
Merge branch 'next' into feature/in-app-update
Elelan Nov 18, 2025
23c087f
organized version catalog, build gradle files
Elelan Nov 18, 2025
3bd687d
made InAppUpdateCoordinator internal
Elelan Nov 18, 2025
e3dd835
Merge pull request #730 from OpenArchive/feature/in-app-update
Elelan Nov 18, 2025
f2ce095
removed google drive feature
Elelan Nov 18, 2025
f61c909
removed unused fragment_space_setup.xml file
Elelan Nov 18, 2025
4be47cf
Merge pull request #731 from OpenArchive/bugFix/gdrive-remove
Elelan Nov 18, 2025
8af9712
Merge branch 'next' into feature/AOO-39-app-masking
Elelan Nov 18, 2025
30d4952
fixed merge issues in strings.xml
Elelan Nov 18, 2025
7eb7945
Merge pull request #729 from OpenArchive/translations_505366de2109483…
prathieshna Nov 19, 2025
4f56a2b
Merge pull request #726 from OpenArchive/translations_505366de2109483…
prathieshna Nov 19, 2025
39a297b
Merge pull request #727 from OpenArchive/translations_505366de2109483…
prathieshna Nov 19, 2025
51b1d73
Merge pull request #728 from OpenArchive/translations_505366de2109483…
prathieshna Nov 19, 2025
4681ccf
Merge pull request #725 from OpenArchive/translations_505366de2109483…
prathieshna Nov 19, 2025
a01d440
app masking refactor
Elelan Nov 19, 2025
c087cbc
app masking refactor and improvements
Elelan Nov 19, 2025
060a363
feat: added new file type and account icons
Nov 19, 2025
a2d1eb9
app masking further improvements
Elelan Nov 19, 2025
b791576
Merge branch 'next' into feature/AOO-39-app-masking
Elelan Nov 19, 2025
4bb3ba6
Fix: escape apostrophes in Ukrainian and Turkish strings
Nov 19, 2025
2451b23
Merge branch 'next' into feature/AOO-39-app-masking
Elelan Nov 19, 2025
72f7812
removed waveform soundfile and used new icons for media
Elelan Nov 19, 2025
e579458
main media adapter and preview adapter placeholder icon tint changes
Elelan Nov 20, 2025
a5ccf20
media grids more tweaks
Elelan Nov 20, 2025
8f0b520
media list viewholder improvements for UploadMediaFragment
Elelan Nov 21, 2025
3629cef
**Camera Screen Enhancements:**
Elelan Nov 25, 2025
9d7a186
**PDF Thumbnail Generation:**
Elelan Nov 25, 2025
738ef02
**WebDAV Screen Refactoring:**
Elelan Nov 25, 2025
4900a8f
Merge pull request #733 from OpenArchive/bugFix/media-list-icons-and-…
prathieshna Nov 26, 2025
0208fec
Merge branch 'next' into feature/AOO-39-app-masking
Elelan Nov 26, 2025
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
  •  
  •  
  •  
34 changes: 0 additions & 34 deletions .circleci/config.yml

This file was deleted.

152 changes: 56 additions & 96 deletions .github/workflows/detekt.yml
Original file line number Diff line number Diff line change
@@ -1,116 +1,76 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow performs a static analysis of your Kotlin source code using
# Detekt.
#
# Scans are triggered:
# 1. On every push to default and protected branches
# 2. On every Pull Request targeting the default branch
# 3. On a weekly schedule
# 4. Manually, on demand, via the "workflow_dispatch" event
#
# The workflow should work with no modifications, but you might like to use a
# later version of the Detekt CLI by modifying the $DETEKT_RELEASE_TAG
# environment variable.
name: Scan with Detekt
name: Detekt Analysis

on:
# Triggers the workflow on push or pull request events but only for default and protected branches
push:
branches: [ "master" ]
# Triggers on push to key branches
# push:
# branches: #[ "master", "stable", "next", "feature/major-refactor-ui-changes" ]
# - '**' # Triggers on pull requests to any branch
pull_request:
branches: [ "master" ]
schedule:
branches:
- '**' # Triggers on pull requests to any branch
schedule: # Scheduled weekly scan
- cron: '35 5 * * 0'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
# Release tag associated with version of Detekt to be installed
# SARIF support (required for this workflow) was introduced in Detekt v1.15.0
DETEKT_RELEASE_TAG: v1.22.0
DETEKT_RELEASE: 1.22.0

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "scan"
scan:
name: Scan
# The type of runner that the job will run on
detekt:
name: Static Code Analysis with Detekt
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# ✅ Step 1: Checkout Repository
- name: Check out code
uses: actions/checkout@v5

# Gets the download URL associated with the $DETEKT_RELEASE_TAG
- name: Get Detekt download URL
id: detekt_info
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api graphql --field tagName=$DETEKT_RELEASE_TAG --raw-field query='
query getReleaseAssetDownloadUrl($tagName: String!) {
repository(name: "detekt", owner: "detekt") {
release(tagName: $tagName) {
releaseAssets(name: "detekt", first: 1) {
nodes {
downloadUrl
}
}
tagCommit {
oid
}
}
}
}
' 1> gh_response.json
# ✅ Step 2: Set up Java 17
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'

DETEKT_RELEASE_SHA=$(jq --raw-output '.data.repository.release.releaseAssets' gh_response.json)
if [ $DETEKT_RELEASE_SHA != "4b1da0d5feb53d9ae9b80193ad49c5597d7c4b42" ]; then
echo "Release tag doesn't match expected commit SHA"
exit 1
fi
cat gh_response.json
DETEKT_DOWNLOAD_URL=https://github.com/detekt/detekt/releases/download/$DETEKT_RELEASE_TAG/detekt-cli-$DETEKT_RELEASE-all.jar
echo $DETEKT_DOWNLOAD_URL
echo "download_url=$DETEKT_DOWNLOAD_URL" >> $GITHUB_OUTPUT
# ✅ Step 3: Install Ruby and Bundler (Required for Fastlane)
- name: Install Ruby and Bundler
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true

# Sets up and runs the detekt cli
- name: Setup and Run Detekt
continue-on-error: true
id: detekt_setup_and_run
- name: Create local.properties file
run: |
curl --request GET \
--url ${{ steps.detekt_info.outputs.download_url }} \
--silent \
--location \
--output detekt.jar
chmod a+x detekt.jar
# Performs static analysis using Detekt
java -jar "detekt.jar" --input ${{ github.workspace }} --all-rules --report sarif:${{ github.workspace }}/detekt.sarif.json
echo "MIXPANEL_KEY=${{ secrets.MIXPANEL_KEY }}" >> local.properties
echo "STOREFILE=${{ secrets.STOREFILE }}" >> local.properties
echo "STOREPASSWORD=${{ secrets.STOREPASSWORD }}" >> local.properties
echo "KEYALIAS=${{ secrets.KEYALIAS }}" >> local.properties
echo "KEYPASSWORD=${{ secrets.KEYPASSWORD }}" >> local.properties


# Modifies the SARIF output produced by Detekt so that absolute URIs are relative
# This is so we can easily map results onto their source files
# This can be removed once relative URI support lands in Detekt: https://git.io/JLBbA
- name: Make artifact location URIs relative
continue-on-error: true
# ✅ Step 4: Install Fastlane Dependencies
- name: Install Fastlane dependencies
run: |
echo "$(
jq \
--arg github_workspace ${{ github.workspace }} \
'. | ( .runs[].results[].locations[].physicalLocation.artifactLocation.uri |= if test($github_workspace) then .[($github_workspace | length | . + 1):] else . end )' \
${{ github.workspace }}/detekt.sarif.json
)" > ${{ github.workspace }}/detekt.sarif.json
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3

# ✅ Step 5: Run Detekt via Fastlane
- name: Run Detekt
run: |
bundle exec fastlane detekt

# ✅ Step 6: Upload SARIF report for GitHub Security Code Scanning
- name: Upload SARIF report for GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: "app/build/reports/detekt/detekt.sarif"
category: detekt-analysis

# Uploads results to GitHub repository using the upload-sarif action
- uses: github/codeql-action/upload-sarif@v2
# ✅ Step 7: Upload Detekt Reports as Artifacts for Download
- name: Upload Detekt Reports as Artifacts
uses: actions/upload-artifact@v4
with:
# Path to SARIF file relative to the root of the repository
sarif_file: ${{ github.workspace }}/detekt.sarif.json
checkout_path: ${{ github.workspace }}
name: detekt-reports
path: |
*/build/reports/detekt/*.html
*/build/reports/detekt/*.md
*/build/reports/detekt/*.xml
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@ fastlane/.env
/app/release/baselineProfiles/0/save-unspecified-release.dm
/app/release/baselineProfiles/1/save-unspecified-release.dm
/app/release/output-metadata.json
/app/src/main/assets/.env
/.kotlin/sessions/kotlin-compiler-1215430679833621634.salive
/.kotlin/
/app/release/
/app/prod/
/app/prod/release/save-unspecified-prod-release.aab
Loading