6 changed files with 48 additions and 30 deletions
@ -1,61 +1,49 @@ |
|||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
||||
package="com.example.itrimobe"> |
package="com.example.itrimobe"> |
||||
|
|
||||
<!-- Permissions Internet --> |
<!-- Autorisations réseau essentielles --> |
||||
<uses-permission android:name="android.permission.INTERNET" /> |
<uses-permission android:name="android.permission.INTERNET" /> |
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
||||
|
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> |
||||
<!-- Pour les requêtes de localisation si nécessaire --> |
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
||||
|
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
||||
|
|
||||
|
<!-- Autorisations pour HTTP non-sécurisé --> |
||||
|
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /> |
||||
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
||||
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
||||
|
|
||||
<application |
<application |
||||
android:label="itrimobe" |
android:label="itrimobe" |
||||
android:name="${applicationName}" |
android:name="${applicationName}" |
||||
android:icon="@mipmap/ic_launcher" |
android:icon="@mipmap/ic_launcher" |
||||
android:usesCleartextTraffic="true" |
android:usesCleartextTraffic="true" |
||||
android:networkSecurityConfig="@xml/network_security_config"> |
android:networkSecurityConfig="@xml/network_security_config" |
||||
|
android:requestLegacyExternalStorage="true" |
||||
|
android:allowBackup="false"> |
||||
|
|
||||
<activity |
<activity |
||||
android:name=".MainActivity" |
android:name=".MainActivity" |
||||
android:exported="true" |
android:exported="true" |
||||
android:launchMode="singleTop" |
android:launchMode="singleTop" |
||||
android:taskAffinity="" |
|
||||
android:theme="@style/LaunchTheme" |
android:theme="@style/LaunchTheme" |
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" |
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" |
||||
android:hardwareAccelerated="true" |
android:hardwareAccelerated="true" |
||||
android:windowSoftInputMode="adjustResize"> |
android:windowSoftInputMode="adjustResize"> |
||||
|
|
||||
<!-- Specifies an Android theme to apply to this Activity as soon as |
|
||||
the Android process has started. This theme is visible to the user |
|
||||
while the Flutter UI initializes. After that, this theme continues |
|
||||
to determine the Window background behind the Flutter UI. --> |
|
||||
<meta-data |
<meta-data |
||||
android:name="io.flutter.embedding.android.NormalTheme" |
android:name="io.flutter.embedding.android.NormalTheme" |
||||
android:resource="@style/NormalTheme" /> |
android:resource="@style/NormalTheme" /> |
||||
|
|
||||
<intent-filter android:autoVerify="true"> |
<intent-filter> |
||||
<action android:name="android.intent.action.MAIN"/> |
<action android:name="android.intent.action.MAIN"/> |
||||
<category android:name="android.intent.category.LAUNCHER"/> |
<category android:name="android.intent.category.LAUNCHER"/> |
||||
</intent-filter> |
</intent-filter> |
||||
</activity> |
</activity> |
||||
|
|
||||
<!-- Don't delete the meta-data below. |
|
||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> |
|
||||
<meta-data |
<meta-data |
||||
android:name="flutterEmbedding" |
android:name="flutterEmbedding" |
||||
android:value="2" /> |
android:value="2" /> |
||||
</application> |
</application> |
||||
|
|
||||
<!-- Required to query activities that can process text, see: |
|
||||
https://developer.android.com/training/package-visibility and |
|
||||
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT. |
|
||||
|
|
||||
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. --> |
|
||||
<queries> |
|
||||
<intent> |
|
||||
<action android:name="android.intent.action.PROCESS_TEXT"/> |
|
||||
<data android:mimeType="text/plain"/> |
|
||||
</intent> |
|
||||
</queries> |
|
||||
</manifest> |
</manifest> |
||||
|
|||||
@ -0,0 +1,30 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<network-security-config> |
||||
|
<!-- Configuration permissive pour développement --> |
||||
|
<base-config cleartextTrafficPermitted="true"> |
||||
|
<trust-anchors> |
||||
|
<!-- Certificats système --> |
||||
|
<certificates src="system"/> |
||||
|
<!-- Certificats utilisateur --> |
||||
|
<certificates src="user"/> |
||||
|
</trust-anchors> |
||||
|
</base-config> |
||||
|
|
||||
|
<!-- Permettre tout le trafic non-chiffré --> |
||||
|
<debug-overrides> |
||||
|
<trust-anchors> |
||||
|
<certificates src="system"/> |
||||
|
<certificates src="user"/> |
||||
|
</trust-anchors> |
||||
|
</debug-overrides> |
||||
|
|
||||
|
<!-- Configuration pour domaines spécifiques --> |
||||
|
<domain-config cleartextTrafficPermitted="true"> |
||||
|
<domain includeSubdomains="true">localhost</domain> |
||||
|
<domain includeSubdomains="true">10.0.2.2</domain> |
||||
|
<domain includeSubdomains="true">192.168.1.1</domain> |
||||
|
<domain includeSubdomains="true">httpbin.org</domain> |
||||
|
<!-- Ajoutez votre domaine API ici --> |
||||
|
<domain includeSubdomains="true">restaurant.careeracademy.mg</domain> |
||||
|
</domain-config> |
||||
|
</network-security-config> |
||||
Loading…
Reference in new issue