Skip to content
Proyek

joreilly/FantasyPremierLeague

Lihat di GitHub

Tentang

Contoh Fantasy Premier League dengan Kotlin/Compose Multiplatform.

AI dan pembelajaran mesin

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
-2
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Fantasy Premier League

kotlin-version

Compose Multiplatform project running on following

  • Android
  • iOS
  • Desktop

Also includes

  • AI agent built with Koog (Gemini + tool calling, running in shared KMP code)
  • Kotlin Notebook
  • MCP Server

It also currently makes use of the following Jetpack libraries

  • ViewModel
  • Navigation 3
  • Room
  • DataStore

Related posts:

Running the app

  • Android: open the project in Android Studio and run the app configuration
  • iOS: open ios/FantasyPremierLeague/FantasyPremierLeague.xcodeproj in Xcode and run
  • Desktop: ./gradlew :compose-desktop:run
  • MCP Server: ./gradlew :mcp-server:shadowJar (see MCP Server section below)

Note: to use the AI agent you need a Gemini API key — set apiKeyGoogle in FantasyPremierLeagueAgent.

Screenshots

Android

Screenshot_20251101_204058

iOS

Simulator Screenshot - iPhone 17 Pro - 2025-11-01 at 20 37 58

Desktop

Screenshot 2025-11-01 at 20 38 24

Kotlin Notebook

Screenshot 2024-04-06 at 11 03 15Screenshot 2024-04-06 at 11 03 36

MCP Server

The mcp-server module uses the Kotlin MCP SDK to expose an MCP tools endpoint (returning player/fixture info) that can for example be plugged in to Claude Desktop as shown below. That module uses same KMP shared code.

Screenshot 2025-07-16 at 21 17 33

To integrate the MCP server with Claude Desktop for example you need to firstly run gradle shadowJar task and then select "Edit Config" under Developer Settings and add something like the following (update with your path)

{
  "mcpServers": {
    "fantasy-premier-league": {
      "command": "java",
      "args": [
        "-jar",
        "/Users/john.oreilly/github/FantasyPremierLeague/mcp-server/build/libs/serverAll.jar",
        "--stdio"
      ]
    }
  }
}

UI tests

There's a Maestro UI test flow shared by the Android and iOS clients, run by CI on an emulator and a simulator (e.g. maestro test -e APP_ID=dev.johnoreilly.fantasypremierleague maestro/FantasyPremierLeague.flow).

Full set of Kotlin Multiplatform/Compose/SwiftUI samples

Jelajahi proyek terkait

Memuat…