File tree Expand file tree Collapse file tree 9 files changed +44
-53
lines changed Expand file tree Collapse file tree 9 files changed +44
-53
lines changed Original file line number Diff line number Diff line change
1
+ ## 4.0.0
2
+
3
+ * ** BREAKING CHANGES** Please update to Flutter 3.29+ before updating to this version
4
+ * Updates Android CompileSDK to 35
5
+ * Migrates example project to applying Gradle plugins with the declarative plugins block
6
+ * Updates kotlin version to soon minimal supported Kotlin version ` 1.8.10 `
7
+ * Updates Gradle version to ` 8.11.1 `
8
+
1
9
## 3.3.1
2
10
3
11
* Removes deprecated support for Android V1 embedding as support will be removed from Flutter (see [ flutter/flutter #144726 ] ( https://github.com/flutter/flutter/pull/144726 ) ).
Original file line number Diff line number Diff line change 1
1
group ' com.baseflow.geocoding'
2
2
version ' 1.0'
3
3
4
- buildscript {
5
- repositories {
6
- google()
7
- mavenCentral()
8
- }
9
-
10
- dependencies {
11
- classpath ' com.android.tools.build:gradle:7.3.1'
12
- }
13
- }
14
-
15
4
rootProject. allprojects {
16
5
repositories {
17
6
google()
@@ -26,7 +15,7 @@ android {
26
15
namespace(" com.baseflow.geocoding" )
27
16
}
28
17
29
- compileSdk 33
18
+ compileSdk 35
30
19
31
20
compileOptions {
32
21
sourceCompatibility JavaVersion . VERSION_1_8
Original file line number Diff line number Diff line change 1
1
# Tue Jan 30 14:47:38 CET 2024
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.4-bin .zip
4
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.11.1-all .zip
5
5
zipStoreBase =GRADLE_USER_HOME
6
6
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ }
6
+
1
7
def localProperties = new Properties ()
2
8
def localPropertiesFile = rootProject. file(' local.properties' )
3
9
if (localPropertiesFile. exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
6
12
}
7
13
}
8
14
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
-
14
15
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
15
16
if (flutterVersionCode == null ) {
16
17
flutterVersionCode = ' 1'
@@ -21,10 +22,6 @@ if (flutterVersionName == null) {
21
22
flutterVersionName = ' 1.0'
22
23
}
23
24
24
- apply plugin : ' com.android.application'
25
- apply plugin : ' kotlin-android'
26
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
-
28
25
android {
29
26
namespace " com.baseflow.geocoding_example"
30
27
compileSdkVersion flutter. compileSdkVersion
Original file line number Diff line number Diff line change 1
- buildscript {
2
- ext. kotlin_version = ' 1.8.0'
3
- repositories {
4
- google()
5
- mavenCentral()
6
- }
7
-
8
- dependencies {
9
- classpath ' com.android.tools.build:gradle:7.3.1'
10
- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
11
- }
12
- }
13
-
14
1
allprojects {
15
2
repositories {
16
3
google()
Original file line number Diff line number Diff line change 1
1
# Mon Jun 26 13:12:11 AEST 2023
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.5-bin .zip
4
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.11.1-all .zip
5
5
zipStoreBase =GRADLE_USER_HOME
6
6
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 1
- // Copyright 2014 The Flutter Authors. All rights reserved.
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
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
+ }()
4
9
5
- include ' :app '
10
+ includeBuild( " $f lutterSdkPath /packages/flutter_tools/gradle " )
6
11
7
- def localPropertiesFile = new File (rootProject. projectDir, " local.properties" )
8
- def properties = new Properties ()
12
+ repositories {
13
+ google()
14
+ mavenCentral()
15
+ gradlePluginPortal()
16
+ }
17
+ }
9
18
10
- assert localPropertiesFile. exists()
11
- localPropertiesFile. withReader(" UTF-8" ) { reader -> properties. load(reader) }
19
+ plugins {
20
+ id " dev.flutter.flutter-plugin-loader" version " 1.0.0" // apply true
21
+ id " com.android.application" version " 8.10.0" apply false
22
+ id " org.jetbrains.kotlin.android" version " 1.8.10" apply false
23
+ }
12
24
13
- def flutterSdkPath = properties. getProperty(" flutter.sdk" )
14
- assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
15
- apply from : " $flutterSdkPath /packages/flutter_tools/gradle/app_plugin_loader.gradle"
25
+ include " :app"
Original file line number Diff line number Diff line change @@ -68,21 +68,21 @@ class BaseflowPluginExample extends StatelessWidget {
68
68
static MaterialColor createMaterialColor (Color color) {
69
69
final strengths = < double > [.05 ];
70
70
final swatch = < int , Color > {};
71
- final r = color.red , g = color.green , b = color.blue ;
71
+ final r = color.r , g = color.g , b = color.b ;
72
72
73
73
for (var i = 1 ; i < 10 ; i++ ) {
74
74
strengths.add (0.1 * i);
75
75
}
76
76
for (var strength in strengths) {
77
77
final ds = 0.5 - strength;
78
78
swatch[(strength * 1000 ).round ()] = Color .fromRGBO (
79
- r + ((ds < 0 ? r : (255 - r)) * ds).round (),
80
- g + ((ds < 0 ? g : (255 - g)) * ds).round (),
81
- b + ((ds < 0 ? b : (255 - b)) * ds).round (),
79
+ ( r + ((ds < 0 ? r : (1.0 - r)) * ds) * 255 ).round (),
80
+ ( g + ((ds < 0 ? g : (1.0 - g)) * ds) * 255 ).round (),
81
+ ( b + ((ds < 0 ? b : (1.0 - b)) * ds) * 255 ).round (),
82
82
1 ,
83
83
);
84
84
}
85
- return MaterialColor (color.value , swatch);
85
+ return MaterialColor (color.toARGB32 () , swatch);
86
86
}
87
87
}
88
88
Original file line number Diff line number Diff line change 1
1
name : geocoding_android
2
2
description : A Flutter Geocoding plugin which provides easy geocoding and reverse-geocoding features.
3
- version : 3.3.1
3
+ version : 4.0.0
4
4
repository : https://github.com/baseflow/flutter-geocoding/tree/main/geocoding_android
5
5
issue_tracker : https://github.com/Baseflow/flutter-geocoding/issues
6
6
You can’t perform that action at this time.
0 commit comments