Arun Sudharsan
08/02/2025, 7:04 PMkotlin.jvm.internal.Intrinsics
calls). These account for ~2% of our APK size.
• Solution: Added ProGuard -assumenosideeffects
rules to remove these internal assertion methods (checkNotNull
, checkParameterIsNotNull
, etc.).
• Effect: Functionality remains the same; only runtime safety checks are stripped out.
• Trade-offs (which we’re okay with):
◦ Crash stack traces may lose some detail
◦ Some Kotlin-generated safety information from Intrinsics.java
will be missing
Project context
• Codebase: ~97% Kotlin, ~3% Java (20+ files).
Concerns
• Kotlin → Kotlin calls: Should be safe since nullability contracts are enforced at compile time.
• Java → Kotlin calls: Potential risk, since a Kotlin method expecting non-null could be called with a nullable from Java.
Current approach
• We’re reviewing and testing all Java → Kotlin call sites.
• Running automation suite + manual QA for validation.
My questions
1. How safe is this approach in practice? Are there pitfalls we might be missing?
2. Is there a more automated / systematic way (beyond manual inspection + tests) to gain confidence that removing these null-safety checks won’t cause issues in production?
Would love to hear if anyone has tackled this before, or has suggestions for tooling / strategies to improve our conviction here. 🙏Can
08/04/2025, 9:55 AMTobias Preuss
08/07/2025, 9:59 PMActivity
(with supportActionBar
, no XML toolbar) and
its nested Fragment
(with the toolbar icons setup via MenuProvider
, onCreateMenu
, onMenuItemSelected
).
The actual content view is in Compose > Scaffold
but without a TopBar
!
I am trying to enable edge-to-edge and to extend the supportActionBar
to the statusBar. Is there an API?
I tried enableEdgeToEdge
, fitsSystemWindows
on the Toolbar style and via window.decorView
. No success though.Giang Vu Truong
08/08/2025, 2:51 AMyash rathor
08/09/2025, 8:15 PMyousef shaaban
08/10/2025, 9:19 AMSlackbot
08/10/2025, 1:17 PMMau NG
08/11/2025, 7:19 AMEugene Maksymenko
08/12/2025, 10:08 AMTanmay Shree
08/12/2025, 4:06 PMcontext
parameter in the data block in fcm request but unable to get it in the MainActivity when I click on the notification.Slackbot
08/13/2025, 10:06 PMCan
08/14/2025, 12:15 PMBarry Fawthrop
08/16/2025, 6:20 PMOliver.O
08/20/2025, 9:08 PMazeddine
08/22/2025, 1:53 PMprasanna
08/25/2025, 8:29 AMSlackbot
08/27/2025, 7:07 PMprasanna
08/28/2025, 7:55 AMLEVELU
08/28/2025, 9:32 AMAdam Brown
08/31/2025, 6:35 AMJenis Sanghani
09/01/2025, 6:11 AMfalcon
09/01/2025, 9:12 AMBarry Fawthrop
09/02/2025, 12:33 PMSourav Kumar
09/02/2025, 2:31 PMin.dummy.android
. Java files compile with package in.dummy.android
, but Kotlin requires backticks with in keyword: `package in
.dummy.android`. After adding Spotless (ktlint), I get error ktlint(standard:package-name) Package name contains a disallowed character
.
What’s the best way to handle this ? Any recommendation for large code base ? I tried to find some rules to write in .editorconfig but did not find any .JunkEmail ForMe
09/04/2025, 9:30 AMtypealias LocationProviderClient = FusedLocationProviderClient
app/fdroid
typealias LocationProviderClient = LostApiClient
and then use LocationProviderClient directly in main
codeCiaran Sloan
09/04/2025, 2:08 PMprivate lateinit var scrollView: ScrollView
fun onCreateView(): View? {
val view = super.onCreateView()
if (view != null) {
scrollView = view.findViewById(R.id.scoll_view)
}
}
The crash happens at the assignment of findViewById, as the layout doesn't actually exist. We didn't notice this crash as it's in an abstraction and this property isn't actually accessed or read.
However since bumping to Kotlin 2.2 this crashes with an NPE - which is actually expected.
Does anyone know what might have changed in 2.2 that might have caused this? Or why we wouldn't have seen this prior to 2.2?Thierry Kh
09/04/2025, 11:17 PMprasanna
09/08/2025, 10:33 AMBillUploaded
, SelectParticipants
, SelectSplitMethod
, AssignItems
, SelectPayer
, ShowSummary
) but curious if there’s a more elegant solution you’ve used.
Any suggestions / best practices would be really helpful 🙏khushal dadwal
09/10/2025, 10:03 AM