Application Android de demonstration pour le cours Developpement mobile Kotlin (Module M1, ITUniversity).
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)
| Composant | Version |
|---|---|
| Kotlin | 2.0.20 |
| Compose BOM | 2024.09.03 |
| Material3 | compose-bom |
| compileSdk | 35 |
| minSdk | 24 |
| Java | 17 |
- Android Studio (derniere version stable)
- JDK 17
- Un emulateur ou appareil Android (API 24+)
./gradlew assembleDebugOu ouvrir le projet dans Android Studio et lancer sur un appareil/emulateur.
Pour observer les recompositions :
tag:RECOMP
Filtrer le Logcat avec ce tag affiche chaque composition et recomposition de ProduitCard.
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
Ce projet est sous licence GNU AGPL-3.0. Voir le fichier LICENSE.
Android demonstration application for the Kotlin Mobile Development course (Module M1, ITUniversity).
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)
| Component | Version |
|---|---|
| Kotlin | 2.0.20 |
| Compose BOM | 2024.09.03 |
| Material3 | compose-bom |
| compileSdk | 35 |
| minSdk | 24 |
| Java | 17 |
- Android Studio (latest stable)
- JDK 17
- Android emulator or device (API 24+)
./gradlew assembleDebugOr open the project in Android Studio and run on an emulator/device.
To observe recompositions:
tag:RECOMP
Filtering Logcat with this tag displays each composition and recomposition of ProduitCard.
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
This project is licensed under GNU AGPL-3.0. See the LICENSE file.