🐛 Fix android platform related issues
This commit is contained in:
		| @@ -10,8 +10,9 @@ plugins { | |||||||
| } | } | ||||||
|  |  | ||||||
| dependencies { | dependencies { | ||||||
|     implementation "androidx.glance:glance:1.1.1" |     implementation 'com.google.android.material:material:1.12.0' | ||||||
|     implementation "androidx.glance:glance-appwidget:1.1.1" |     implementation 'androidx.glance:glance:1.1.1' | ||||||
|  |     implementation 'androidx.glance:glance-appwidget:1.1.1' | ||||||
|     implementation 'androidx.compose.foundation:foundation-layout-android:1.7.6' |     implementation 'androidx.compose.foundation:foundation-layout-android:1.7.6' | ||||||
|     implementation 'com.google.code.gson:gson:2.10.1' |     implementation 'com.google.code.gson:gson:2.10.1' | ||||||
|     implementation 'com.squareup.okhttp3:okhttp:4.12.0' |     implementation 'com.squareup.okhttp3:okhttp:4.12.0' | ||||||
| @@ -19,6 +20,12 @@ dependencies { | |||||||
|     implementation 'io.coil-kt.coil3:coil-network-okhttp:3.0.4' |     implementation 'io.coil-kt.coil3:coil-network-okhttp:3.0.4' | ||||||
| } | } | ||||||
|  |  | ||||||
|  | def keystoreProperties = new Properties() | ||||||
|  | def keystorePropertiesFile = rootProject.file('key.properties') | ||||||
|  | if (keystorePropertiesFile.exists()) { | ||||||
|  |     keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) | ||||||
|  | } | ||||||
|  |  | ||||||
| android { | android { | ||||||
|     buildFeatures { |     buildFeatures { | ||||||
|         compose true |         compose true | ||||||
| @@ -49,6 +56,15 @@ android { | |||||||
|         versionName = flutter.versionName |         versionName = flutter.versionName | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     signingConfigs { | ||||||
|  |         release { | ||||||
|  |             keyAlias = keystoreProperties['keyAlias'] | ||||||
|  |             keyPassword = keystoreProperties['keyPassword'] | ||||||
|  |             storeFile = keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null | ||||||
|  |             storePassword = keystoreProperties['storePassword'] | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  |  | ||||||
|     buildTypes { |     buildTypes { | ||||||
|         debug { |         debug { | ||||||
|             debuggable true |             debuggable true | ||||||
| @@ -56,9 +72,7 @@ android { | |||||||
|             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||||||
|         } |         } | ||||||
|         release { |         release { | ||||||
|             // TODO: Add your own signing config for the release build. |             signingConfig = signingConfigs.release | ||||||
|             // Signing with the debug keys for now, so `flutter run --release` works. |  | ||||||
|             signingConfig = signingConfigs.debug |  | ||||||
|  |  | ||||||
|             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||||||
|         } |         } | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <resources> | <resources> | ||||||
|     <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off --> |     <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off --> | ||||||
|     <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar"> |     <style name="LaunchTheme" parent="Theme.MaterialComponents.Light.NoActionBar"> | ||||||
|         <!-- Show a splash screen on the activity. Automatically removed when |         <!-- Show a splash screen on the activity. Automatically removed when | ||||||
|              the Flutter engine draws its first frame --> |              the Flutter engine draws its first frame --> | ||||||
|         <item name="android:windowBackground">@drawable/launch_background</item> |         <item name="android:windowBackground">@drawable/launch_background</item> | ||||||
| @@ -16,7 +16,7 @@ | |||||||
|          running. |          running. | ||||||
|  |  | ||||||
|          This Theme is only used starting with V2 of Flutter's Android embedding. --> |          This Theme is only used starting with V2 of Flutter's Android embedding. --> | ||||||
|     <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar"> |     <style name="NormalTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar"> | ||||||
|         <item name="android:windowBackground">?android:colorBackground</item> |         <item name="android:windowBackground">?android:colorBackground</item> | ||||||
|     </style> |     </style> | ||||||
| </resources> | </resources> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user