← Back to Education Final Project · Applied Bachelor's Thesis

Improving the Maintainability of the AyoPramuka Mobile App with GetX State Management

Refactoring the E-Diklat module of Gerakan Pramuka Indonesia's official app with GetX and an MVCS architecture — measured with SonarQube, Dart Code Metrics and industry practitioner reviews.

Completed · 2025 Electronic Engineering Polytechnic Institute of Surabaya Applied Bachelor of Informatics Engineering
Abstract

This study improves the maintainability of the AyoPramuka mobile app's E-Diklat module by implementing GetX state management with an MVCS architecture. The initial SonarQube analysis found more than 5,900 maintainability issues with significant technical debt. The methodology combines static analysis with SonarQube, code metric evaluation with Dart Code Metrics, and reviews by five industry practitioners. GetX and systematic refactoring significantly reduced maintainability issues, technical debt, code complexity and nesting depth, raising the module's maintainability rating. Practitioners also reported clear improvements in clean code and ease of maintenance, with moderate agreement between reviewers (Cohen's Kappa 0.56).

MaintainabilityFlutterGetXSonarQubeCode Refactoring
Quick Facts
Supervisors
Desy Intan Permatasari, S.Kom., M.Kom.
Fadilah Fahrul Hardiansyah, S.ST., M.Kom.
Ahmad Syauqi Ahsan, S.Kom., M.T.
Research Group
Agile Product Development
Case Study
AyoPramuka — E-Diklat module
Partner
PT Rahadhyan Integrasi Nusantara
Platform
Flutter · Android · iOS
Background

Problem & Objectives

AyoPramuka serves Scout members across Indonesia — social feed, messaging, activities and e-learning (E-Diklat). Constant pressure to ship features fast often came at the cost of code structure.

Problem Statement

  • High user demand and tight deadlines left the app with low maintainability.
  • SonarQube reported ~5,900 open issues, a maintainability rating of B and a reliability rating of D on the E-Diklat module.
  • A single file carried almost 4 days of technical debt — a sign of god classes and long methods.
  • How can GetX state management improve maintainability in AyoPramuka's development?

Objectives

  1. Raise the E-Diklat module's maintainability rating from B to A.
  2. Reduce open issues and the technical debt ratio.
  3. Separate UI from business logic through GetX and an MVCS architecture.
  4. Validate the results with code metrics and industry practitioner reviews.

Scope: the E-Diklat module only, and only the Maintainability factor of McCall's Software Quality Model.

Methodology

How I Approached It

01

Baseline Analysis

SonarQube scan of the E-Diklat module to map open issues, technical debt and the starting ratings.

02

Refactor to GetX

Migrating to GetX with Model, View, Controller and Service layers; repositories and folders split per sub-feature.

03

Iterative Testing

1 sampling iteration on 8 code snippets and 3 full-module iterations, including when the new Kelola E-Diklat module was added.

04

Evaluation

SonarQube, Dart Code Metrics (LoC, cyclomatic complexity, nesting) and reviews by 5 industry practitioners with Cohen's Kappa.

Results

Key Findings

Initial state compared with the final iteration, measured with SonarQube.

B → AMaintainability rating
27%Fewer open issues (5.9k → 4.3k)
68%Less debt on the heaviest file (97h → 31h)
D → AReliability rating (60 → 0 issues)

Maintainability Open Issues per Iteration

The spike in Iteration 2 came from adding the new Kelola E-Diklat module, then was brought back down through refactoring.

Initial state5,900
Iteration 14,300
Iteration 2 – start7,600
Iteration 2 – end5,400
Iteration 34,300

Industry Practitioner Review

  • 5 industry practitioners rated code samples before and after the GetX migration.
  • Before refactoring, most snippets failed clean-code criteria; afterwards every snippet was rated cleaner and easier to understand.
  • Average maintainability scores of 4–5 out of 5 on every aspect.
  • Cohen's Kappa of 0.56 — moderate agreement between reviewers.

Code Metrics

  • Lines of code, method count and widget density dropped on most pages.
  • Cyclomatic complexity and nesting depth are better under control.
  • Fewer god classes, long methods and duplicated logic — the code is more modular.
  • Fewer issues, better metrics and practitioner ratings correlate with each other.
Tech Stack

Tools Used

Development

FlutterDartGetXMVCS ArchitectureREST API

Code Quality

SonarQubeDart Code MetricsRefactoring

Evaluation

User ReviewCohen's KappaMcCall Quality Model
Conclusion

GetX proved effective at improving mobile app maintainability. SonarQube, code metrics and practitioner reviews worked as mutually reinforcing indicators — supporting a more stable, maintainable app for non-formal education.

Future Work
  • Extend the GetX approach to other AyoPramuka modules.
  • Split the remaining large classes for more consistent Single Responsibility.
  • Add reliability, performance and usability dimensions.
Let's talk

Need an app that's easy to maintain?

I bring the same approach — clean architecture, measurable quality — to every mobile and web project.

Get in touch →