Kotlin · Gradle · Android
Kotlin code similarity check
Kotlin Multiplatform and shared core libraries can legitimately look alike—apporig helps teams separate intentional shared layers from storefront-specific code that still reads as duplicate.
How should flavor dimensions be uploaded for fair comparison?
Each flavor zip or Git tag should reflect the same signing config you ship; mixing debug and release skews percentages.
FAQ
How does Kotlin code similarity detection work?
apporig parses Kotlin into ASTs and compares structural fingerprints. Data classes, repositories, ViewModels, and coroutine patterns are matched across Android projects.
Can apporig detect renamed Kotlin classes?
Yes. Structural analysis detects identical class architecture even when package names and class names differ between Android apps.
Does apporig analyze Jetpack Compose code?
Yes. Composable functions and related Kotlin logic are parsed and compared. UI code in Compose or XML is analyzed at the Kotlin source level.
What Kotlin patterns indicate template reuse?
Identical Application classes, copied Retrofit setups, duplicate Room databases, and shared base Activity/Fragment classes. apporig flags these structural patterns.
Can I compare Kotlin Multiplatform modules?
apporig analyzes Kotlin source files in your uploaded project including shared KMP modules alongside Android-specific code.
How to reduce Kotlin code similarity between Android apps?
Rewrite flagged data and domain layers, use different architecture patterns (MVVM vs MVI), and avoid copying base classes from template projects.
Does apporig support Java and Kotlin mixed projects?
Yes. Both Java and Kotlin files are parsed and included in Android project analysis. Mixed codebases are fully supported.
What is Kotlin structural fingerprinting?
apporig extracts AST node patterns from Kotlin source and hashes them. Similar fingerprints across projects indicate structural clones regardless of naming.
How to check Kotlin code before Google Play submission?
Upload all Android apps to apporig, review Kotlin similarity scores, refactor COPY modules, and confirm OK status before publishing.
Can apporig find copied Kotlin coroutine patterns?
Yes. Suspend functions, flow operators, and coroutine scope patterns are part of AST analysis and compared across projects.
Is Kotlin analysis included in the free tier?
Yes. Upload Android projects and run Kotlin/Java analysis on the free apporig workspace tier.
How does apporig handle Kotlin DSL build files?
apporig focuses on application source code. Build configuration files are compared when they contain project-specific logic.