A Generative AI approach to native iOS and Android Code Translation: With and Without Retrieval-Augmented Generation (RAG)
2024 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesis
Abstract [en]
Smartphones are a product whose usage across the world makes it a common yet incredibly important tool. Developing for both of the most commonly used operating systems for smartphones, Android and iOS is required to reach a large market. This study seeked to investigate the potential usage of the OpenAI Assistant API with GPT-4 to translate from native iOS development to native Android development. This study was motivated by the potential financial and resourceful cost of developing natively for both platforms, the performance compromise made by cross-platform development and the ever evolving capabilities of generative AI.
The purpose of this study was to investigate the efficiency with which the OpenAI Assistant API with GPT-4 is able to translate general code structures as well as platform-specific APIs, frameworks, and features, including software- and hardware-dependent functionalities. It also included how that efficiency is influenced when providing the latest documentation to the OpenAI Assistant API. This study involved artifact creation, observation, a literature study and an analysis of the observational data.
The conclusions of the study show that while providing the latest documentation for the OpenAI Assistant API proved to generally improve results, the OpenAI Assistant API with GPT-4 performs better in translations in which platform-specific APIs, features and functionalities are omitted entirely and the best values were found for files containing minimal logic.
Place, publisher, year, edition, pages
2024. , p. 122
Keywords [en]
Android, app development, GPT-4, iOS, mobile development, native development, OpenAI, RAG
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:hj:diva-65484OAI: oai:DiVA.org:hj-65484DiVA, id: diva2:1879944
Supervisors
Examiners
2024-07-222024-06-292025-10-13Bibliographically approved