Skip to content

Commit ee9cbec

Browse files
committed
Upgrade Gradle stuff
1 parent 5ab6f1e commit ee9cbec

File tree

10 files changed

+39
-32
lines changed

10 files changed

+39
-32
lines changed

CHANGELOG.md

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,63 @@
1+
## 3.0.0
2+
3+
- Use `web` package instead of `dart:html` to support WASM
4+
- Fix Gradle namespace
5+
- Fix use of `LaunchMode` on iOS causing errors
6+
- Fix bug that prevented Waze from opening properly
7+
18
## 2.3.0
29

3-
* Adds a `namespace` attribute to the Android build.gradle, for compatibility with Android Gradle Plugin 8.0.
10+
- Adds a `namespace` attribute to the Android build.gradle, for compatibility with Android Gradle Plugin 8.0.
411

512
## 2.2.0
613

7-
* Add default label on iOS so that a pin always show up on the map
14+
- Add default label on iOS so that a pin always show up on the map
815

916
## 2.1.0
1017

11-
* Switch from `launch` to `launchUrl` introduced in `url_launcher` version `6.1.0`
12-
* Support Android Gradle plugin 7.3.0 (thank you to [asaarnak](https://github.com/asaarnak)!)
13-
* Add note about SDK version support
18+
- Switch from `launch` to `launchUrl` introduced in `url_launcher` version `6.1.0`
19+
- Support Android Gradle plugin 7.3.0 (thank you to [asaarnak](https://github.com/asaarnak)!)
20+
- Add note about SDK version support
1421

1522
## 2.0.1
1623

17-
* Fix Google Maps URLs being broken on Windows, MacOS and Linux
18-
* Fix platform support not being recognized by pub
24+
- Fix Google Maps URLs being broken on Windows, MacOS and Linux
25+
- Fix platform support not being recognized by pub
1926

2027
## 2.0.0
2128

22-
* Add null-safety support (thank you to [orevial](https://github.com/orevial)!)
29+
- Add null-safety support (thank you to [orevial](https://github.com/orevial)!)
2330

2431
## 1.2.2+2
2532

26-
* Fix web support (thank you to [ATeal](https://github.com/ATeal)!)
33+
- Fix web support (thank you to [ATeal](https://github.com/ATeal)!)
2734

2835
## 1.2.2+1
2936

30-
* I dun goofed
37+
- I dun goofed
3138

3239
## 1.2.2
3340

34-
* Support other platforms
35-
* Fix web support not being recognized by pub
36-
* Fix formatting for pub points
41+
- Support other platforms
42+
- Fix web support not being recognized by pub
43+
- Fix formatting for pub points
3744

3845
## 1.2.1
3946

40-
* Fix bad URL escaping of queries and labels (thank you to [lenlo](https://github.com/lenlo)!)
47+
- Fix bad URL escaping of queries and labels (thank you to [lenlo](https://github.com/lenlo)!)
4148

4249
## 1.2.0
4350

44-
* Add support support for arbitrary platforms (Google Maps)
51+
- Add support support for arbitrary platforms (Google Maps)
4552

4653
## 1.1.0
4754

48-
* Add Flutter Web support (Google Maps)
55+
- Add Flutter Web support (Google Maps)
4956

5057
## 1.0.1
5158

52-
* Fix repository link
59+
- Fix repository link
5360

5461
## 1.0.0
5562

56-
* Initial release
63+
- Initial release

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ group 'com.example.maps_launcher'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
5-
ext.kotlin_version = '1.7.21'
5+
ext.kotlin_version = '1.9.22'
66
repositories {
77
google()
88
mavenCentral()

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.maps_launcher">
3-
</manifest>
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
</manifest>

example/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
2929
namespace 'com.example.maps_launcher_example'
30-
compileSdkVersion 30
30+
compileSdkVersion 34
3131

3232
compileOptions {
3333
sourceCompatibility JavaVersion.VERSION_1_8
@@ -45,8 +45,8 @@ android {
4545
defaultConfig {
4646
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4747
applicationId "com.example.maps_launcher_example"
48-
minSdkVersion 16
49-
targetSdkVersion 30
48+
minSdkVersion flutter.minSdkVersion
49+
targetSdkVersion 34
5050
versionCode flutterVersionCode.toInteger()
5151
versionName flutterVersionName
5252
}

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<activity
77
android:name=".MainActivity"
88
android:launchMode="singleTop"
9+
android:exported="true"
910
android:theme="@style/LaunchTheme"
1011
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1112
android:hardwareAccelerated="true"

example/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.50'
2+
ext.kotlin_version = '1.9.22'
33
repositories {
44
google()
55
mavenCentral()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.1.0'
9+
classpath 'com.android.tools.build:gradle:8.3.0'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}
@@ -24,6 +24,6 @@ subprojects {
2424
project.evaluationDependsOn(':app')
2525
}
2626

27-
task clean(type: Delete) {
27+
tasks.register("clean", Delete) {
2828
delete rootProject.buildDir
2929
}

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: >-
77
version: 1.0.0+1
88

99
environment:
10-
sdk: '>=2.12.0 <3.0.0'
10+
sdk: ">=3.0.0 <4.0.0"
1111

1212
dependencies:
1313
flutter:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 2.3.0
44
homepage: https://github.com/pikaju/flutter-maps-launcher
55

66
environment:
7-
sdk: '>=2.12.0 <3.0.0'
7+
sdk: ">=2.12.0 <3.0.0"
88
flutter: ">=2.0.0"
99

1010
dependencies:

0 commit comments

Comments
 (0)