Skip to content

Commit 4591387

Browse files
committed
1 parent 6bc4820 commit 4591387

File tree

5 files changed

+28
-10
lines changed

5 files changed

+28
-10
lines changed

android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ android {
5252
applicationId "com.emilzulufov.flutter_instagram_offline_first_clone"
5353
// You can update the following values to match your application needs.
5454
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
55-
minSdk 21
55+
minSdk 24
5656
targetSdk 34
5757
versionCode flutterVersionCode.toInteger()
5858
versionName flutterVersionName

android/build.gradle

+22-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,30 @@ allprojects {
77

88
rootProject.buildDir = '../build'
99
subprojects {
10+
afterEvaluate { project ->
11+
if (project.extensions.findByName("android") != null) {
12+
Integer pluginCompileSdk = project.android.compileSdk
13+
if (pluginCompileSdk != null && pluginCompileSdk < 31) {
14+
project.logger.error(
15+
"Warning: Overriding compileSdk version in Flutter plugin: "
16+
+ project.name
17+
+ " from "
18+
+ pluginCompileSdk
19+
+ " to 31 (to work around https://issuetracker.google.com/issues/199180389)."
20+
+ "\nIf there is not a new version of " + project.name + ", consider filing an issue against "
21+
+ project.name
22+
+ " to increase their compileSdk to the latest (otherwise try updating to the latest version)."
23+
)
24+
project.android {
25+
compileSdk 31
26+
}
27+
}
28+
}
29+
}
30+
1031
project.buildDir = "${rootProject.buildDir}/${project.name}"
32+
project.evaluationDependsOn(":app")
1133
}
12-
subprojects {
13-
project.evaluationDependsOn(':app')
14-
}
15-
1634
tasks.register("clean", Delete) {
1735
delete rootProject.buildDir
1836
}

android/settings.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ pluginManagement {
1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
2121
id "com.android.application" version "7.3.0" apply false
22-
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
23-
id "com.google.gms.google-services" version "4.3.14" apply false
22+
id "org.jetbrains.kotlin.android" version "2.0.10" apply false
23+
id "com.google.gms.google-services" version "4.3.14" apply false
2424
}
2525

2626
include ":app"

packages/image_picker_plus/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
image: ^4.0.17
1717
video_player: ^2.7.0
1818
image_picker: ^1.0.1
19-
insta_assets_crop: ^0.0.2
19+
insta_assets_crop: ^0.0.3
2020
cached_memory_image: ^1.5.0
2121
intl: any
2222
visibility_detector: ^0.4.0+2

pubspec.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -1095,10 +1095,10 @@ packages:
10951095
dependency: transitive
10961096
description:
10971097
name: insta_assets_crop
1098-
sha256: "800ba2e5ececd170a70da573e3d94460c9abf50621335c859e8155c6b592b460"
1098+
sha256: c6ca1786b19e0d270843346c8205b1e90418f0c5146a8a4476ba618f768b0e89
10991099
url: "https://pub.dev"
11001100
source: hosted
1101-
version: "0.0.2"
1101+
version: "0.0.3"
11021102
insta_blocks:
11031103
dependency: "direct main"
11041104
description:

0 commit comments

Comments
 (0)