feat: Gestion des secteurs et migration v3.0.4+304
- Ajout système complet de gestion des secteurs avec contours géographiques - Import des contours départementaux depuis GeoJSON - API REST pour la gestion des secteurs (/api/sectors) - Service de géolocalisation pour déterminer les secteurs - Migration base de données avec tables x_departements_contours et sectors_adresses - Interface Flutter pour visualisation et gestion des secteurs - Ajout thème sombre dans l'application - Corrections diverses et optimisations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
42
app/android/app/build.gradle.kts
Normal file → Executable file
@@ -1,3 +1,6 @@
|
||||
import java.util.Properties
|
||||
import java.io.FileInputStream
|
||||
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("kotlin-android")
|
||||
@@ -5,12 +8,20 @@ plugins {
|
||||
id("dev.flutter.flutter-gradle-plugin")
|
||||
}
|
||||
|
||||
// Charger les propriétés de signature
|
||||
val keystorePropertiesFile = rootProject.file("key.properties")
|
||||
val keystoreProperties = Properties()
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "fr.geosector.app.geosector_app"
|
||||
namespace = "fr.geosector.app2025"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
ndkVersion = flutter.ndkVersion
|
||||
ndkVersion = "27.0.12077973"
|
||||
|
||||
compileOptions {
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
@@ -20,8 +31,8 @@ android {
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId = "fr.geosector.app.geosector_app"
|
||||
// Application ID for Google Play Store
|
||||
applicationId = "fr.geosector.app2025"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||
minSdk = flutter.minSdkVersion
|
||||
@@ -30,11 +41,24 @@ android {
|
||||
versionName = flutter.versionName
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
create("release") {
|
||||
keyAlias = keystoreProperties["keyAlias"] as String
|
||||
keyPassword = keystoreProperties["keyPassword"] as String
|
||||
storeFile = file(keystoreProperties["storeFile"] as String)
|
||||
storePassword = keystoreProperties["storePassword"] as String
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
} else {
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -42,3 +66,7 @@ android {
|
||||
flutter {
|
||||
source = "../.."
|
||||
}
|
||||
|
||||
dependencies {
|
||||
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
|
||||
}
|
||||
|
||||
0
app/android/app/src/debug/AndroidManifest.xml
Normal file → Executable file
0
app/android/app/src/main/AndroidManifest.xml
Normal file → Executable file
0
app/android/app/src/main/kotlin/fr/geosector/app2/geosector_app/MainActivity.kt
Normal file → Executable file
@@ -0,0 +1,5 @@
|
||||
package fr.geosector.app2025
|
||||
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
|
||||
class MainActivity : FlutterActivity()
|
||||
0
app/android/app/src/main/res/drawable-v21/launch_background.xml
Normal file → Executable file
0
app/android/app/src/main/res/drawable/launch_background.xml
Normal file → Executable file
0
app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file → Executable file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
0
app/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png
Normal file → Executable file
|
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 303 B |
0
app/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
Normal file → Executable file
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
0
app/android/app/src/main/res/mipmap-hdpi/launcher_icon.png
Normal file → Executable file
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
0
app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file → Executable file
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
0
app/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png
Normal file → Executable file
|
Before Width: | Height: | Size: 300 B After Width: | Height: | Size: 300 B |
0
app/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
Normal file → Executable file
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
0
app/android/app/src/main/res/mipmap-mdpi/launcher_icon.png
Normal file → Executable file
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
0
app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file → Executable file
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
Normal file → Executable file
|
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 306 B |
0
app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
Normal file → Executable file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
0
app/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png
Normal file → Executable file
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
0
app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file → Executable file
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
0
app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
Normal file → Executable file
|
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 318 B |
0
app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
Normal file → Executable file
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
0
app/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png
Normal file → Executable file
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file → Executable file
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
0
app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
Normal file → Executable file
|
Before Width: | Height: | Size: 322 B After Width: | Height: | Size: 322 B |
0
app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
Normal file → Executable file
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
0
app/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png
Normal file → Executable file
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |