Skip to content

refactor(main-app): kotlin - #17952

Merged
alperozturk96 merged 3 commits into
masterfrom
refactor/main-app-kotlin
Nov 10, 2026
Merged

alperozturk96 merged 3 commits into
masterfrom
refactor/main-app-kotlin

Conversation

@alperozturk96

@alperozturk96 alperozturk96 commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

  • Converts to Kotlin
  • Simplifies logic and splits into classes

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

@alperozturk96 alperozturk96 added 2. developing AI assisted ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Nov 4, 2026
@alperozturk96
alperozturk96 force-pushed the refactor/main-app-kotlin branch from 76a7a1a to 8ee8aeb Compare November 4, 2026 12:32
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit 04579ec
Version 17952
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

@alperozturk96
alperozturk96 force-pushed the refactor/main-app-kotlin branch 2 times, most recently from ed2ef70 to 9661691 Compare November 5, 2026 07:02
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

stable35-IT test failed, but no output was generated. Maybe a preliminary stage failed.

powerManagementService: PowerManagementService,
backgroundJobManager: BackgroundJobManager,
clock: Clock,
viewThemeUtils: ViewThemeUtils?,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is never used, maybe can be removed

lateinit var clock: Clock

@Inject
lateinit var eventBus: EventBus

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to be used, I removed it and builds fine

fun string(@StringRes id: Int, args: Any?): String = getAppContext().getString(id, args)

@JvmStatic
fun getAppContext(): Context = appContext!!.get()!!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't not notice this not null assertion, but also the appContext is probably there all the time, so I guess it's fine

@alperozturk96
alperozturk96 force-pushed the refactor/main-app-kotlin branch from 9661691 to cfac208 Compare November 10, 2026 07:23
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>

# Conflicts:
#	app/src/main/java/com/owncloud/android/MainApp.kt
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@github-actions

Copy link
Copy Markdown

SpotBugs

CategoryBaseNew
Bad practice2424
Correctness4847
Dodgy code128126
Experimental11
Malicious code vulnerability11
Multithreaded correctness1313
Performance2626
Security1515
Total256253

@alperozturk96
alperozturk96 merged commit 2395169 into master Nov 10, 2026
24 of 30 checks passed
@alperozturk96
alperozturk96 deleted the refactor/main-app-kotlin branch November 10, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review AI assisted ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants