Skip to content

Commit 626d6e1

Browse files
Revert "upgrade flutter version"
This reverts commit 027293a.
1 parent 027293a commit 626d6e1

8 files changed

Lines changed: 113 additions & 127 deletions

File tree

super_context_menu/.fvmrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

super_context_menu/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
/pubspec.lock
2-
3-
# FVM Version Cache
4-
.fvm/

super_context_menu/example/android/app/build.gradle

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
plugins {
2-
id "com.android.application"
3-
id "kotlin-android"
4-
id "dev.flutter.flutter-gradle-plugin"
5-
}
6-
71
def localProperties = new Properties()
82
def localPropertiesFile = rootProject.file('local.properties')
93
if (localPropertiesFile.exists()) {
@@ -12,6 +6,11 @@ if (localPropertiesFile.exists()) {
126
}
137
}
148

9+
def flutterRoot = localProperties.getProperty('flutter.sdk')
10+
if (flutterRoot == null) {
11+
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12+
}
13+
1514
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1615
if (flutterVersionCode == null) {
1716
flutterVersionCode = '1'
@@ -22,8 +21,11 @@ if (flutterVersionName == null) {
2221
flutterVersionName = '1.0'
2322
}
2423

24+
apply plugin: 'com.android.application'
25+
apply plugin: 'kotlin-android'
26+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27+
2528
android {
26-
namespace = "com.example.example"
2729
compileSdkVersion flutter.compileSdkVersion
2830
ndkVersion flutter.ndkVersion
2931

@@ -45,7 +47,7 @@ android {
4547
applicationId "com.example.example"
4648
// You can update the following values to match your application needs.
4749
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
48-
minSdkVersion flutter.minSdkVersion
50+
minSdkVersion 23
4951
targetSdkVersion flutter.targetSdkVersion
5052
versionCode flutterVersionCode.toInteger()
5153
versionName flutterVersionName
@@ -65,4 +67,5 @@ flutter {
6567
}
6668

6769
dependencies {
70+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
6871
}

super_context_menu/example/android/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
buildscript {
2+
ext.kotlin_version = '1.7.10'
3+
repositories {
4+
google()
5+
mavenCentral()
6+
}
7+
8+
dependencies {
9+
classpath 'com.android.tools.build:gradle:7.4.2'
10+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11+
}
12+
}
113

214
allprojects {
315
repositories {
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Wed Sep 17 19:30:11 EEST 2025
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
53
zipStoreBase=GRADLE_USER_HOME
64
zipStorePath=wrapper/dists
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
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-
}()
1+
include ':app'
92

10-
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
3+
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4+
def properties = new Properties()
115

12-
repositories {
13-
google()
14-
mavenCentral()
15-
gradlePluginPortal()
16-
}
17-
}
6+
assert localPropertiesFile.exists()
7+
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
188

19-
plugins {
20-
id "dev.flutter.flutter-plugin-loader" version "1.0.0" // apply true
21-
id "com.android.application" version '8.9.2' apply false
22-
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
23-
}
24-
25-
include ":app"
9+
def flutterSdkPath = properties.getProperty("flutter.sdk")
10+
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11+
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"

0 commit comments

Comments
 (0)