Skip to content

Commit 704bd8d

Browse files
[geocoding_android]: Bump com.android.tools.build:gradle from 7.3.1 to 8.10.0 in /geocoding_android/android (#263)
* [geocoding_android]: Bump com.android.tools.build:gradle Bumps com.android.tools.build:gradle from 7.3.1 to 8.10.0. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle dependency-version: 8.10.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * updates Android plugin --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: tim Hoogstrate <[email protected]>
1 parent 3d0dd89 commit 704bd8d

File tree

9 files changed

+44
-53
lines changed

9 files changed

+44
-53
lines changed

geocoding_android/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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+
19
## 3.3.1
210

311
* 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)).

geocoding_android/android/build.gradle

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
group 'com.baseflow.geocoding'
22
version '1.0'
33

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-
154
rootProject.allprojects {
165
repositories {
176
google()
@@ -26,7 +15,7 @@ android {
2615
namespace("com.baseflow.geocoding")
2716
}
2817

29-
compileSdk 33
18+
compileSdk 35
3019

3120
compileOptions {
3221
sourceCompatibility JavaVersion.VERSION_1_8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tue Jan 30 14:47:38 CET 2024
22
distributionBase=GRADLE_USER_HOME
33
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
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

geocoding_android/example/android/app/build.gradle

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

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-
1415
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1516
if (flutterVersionCode == null) {
1617
flutterVersionCode = '1'
@@ -21,10 +22,6 @@ if (flutterVersionName == null) {
2122
flutterVersionName = '1.0'
2223
}
2324

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27-
2825
android {
2926
namespace "com.baseflow.geocoding_example"
3027
compileSdkVersion flutter.compileSdkVersion

geocoding_android/example/android/build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
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-
141
allprojects {
152
repositories {
163
google()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Mon Jun 26 13:12:11 AEST 2023
22
distributionBase=GRADLE_USER_HOME
33
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
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists
Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
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+
}()
49

5-
include ':app'
10+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
611

7-
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
8-
def properties = new Properties()
12+
repositories {
13+
google()
14+
mavenCentral()
15+
gradlePluginPortal()
16+
}
17+
}
918

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+
}
1224

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"

geocoding_android/example/lib/main.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,21 @@ class BaseflowPluginExample extends StatelessWidget {
6868
static MaterialColor createMaterialColor(Color color) {
6969
final strengths = <double>[.05];
7070
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;
7272

7373
for (var i = 1; i < 10; i++) {
7474
strengths.add(0.1 * i);
7575
}
7676
for (var strength in strengths) {
7777
final ds = 0.5 - strength;
7878
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(),
8282
1,
8383
);
8484
}
85-
return MaterialColor(color.value, swatch);
85+
return MaterialColor(color.toARGB32(), swatch);
8686
}
8787
}
8888

geocoding_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: geocoding_android
22
description: A Flutter Geocoding plugin which provides easy geocoding and reverse-geocoding features.
3-
version: 3.3.1
3+
version: 4.0.0
44
repository: https://github.com/baseflow/flutter-geocoding/tree/main/geocoding_android
55
issue_tracker: https://github.com/Baseflow/flutter-geocoding/issues
66

0 commit comments

Comments
 (0)