Skip to content

Repository files navigation

CarteProduit

🇫🇷 Français

Application Android de demonstration pour le cours Developpement mobile Kotlin (Module M1, ITUniversity).

Sujet

Mini-TP 4 : "Faire vivre un ecran". L'application affiche une carte produit avec :

  • Un compteur de quantite interactif (remember + mutableStateOf)
  • Une carte selectionnable au clic (etat booleen + clickable + couleur)
  • Un suivi des recompositions via le log RECOMP (filtrable dans le Logcat)

Stack technique

Composant Version
Kotlin 2.0.20
Compose BOM 2024.09.03
Material3 compose-bom
compileSdk 35
minSdk 24
Java 17

Prerequis

  • Android Studio (derniere version stable)
  • JDK 17
  • Un emulateur ou appareil Android (API 24+)

Construction et execution

./gradlew assembleDebug

Ou ouvrir le projet dans Android Studio et lancer sur un appareil/emulateur.

Log RECOMP

Pour observer les recompositions :

tag:RECOMP

Filtrer le Logcat avec ce tag affiche chaque composition et recomposition de ProduitCard.

Structure du projet

CarteProduit/
  app/src/main/
    java/mg/itu/carteproduit/
      MainActivity.kt    # activite principale + ProduitCard
    AndroidManifest.xml
  build.gradle.kts        # configuration racine
  app/build.gradle.kts    # dependances et configuration app

Licence

Ce projet est sous licence GNU AGPL-3.0. Voir le fichier LICENSE.


🇬🇧 English

Android demonstration application for the Kotlin Mobile Development course (Module M1, ITUniversity).

Subject

Mini-TP 4: "Bringing a screen to life". The application displays a product card with:

  • An interactive quantity counter (remember + mutableStateOf)
  • A selectable card on click (boolean state + clickable + color change)
  • Recomposition tracking via the RECOMP log (filterable in Logcat)

Tech stack

Component Version
Kotlin 2.0.20
Compose BOM 2024.09.03
Material3 compose-bom
compileSdk 35
minSdk 24
Java 17

Prerequisites

  • Android Studio (latest stable)
  • JDK 17
  • Android emulator or device (API 24+)

Build and run

./gradlew assembleDebug

Or open the project in Android Studio and run on an emulator/device.

RECOMP log

To observe recompositions:

tag:RECOMP

Filtering Logcat with this tag displays each composition and recomposition of ProduitCard.

Project structure

CarteProduit/
  app/src/main/
    java/mg/itu/carteproduit/
      MainActivity.kt    # main activity + ProduitCard
    AndroidManifest.xml
  build.gradle.kts        # root configuration
  app/build.gradle.kts    # app dependencies and configuration

License

This project is licensed under GNU AGPL-3.0. See the LICENSE file.

About

Android demo app for the Kotlin Mobile Development course (Module M1, ITUniversity). Mini-TP 4: "Bringing a screen to life". Features a product card with interactive quantity counter (remember + mutableStateOf), selectable card on click (boolean state + clickable + color), and recomposition tracking via RECOMP log. Built with Jetpack Compose, Mater

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages