Depends-Kotlin: A Cross-Language Kotlin Dependency Extractor

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Feng, Qiong, Ma, Xiaotian, Ji, Huan, Song, Wei, Liang, Peng
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911997073817600
author Feng, Qiong
Ma, Xiaotian
Ji, Huan
Song, Wei
Liang, Peng
author_facet Feng, Qiong
Ma, Xiaotian
Ji, Huan
Song, Wei
Liang, Peng
contents Since Google introduced Kotlin as an official programming language for developing Android apps in 2017, Kotlin has gained widespread adoption in Android development. However, compared to Java, there is limited support for Kotlin code dependency analysis, which is the foundation to software analysis. To bridge this gap, we develop Depends-Kotlin to extract entities and their dependencies in Kotlin source code. Not only does Depends-Kotlin support extracting entities' dependencies in Kotlin code, but it can also extract dependency relations between Kotlin and Java. Using three open-source Kotlin-Java mixing projects as our subjects, Depends-Kotlin demonstrates high accuracy and performance in resolving Kotlin-Kotlin and Kotlin-Java dependencies relations. The source code of Depends-Kotlin and the dataset used have been made available at https: //github.com/XYZboom/depends-kotlin. We also provide a screen-cast presenting Depends-Kotlin at https://youtu.be/ZPq8SRhgXzM.
format Preprint
id arxiv_https___arxiv_org_abs_2401_16865
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Depends-Kotlin: A Cross-Language Kotlin Dependency Extractor
Feng, Qiong
Ma, Xiaotian
Ji, Huan
Song, Wei
Liang, Peng
Software Engineering
Since Google introduced Kotlin as an official programming language for developing Android apps in 2017, Kotlin has gained widespread adoption in Android development. However, compared to Java, there is limited support for Kotlin code dependency analysis, which is the foundation to software analysis. To bridge this gap, we develop Depends-Kotlin to extract entities and their dependencies in Kotlin source code. Not only does Depends-Kotlin support extracting entities' dependencies in Kotlin code, but it can also extract dependency relations between Kotlin and Java. Using three open-source Kotlin-Java mixing projects as our subjects, Depends-Kotlin demonstrates high accuracy and performance in resolving Kotlin-Kotlin and Kotlin-Java dependencies relations. The source code of Depends-Kotlin and the dataset used have been made available at https: //github.com/XYZboom/depends-kotlin. We also provide a screen-cast presenting Depends-Kotlin at https://youtu.be/ZPq8SRhgXzM.
title Depends-Kotlin: A Cross-Language Kotlin Dependency Extractor
topic Software Engineering
url https://arxiv.org/abs/2401.16865