Skip to content

Latest commit

 

History

History
160 lines (114 loc) · 9.46 KB

README.md

File metadata and controls

160 lines (114 loc) · 9.46 KB
Kotlineer App Icon

Kotlineer

A powerful, minimalist mobile Kotlin IDE & code runner built natively for Android with Jetpack Compose.

Android Build Android Kotlin Jetpack Compose Min SDK Compile SDK License


Overview • Key Features • App Screens • Architecture & Tech Stack • Building & Running • Contributing • License


📖 Overview

Kotlineer is a standalone, edge-to-edge mobile Kotlin development environment and code playground built natively for Android using Jetpack Compose and Material 3. Designed and developed independently by Maheswara660, Kotlineer enables developers, students, and interview candidates to write, edit, syntax-highlight, and execute Kotlin code directly on device.

Kotlineer features an embedded execution engine with line-by-line diagnostic error reporting, a 100+ line number strip, smart auto-indentation, popular developer fonts, full-screen practice template gallery, 4 custom theme modes, and native Storage Access Framework (SAF) integration for .kt source files.


⚡ Key Features

  • 🚀 Embedded Kotlin Execution Engine: Evaluates standard Kotlin syntax (variables, data types, nullability, conditionals, loops, custom functions, data classes, collections, and lambdas) directly on device with performance measurement in milliseconds.
  • 🚨 Line-by-Line Error Diagnostics: Catches pre-compilation syntax errors and runtime exceptions, pinpointing exact line numbers with failing code pointers (^) and actionable fix suggestions.
  • ⌨️ Fast Symbol Access Toolbar: Quick-tap bar positioned above the mobile keyboard for rapid insertion of code symbols ({, }, ->), keywords (val, fun, println), and tab indentation.
  • 🧠 Smart Auto-Indentation: Automatically indents code by 4 spaces on Enter key presses inside braces {} and parentheses ().
  • 📊 Pre-rendered 100+ Line Number Column: Displays a minimum 100-line numbering column that dynamically expands beyond 100 lines as your code scales.
  • 🎨 4 Curated Theme Modes:
    • Dark Cyber (Default): Icon-matched palette featuring Kotlin Purple (#7F52FF) & Electric Violet (#E040FB) on a dark cyber surface (#0D0B18).
    • Light Developer: Clean, high-contrast light coding surface.
    • AMOLED Pure Black: Deep #000000 black surface optimized for OLED displays.
    • System Default: Automatically synchronizes with your system settings.
  • 🔤 Developer Font Selector: Support for popular coding typefaces (Monospace, Fira Code, JetBrains Mono, Source Code Pro, Inconsolata, Hack, Courier New, Serif).
  • 📚 Dedicated Practice Templates Gallery: 18+ preloaded code templates categorized into Basics, Algorithms, and Kotlin Idioms with code snippet previews.
  • 🎛️ Dashboard ModalBottomSheet: Sleek bottom sheet navigation menu triggered by the top Dashboard header button.
  • 💾 Storage Access Framework (SAF): Open and save .kt source code files natively using Android's system document picker.
  • 💾 Auto-Save & Code Persistence: Automatically saves typed code and editor state across app launches with live auto-save timestamps.
  • 📐 Edge-to-Edge System Bar Insets: Full status bar (statusBarsPadding()) and gesture navigation bar (navigationBarsPadding()) padding across all screens.

📱 App Screens & User Experience

Coding Screen Console Output Practice Templates Settings Menu
Coding Screen Console Output Templates Gallery Settings Screen

1. 💻 Coding Screen

  • Header with RUN action button (Icons.Default.PlayArrow) and Dashboard button (Icons.Default.Dashboard).
  • Code editor with syntax highlighting, 100+ line numbers column, symbol bar, and live character/line counter.
  • Top Dashboard button triggers a ModalBottomSheet menu with options for Templates & Practice, Open File, Save As, Clear Code, Settings, and About Kotlineer.

2. 🖥️ Console Output Screen

  • Terminal output view displaying program stdout, execution duration in milliseconds, pass/fail status badge, and trace logs.
  • Diagnostic error card displaying failure line numbers, failing code snippet pointers (^), and fix hints.
  • Left-aligned header back arrow button to return to the editor.

3. 📚 Templates & Practice Screen (TemplatesScreen.kt)

  • Full-screen gallery with category filter pills (All, Basics, Algorithms, Kotlin Idioms).
  • Interactive template cards displaying title, category badge, description, syntax-highlighted code preview snippet, and LOAD TEMPLATE button.

4. ⚙️ Settings Screen (SettingsScreen.kt)

  • Preferences for Theme Modes (Dark Cyber, Light, AMOLED, System), Developer Font Selection, Kotlin Target Version (Kotlin 2.2), Font Size slider (10sp–24sp), Tab Size picker (2, 4, 8 spaces), Auto-Close Brackets toggle, Line Numbers toggle, and Word Wrap toggle.

5. ℹ️ About Screen (AboutScreen.kt)

  • App branding emblem (Icons.Rounded.Code), version badge (v1.0.0), Developer Card (Maheswara660, Android Developer & UI Enthusiast), and Links & Resources container (GitHub Repository, Support Project, Open Source License).

🛠️ Architecture & Tech Stack

Kotlineer is structured following Android's official modern app architecture guidelines:

Component Specification / Library
Language Kotlin 100%
UI Framework Jetpack Compose with Material 3
Architecture MVVM with StateFlow & KotlineerViewModel
State Persistence Android SharedPreferences via CodePreferences
File Operations Storage Access Framework (SAF) CreateDocument & OpenDocument
Min / Compile SDK Min SDK 24 (Android 7.0) • Compile SDK 37 (Android 15) • Target SDK 35
JDK Target Java 17 (JavaVersion.VERSION_17)
Page Alignment 16KB Page Alignment support (packaging.jniLibs.useLegacyPackaging = false)
ABIs & Packaging Multi-ABI Splits (armeabi-v7a, arm64-v8a, x86, x86_64) with isUniversalApk = true
Code Optimization Custom ProGuard / R8 rules (app/proguard-rules.pro)

⚙️ Getting Started & Building

As an open-source project, Kotlineer can be compiled using standard Android SDK tools.

Prerequisites

  • Android Studio: Ladybug (2024.2.1) or newer
  • JDK: Java 17 or higher
  • Android SDK: API 37 (Compile SDK) / API 35 (Target SDK)

Build Instructions

  1. Clone the Repository:

    git clone https://github.com/Maheswara660/Kotlineer.git
    cd Kotlineer
  2. Build Debug APK:

    ./gradlew assembleDebug

    The debug APK will be generated at: app/build/outputs/apk/debug/app-debug.apk

  3. Build Release APKs & Universal Installer:

    ./gradlew assembleRelease

    The output APKs (per-ABI splits and universal installer) will be generated at: app/build/outputs/apk/release/


🤝 Contributing

Contributions, bug reports, and template suggestions are welcome! Please review the Contributing Guidelines and Code of Conduct before opening a pull request.


📄 License

Distributed under the GNU General Public License v3.0. See LICENSE for details.


Developed with ❤️ by Maheswara660