Skip to content

Commit 6ba92b1

Browse files
Updates AFP (#1646)
* updates * updated buildscript * updates * updated manifest
1 parent 4ddd301 commit 6ba92b1

File tree

10 files changed

+21
-15
lines changed

10 files changed

+21
-15
lines changed

.github/workflows/geolocator.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3434
- uses: actions/checkout@v4
3535

36-
# Ensures JAVA 11 is installed on the build agent.
36+
# Ensures JAVA 17 is installed on the build agent.
3737
- uses: actions/setup-java@v4
3838
with:
3939
distribution: 'temurin'
40-
java-version: '11'
40+
java-version: '17'
4141

4242
# Make sure the stable version of Flutter is available
4343
- uses: subosito/flutter-action@v2
@@ -49,8 +49,8 @@ jobs:
4949
run: flutter pub get
5050
working-directory: ${{env.source-directory}}
5151

52-
# Run Flutter Format to ensure formatting is valid
53-
- name: Run Flutter Format
52+
# Run Dart Format to ensure formatting is valid
53+
- name: Run Dart Format
5454
run: dart format --set-exit-if-changed .
5555
working-directory: ${{env.source-directory}}
5656

geolocator/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 13.0.3
2+
3+
- Updates dart sdk to `sdk: ^3.5.0`
4+
- Updates example project and fixes analyzer issues
5+
16
## 13.0.2
27

38
- Updates dependency on geolocator_apple to version 2.3.8.

geolocator/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ The TL;DR version is:
4242
android.useAndroidX=true
4343
android.enableJetifier=true
4444
```
45-
2. Make sure you set the `compileSdkVersion` in your "android/app/build.gradle" file to 34:
45+
2. Make sure you set the `compileSdkVersion` in your "android/app/build.gradle" file to 35:
4646

4747
```
4848
android {
49-
compileSdkVersion 34
49+
compileSdkVersion 35
5050
5151
...
5252
}

geolocator/example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ project.getTasks().withType(JavaCompile) {
2828
}
2929

3030
android {
31-
compileSdkVersion 34
31+
compileSdkVersion flutter.compileSdkVersion
3232

3333

3434
defaultConfig {
3535
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3636
applicationId "com.baseflow.geolocator_example"
3737
minSdkVersion flutter.minSdkVersion
38-
targetSdkVersion 30
38+
targetSdkVersion flutter.targetSdkVersion
3939
versionCode flutterVersionCode.toInteger()
4040
versionName flutterVersionName
4141
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
android:theme="@style/LaunchTheme"
2020
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
2121
android:hardwareAccelerated="true"
22-
android:windowSoftInputMode="adjustResize">
22+
android:windowSoftInputMode="adjustResize"
23+
android:exported="true">
2324
<!-- Specifies an Android theme to apply to this Activity as soon as
2425
the Android process has started. This theme is visible to the user
2526
while the Flutter UI initializes. After that, this theme continues

geolocator/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-7.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip

geolocator/example/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "7.1.2" apply false
21+
id "com.android.application" version "8.7.0" apply false
2222
}
2323

2424
include ":app"

geolocator/example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void main() {
1717
/// Example [Widget] showing the functionalities of the geolocator plugin
1818
class GeolocatorWidget extends StatefulWidget {
1919
/// Creates a new GeolocatorWidget.
20-
const GeolocatorWidget({Key? key}) : super(key: key);
20+
const GeolocatorWidget({super.key});
2121

2222
/// Utility method to create a page with the Baseflow templating.
2323
static ExamplePage createPage() {

geolocator/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Demonstrates how to use the geolocator plugin.
66
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
77

88
environment:
9-
sdk: ">=2.15.0 <3.0.0"
9+
sdk: ^3.5.0
1010

1111
dependencies:
1212
baseflow_plugin_template: ^2.1.2

geolocator/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: geolocator
22
description: Geolocation plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API for generic location (GPS etc.) functions.
33
repository: https://github.com/baseflow/flutter-geolocator/tree/main/geolocator
44
issue_tracker: https://github.com/baseflow/flutter-geolocator/issues?q=is%3Aissue+is%3Aopen
5-
version: 13.0.2
5+
version: 13.0.3
66

77
environment:
8-
sdk: ">=2.15.0 <4.0.0"
8+
sdk: ^3.5.0
99
flutter: ">=2.8.0"
1010

1111
flutter:

0 commit comments

Comments
 (0)