PokeDaisy
Copyright (C) 2026 Lidor Itzhari
https://github.com/lidor30/pokedaisy

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, version 3 (see LICENSE), with the additional term below.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

ADDITIONAL TERM (GNU GPL version 3, section 7(b))

Anyone who conveys this program, or any work based on it, in source or
compiled form, must preserve the following attribution:

    Based on PokeDaisy by Lidor Itzhari - https://github.com/lidor30/pokedaisy

It must appear (1) in this NOTICE file, kept with the source; (2) in the
work's README or equivalent documentation; and (3) where the work shows
credits, an "About" screen or other Appropriate Legal Notices, there too.

THIRD-PARTY COMPONENTS

The app shows every license below in full under Settings > LICENSES.

- mGBA (third_party/mgba), Copyright (c) 2013-2022 Jeffrey Pfau and
  contributors, Mozilla Public License 2.0 - https://github.com/mgba-emu/mgba
  (source: https://github.com/mgba-emu/mgba/tree/0.10.5). Built with two of
  its bundled libraries: blip_buf (GNU LGPL 2.1) and inih (BSD).
  app/src/main/cpp/pk_rewind.c is adapted from mGBA's src/core/rewind.c and
  stays under the MPL 2.0 (its header says so).
- 3DS build only: armGBA (third_party/armgba), Copyright (c) 2026 Magnominus and the armGBA 3DS
  port contributors, Mozilla Public License 2.0 for the parts the 3DS build
  uses (src/, libretro/ and platform/3ds/source/; its Gambatte side, GPL-2.0, is
  left out) - https://github.com/MagnominusGit/armGBA (source of the build:
  https://github.com/ratherDashing/armGBA/tree/3ds-v0.0.3-alpha). Parts of it
  follow mGBA's code and carry mGBA's copyright too. The 3DS port's armGBA glue
  (3ds/emu/pd_armgba*.c, 3ds/ctr/host.c) is based on ratherDashing's
  pokedaisy-3ds fork; third_party/patches/armgba-pokedaisy.patch (a BKPT hook in
  its interpreter, an H-blank interrupt hook) is our change to it, under the MPL 2.0. Its libretro layer links RetroArch's libretro-common (MIT)
  and the 7-Zip LZMA SDK (public domain), and the 3DS build zlib (zlib License).
- 3DS build only: gpSP 3D (third_party/gpsp, bheppe's gpSP 3D at v0.1.7), gpSP by
  Exophase with later work by notaz, davidgfnet, the libretro team and bheppe, GNU
  GPL 2.0 or later (used here under the GPL 3.0) - https://github.com/bheppe/gpsp-3d.
  The library's GBA CORE: GPSP. Its arm/arm_codegen.h and arm_dpimacros.h are Wild
  West Software's (MIT-style notice in the files); its libretro layer links
  RetroArch's libretro-common (MIT). third_party/patches/gpsp-pokedaisy.patch (the
  cartridge in the host's buffer) and the glue (3ds/emu/pd_gpsp*.c) are ours.
- rcheevos (third_party/rcheevos), Copyright (c) 2018 RetroAchievements.org,
  MIT License - https://github.com/RetroAchievements/rcheevos
- The libretro GBA core over armGBA (libretro/armgba):
  armGBA (third_party/armgba), Copyright (c) 2026 Magnominus, Mozilla
  Public License 2.0 for its own code (src/, its libretro glue, bios/), which
  carries Jeffrey Pfau's and mGBA contributors' notices where it follows mGBA's
  code (its renderer, save chips, cheats and sound channels, MPL 2.0) -
  https://github.com/MagnominusGit/armGBA (source: the submodule's pinned
  commit, v1.5). Built with libretro.h (MIT) and RetroArch's libretro-common and
  the LZMA SDK as armGBA carries them in libretro/deps (MIT and public domain).
  armGBA's Game Boy side (Gambatte, GNU GPL 2.0 only) is NOT built: it cannot be
  linked into this GPL 3.0 work, and Game Boy games stay on the mGBA core.
  PokeDaisy's files for it (libretro/pd_agba_*, libretro/armgba/) change none of
  armGBA's files.
- zlib (third_party/zlib, v1.3.1), Copyright (C) 1995-2024 Jean-loup Gailly and
  Mark Adler, the zlib License - https://zlib.net (the armGBA libretro core,
  whose glue calls it, the cross toolchain having none, and its contrib/puff
  inflate in the Linux host's game list for cover art; never the APK).
- DSperate (third_party/dsperate), Copyright (C) 2026 DSperate contributors,
  GNU GPL 3.0 or later - https://github.com/beebono/DSperate (source: the
  submodule's pinned commit). The app's second DS core (its core library only,
  app/src/main/cpp/nds/dsperate.cmake, which also makes the few build fixes the
  Android compiler needs in the build directory) and the optional Linux DS
  experiment. Its built-in FreeBIOS is Copyright (c) 2013 Gilead Kutnick, BSD
  2-clause (src/core/bios/LICENSE.freebios); its miniz implementation is MIT
  (src/core/cart/miniz/LICENSE); its tiny-AES-c is The Unlicense. Its DSi font
  tables have the Noto Sans OFL 1.1 and WenQuanYi Micro Hei GPL-3+
  font-exception notices under src/core/io/dsi_font. The app's LICENSES page
  and the experiment packages include these license texts.
- The Linux DS libretro core (linux/libretro-ds: the NXRedux collection, the
  libretro cores' zips and the Linux program's packages, never the APK):
  dsperate-lr (third_party/dsperate-lr), DSperate's libretro wrapper,
  Copyright (C) 2026 dsperate-lr contributors, GNU GPL 3.0 or later -
  https://github.com/thwonp/dsperate-lr. It carries DSperate v3.3.0 as its own
  submodule, under the DSperate terms above; the collection package includes
  every license text in that tree.
- The Windows package (PokeDaisy-<version>-windows-x86_64.zip, never the APK)
  carries, beside the program and its cores: SDL2 (SDL2.dll), Copyright (C)
  1997-2025 Sam Lantinga, zlib license - https://libsdl.org; the MinGW-w64
  runtime's libwinpthread-1.dll, MIT / BSD-style license; GCC's
  libgcc_s_seh-1.dll, GNU GPL 3.0 with the GCC Runtime Library Exception 3.1;
  and zlib1.dll (zlib, above). The zip's licenses/ folder has every text.
- BananaDS (third_party/bananads: the SuperDrastic repository, whose bananads/
  folder is BananaDS), Copyright (c) 2026 JorreFog and the SuperDrastic
  contributors, GNU GPL 3.0 or later - https://github.com/JorreFog/SuperDrastic
  (source: the submodule's pinned commit). The app's third DS core,
  libpkbananads.so (app/src/main/cpp/bananads/): its melonDS patches and the
  Banana 2D engine (gpu2d/), over melonDS's own software 3D renderer. Its Gengis
  Engine (gengis/) is not built, nor the rest of that repository (SuperDrastic,
  MIT).
- melonDS for BananaDS (third_party/melonds-bananads), Copyright (c) melonDS
  team, GNU GPL 3.0 - https://github.com/melonDS-emu/melonDS, at the commit
  BananaDS pins, with BananaDS's patches and PokeDaisy's
  app/src/main/cpp/bananads/melonds-expand.patch applied to a build copy (the
  same bundled libraries as below).
- melonDS (third_party/melonds), Copyright (c) melonDS team, GNU GPL 3.0 -
  https://github.com/melonDS-emu/melonDS (source: the submodule's pinned commit,
  with PokeDaisy's changes in third_party/patches/melonds-pokedaisy.patch). Built
  with its bundled FatFs (ChaN, FatFs license), Teakra (MIT), xxHash (Yann
  Collet, BSD 2-Clause; third_party/licenses/xxHash-BSD-2-Clause.txt),
  tiny-AES-c (The Unlicense), SHA-1 by Steve Reid (public domain), blip_buf
  (GNU LGPL 2.1) and Dolphin's ARM64 emitter (GNU GPL 2.0 or later).
- Shaders (app/src/main/kotlin/com/pokedaisy/app/ScreenShaders.kt): LCD and
  scanlines adapted from mGBA's, Copyright (C) 2017 Dominus Iniquitatis, MIT
  License (the full notice is in third_party/mgba/res/shaders/lcd.shader/lcd.fs);
  GBA colours from mGBA's gba-color shader by Pokefan531 and hunterk. LCD PAPER
  follows RetroArch's simpletex_lcd (jdgleaver, GPL-2.0-or-later) and its grid
  curve zfast_lcd (Copyright Greg Hogan (SoltanGris42), GPL-2.0-or-later).
- Edge-smoothing shaders (app/src/main/assets/shaders, SHADERS > SMOOTHING), from
  libretro's glsl-shaders (https://github.com/libretro/glsl-shaders), unmodified:
  xBR level 2 and xBRZ freescale's xBR code, Copyright (C) 2011-2016 Hyllian, MIT
  License; xBRZ, Copyright (C) Zenju, GNU GPL 3.0 (from HqMAME); ScaleFX,
  Copyright (c) 2016 Sp00kyFox, MIT License
  (third_party/licenses/libretro-shaders.txt).
- Pixel Operator font (app/src/main/assets/fonts), by Jayvee Enaguas,
  CC0 1.0 (public domain dedication).
- Atkinson Hyperlegible (app/src/main/assets/fonts, website/public/fonts: the manual's
  reading text), Copyright 2020 Braille Institute of America, Inc., SIL Open Font
  License 1.1 (app/src/main/assets/fonts/LICENSE-AtkinsonHyperlegible.txt).
- PixelMplus10 (app/src/main/assets/fonts/PixelMplusJP.ttf; website/public/fonts/PixelMplusJP-site.ttf:
  the website's Japanese), by itouhiro, M+ FONT LICENSE (app/src/main/assets/fonts/LICENSE-PixelMplus.txt);
  cut to Japanese and rescaled by scripts/gen_jp_font.py, cut again to the site's characters by
  website/scripts/gen_site_jp_font.py.
- Galmuri9 (app/src/main/assets/fonts/GalmuriKO.ttf; website/public/fonts/GalmuriKO-site.ttf: the website's
  Korean), Copyright (c) 2019-2025 Lee Minseo (https://github.com/quiple/galmuri), SIL Open Font License 1.1
  (app/src/main/assets/fonts/LICENSE-Galmuri.txt); cut to Hangul and rescaled by scripts/gen_ko_font.py, cut
  again to the site's characters by website/scripts/gen_site_ko_font.py.
- Rubik Medium (website/public/fonts/Rubik-Medium.woff2: the website's buttons), Copyright 2015 The Rubik
  Project Authors (https://github.com/googlefonts/rubik), SIL Open Font License 1.1
  (website/public/fonts/LICENSE-Rubik.txt); the weight 500 instance, cut to Latin with fontTools.
- PokeAPI (https://pokeapi.co), BSD 3-Clause: the National Dex species list
  (third_party/licenses/PokeAPI-BSD-3-Clause.txt).
- AndroidX, Jetpack Compose, Kotlin, kotlinx.coroutines and Apache Commons
  Compress (with Commons IO, Codec and Lang), Apache License 2.0
  (third_party/licenses/Apache-2.0.txt; their NOTICE files in
  third_party/licenses/Apache-Commons-NOTICE.txt); XZ for Java, BSD Zero
  Clause (third_party/licenses/XZ-Java-0BSD.txt).
- Compose Multiplatform, Copyright (c) JetBrains s.r.o. and contributors, Apache License 2.0
  (third_party/licenses/Apache-2.0.txt) - shared state and locale APIs for the iPad app.
- Ktor, Copyright (c) JetBrains s.r.o. and contributors, Apache License 2.0
  (third_party/licenses/Apache-2.0.txt) - shared HTTP client for the offline manual.
- kotlinx.atomicfu, Copyright (c) JetBrains s.r.o. and contributors, Apache License 2.0
  (third_party/licenses/Apache-2.0.txt) - multiplatform locks in the companion data code.
- kotlinx-datetime, Copyright (c) JetBrains s.r.o. and contributors, Apache License 2.0
  (third_party/licenses/Apache-2.0.txt) - the device clock in the companion data code.
- Firebase Crashlytics (with -ndk, Firebase Sessions, Installations and their
  support libraries), Apache License 2.0 - active only in builds made with the
  project's Firebase config (the official releases), and sending nothing until
  the player turns CRASH REPORTS on. They pull in
  Google Play services' play-services-basement and play-services-tasks, under
  the Android Software Development Kit License
  (https://developer.android.com/studio/terms).
- Bouncy Castle (its X25519 and X25519Field, copied into
  companion/coop/x25519/), Copyright (c) 2000-2024 The Legion of the Bouncy Castle
  Inc., MIT License (third_party/licenses/BouncyCastle-MIT.txt) -
  https://www.bouncycastle.org - X25519 for the co-op link's handshake.
- OkHttp and Okio, Copyright (c) Square, Inc., Apache License 2.0
  (third_party/licenses/Apache-2.0.txt) - https://square.github.io/okhttp/ - the
  co-op link's WebSocket to the relay.
- Some decoders and layouts follow the community decompilations of the games
  (pret's pokered / pokeyellow / pokegold / pokecrystal / pokefirered /
  pokeemerald / pokeruby / pokeplatinum / pokeheartgold, pokeemerald-expansion,
  Rangi42's polishedcrystal, Vortyne's pureRGB and cRz-Shadows' Pokemon_Yellow_Legacy
  and Pokemon_Crystal_Legacy), which publish no license of their own: the Gen 1 picture decompressor (and PureRGB's icon and Pokedex
  layouts), the Gen 2 LZ decompressor (with Polished
  Crystal's variant and its text compression), expansion's "smol"
  decompressor, the DS games' text, archive and picture decoding and the
  trainer card's layout are re-implemented from them in Kotlin (Polished
  Crystal's LZ also in C, for EXPAND).

GAMES AND TRADEMARKS

Pokemon and all related names are trademarks of Nintendo, Game Freak,
Creatures and The Pokemon Company. Game Boy, Game Boy Color, Game Boy
Advance and Nintendo DS are trademarks of Nintendo. AYN, Retroid, Anbernic and other device
names belong to their makers. ScreenScraper, RetroAchievements and
SteamGridDB are separate services. PokeDaisy is not affiliated with or
endorsed by any of them. ROM hacks belong to their creators.

No ROMs, BIOS files, saves or game graphics are included: players supply their
own legally dumped ROMs, and the pictures and descriptive text the companion
shows are read from the player's ROM while it runs. To recognise and label what
it reads, the app carries reference data about the supported games: names of
Pokemon, moves, items, types and places, numeric tables (stats, type matchups,
map layouts, memory addresses) and checksums of ROM data, extracted from the
games, the ROM hacks and the decompilation projects for interoperability.
The unit tests' fixtures (app/src/test/resources/fixtures) are snapshots of
the emulated console's RAM while a game ran; like any RAM dump they hold a
few kilobytes the game copied there from its ROM. They aren't in the app.
