1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-21 20:39:22 +00:00

Update Flutter to v2.10

This commit is contained in:
Pierre HUBERT 2022-03-10 17:28:21 +01:00
parent 173487f801
commit 42b4f99efa
5 changed files with 21 additions and 14 deletions

View File

@ -22,6 +22,7 @@ if (flutterVersionName == null) {
} }
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
@ -36,13 +37,19 @@ android {
compileSdkVersion 31 compileSdkVersion 31
compileOptions { compileOptions {
// Required to use WebRTC
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/java'
}
lintOptions { lintOptions {
disable 'InvalidPackage' disable 'InvalidPackage'
@ -79,9 +86,7 @@ android {
buildTypes { buildTypes {
release { release {
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
} }
} }
@ -112,6 +117,7 @@ flutter {
} }
dependencies { dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.neovisionaries:nv-websocket-client:2.14' implementation 'com.neovisionaries:nv-websocket-client:2.14'
testImplementation 'junit:junit:4.13.1' testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.ext:junit:1.1.3'

View File

@ -1,6 +0,0 @@
package org.communiquons.comunic
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}

View File

@ -1,4 +1,5 @@
buildscript { buildscript {
ext.kotlin_version = '1.5.30'
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
@ -6,6 +7,7 @@ buildscript {
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:4.1.3' classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// Firebase // Firebase
classpath 'com.google.gms:google-services:4.3.10' classpath 'com.google.gms:google-services:4.3.10'

View File

@ -50,9 +50,7 @@ class LoginRoutesTheme extends StatelessWidget {
), ),
colorScheme: ColorScheme( colorScheme: ColorScheme(
primary: Colors.white, primary: Colors.white,
primaryVariant: Colors.white,
secondary: Colors.white, secondary: Colors.white,
secondaryVariant: Colors.white,
surface: Config.get().splashBackgroundColor, surface: Config.get().splashBackgroundColor,
background: Config.get().splashBackgroundColor, background: Config.get().splashBackgroundColor,
error: Colors.redAccent, error: Colors.redAccent,

View File

@ -422,6 +422,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.12.11" version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
meta: meta:
dependency: transitive dependency: transitive
description: description:
@ -727,7 +734,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.3" version: "0.4.8"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description: