Skip to content

Commit 2755bde

Browse files
authored
Merge pull request #348 from icapps/feature/update-dependencies
Feature/update dependencies
2 parents aed835b + 277745d commit 2755bde

File tree

220 files changed

+16181
-1075
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+16181
-1075
lines changed

.fvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"flutter": "3.10.6"
2+
"flutter": "3.24.0"
33
}

analysis_options.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ analyzer:
55
missing_required_param: error
66
missing_return: error
77
todo: ignore
8-
sdk_version_async_exported_from_core: ignore
98
language:
109
strict-casts: true
1110
strict-raw-types: false
1211
exclude:
1312
- '**.g.dart'
1413
- '**.config.dart'
15-
- '**.get_x_navigator.dart'
14+
- '**.navigator.dart'
1615
- '**.mocks.dart'
1716
- 'lib/util/license.dart'
1817
- 'test/coverage_helper_test.dart'

android/app/build.gradle

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
id "com.google.gms.google-services"
6+
id "com.google.firebase.crashlytics"
7+
}
8+
19
def localProperties = new Properties()
210
def localPropertiesFile = rootProject.file('local.properties')
311
if (localPropertiesFile.exists()) {
412
localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader)
513
}
614
}
715

8-
def flutterRoot = localProperties.getProperty('flutter.sdk')
9-
if (flutterRoot == null) {
10-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
11-
}
12-
1316
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1417
if (flutterVersionCode == null) {
1518
flutterVersionCode = '1'
@@ -20,13 +23,9 @@ if (flutterVersionName == null) {
2023
flutterVersionName = '1.0'
2124
}
2225

23-
apply plugin: 'com.android.application'
24-
apply plugin: 'kotlin-android'
25-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26-
2726
android {
2827
buildToolsVersion "30.0.0"
29-
compileSdkVersion 33
28+
compileSdkVersion 34
3029

3130
sourceSets {
3231
main.java.srcDirs += 'src/main/kotlin'
@@ -39,8 +38,8 @@ android {
3938

4039
defaultConfig {
4140
applicationId "com.icapps.fluttertemplate"
42-
minSdkVersion 19
43-
targetSdkVersion 33
41+
minSdkVersion flutter.minSdkVersion
42+
targetSdkVersion 34
4443
multiDexEnabled true
4544
versionCode flutterVersionCode.toInteger()
4645
versionName flutterVersionName
@@ -101,11 +100,7 @@ flutter {
101100
}
102101

103102
dependencies {
104-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
105103
testImplementation 'junit:junit:4.12'
106104
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
107105
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
108-
}
109-
110-
apply plugin: 'com.google.gms.google-services'
111-
apply plugin: 'com.google.firebase.crashlytics'
106+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"project_info": {
3+
"project_number": "1069057990956",
4+
"project_id": "flutter-template-test-icapps",
5+
"storage_bucket": "flutter-template-test-icapps.appspot.com"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:1069057990956:android:81b51da181c6cb72874c89",
11+
"android_client_info": {
12+
"package_name": "com.icapps.fluttertemplate.debug"
13+
}
14+
},
15+
"oauth_client": [
16+
{
17+
"client_id": "1069057990956-gbsuui1psb4pglp7np7pn00m1kmlct5l.apps.googleusercontent.com",
18+
"client_type": 3
19+
}
20+
],
21+
"api_key": [
22+
{
23+
"current_key": "AIzaSyDEfgZmT70q2hzVES52LqrJ_1Cuyk1FqiY"
24+
}
25+
],
26+
"services": {
27+
"appinvite_service": {
28+
"other_platform_oauth_client": [
29+
{
30+
"client_id": "1069057990956-gbsuui1psb4pglp7np7pn00m1kmlct5l.apps.googleusercontent.com",
31+
"client_type": 3
32+
},
33+
{
34+
"client_id": "1069057990956-9s44un9t9pr80akbt9rmol22bjej1s17.apps.googleusercontent.com",
35+
"client_type": 2,
36+
"ios_info": {
37+
"bundle_id": "com.icapps.fluttertemplate.dev"
38+
}
39+
}
40+
]
41+
}
42+
}
43+
}
44+
],
45+
"configuration_version": "1"
46+
}

android/build.gradle

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
buildscript {
2-
ext.kotlin_version = '1.9.0'
3-
repositories {
4-
google()
5-
jcenter()
6-
}
7-
8-
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.3.0'
10-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11-
classpath 'com.google.gms:google-services:4.3.8'
12-
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
13-
}
14-
}
15-
161
allprojects {
172
repositories {
183
google()

android/settings.gradle

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
1-
include ':app'
1+
pluginManagement {
2+
def flutterSdkPath = {
3+
def properties = new Properties()
4+
file("local.properties").withInputStream { properties.load(it) }
5+
def flutterSdkPath = properties.getProperty("flutter.sdk")
6+
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7+
return flutterSdkPath
8+
}()
29

3-
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
10+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
411

5-
def plugins = new Properties()
6-
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7-
if (pluginsFile.exists()) {
8-
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
12+
repositories {
13+
google()
14+
jcenter()
15+
gradlePluginPortal()
16+
}
917
}
1018

11-
plugins.each { name, path ->
12-
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13-
include ":$name"
14-
project(":$name").projectDir = pluginDirectory
19+
plugins {
20+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21+
id "com.android.application" version "7.3.0" apply false
22+
id "org.jetbrains.kotlin.android" version "1.9.0" apply false
23+
id "com.google.gms.google-services"version "4.3.8" apply false
24+
id "com.google.firebase.crashlytics" version "2.9.9" apply false
1525
}
26+
27+
include ":app"

build.yaml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1+
global_options:
2+
flutter_navigation_generator:flutter_navigator_builder:
3+
runs_before:
4+
- mockito|mockBuilder
5+
16
targets:
27
$default:
38
builders:
9+
flutter_navigation_generator:flutter_route_builder:
10+
generate_for:
11+
include:
12+
- lib/screen/**.dart
13+
flutter_navigation_generator:flutter_navigator_builder:
14+
generate_for:
15+
include:
16+
- lib/navigator/main_navigator.dart
417
drift_dev:
518
generate_for:
619
include:
720
- lib/database/**.dart
21+
- lib/model/database/**.dart
822
# Should be removed in the future
923
retrofit_generator|retrofit:
1024
enabled: true
@@ -24,12 +38,4 @@ targets:
2438
injectable_generator:injectable_config_builder:
2539
generate_for:
2640
include:
27-
- lib/di/injectable.dart
28-
flutter_navigation_generator:flutter_route_builder:
29-
generate_for:
30-
include:
31-
- lib/screen/**.dart
32-
flutter_navigation_generator:flutter_navigator_builder:
33-
generate_for:
34-
include:
35-
- lib/navigator/main_navigator.dart
41+
- lib/di/injectable.dart

ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '11.0'
2+
# platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

0 commit comments

Comments
 (0)