Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Support newer Android version and AGP >=8.0.0 compatibility #113

Merged
merged 2 commits into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.1
* Bump the compileSdkVersion to 34 to support Android 14
* Support the AGP >= 8

## 0.8.0
* Add guard on web (Web always returns an empty stream)
* Heading accounts for orientation on iOS
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To use this plugin, add `flutter_compass` as a [dependency in your pubspec.yaml

```yaml
dependencies:
flutter_compass: '^0.7.0'
flutter_compass: '^0.8.1'
```

### iOS
Expand Down
6 changes: 5 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ rootProject.allprojects {
apply plugin: 'com.android.library'

android {
compileSdkVersion 30
compileSdkVersion 34

if (project.android.hasProperty("namespace")) {
namespace 'com.hemanthraj.fluttercompass'
}

defaultConfig {
minSdkVersion 20
Expand Down
6 changes: 5 additions & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 30
compileSdkVersion 34

if (project.android.hasProperty("namespace")) {
namespace 'com.hemanthraj.fluttercompass'
}

lintOptions {
disable 'InvalidPackage'
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: flutter_compass
description: A Flutter compass. The heading varies from 0-360, 0 being north.
version: 0.8.0
version: 0.8.1
homepage: https://github.com/hemanthrajv/flutter_compass

dependencies:
flutter:
sdk: flutter

environment:
sdk: '>=2.12.0 <4.0.0'
flutter: '>=1.10.0'
sdk: ">=2.12.0 <4.0.0"
flutter: ">=1.10.0"

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
Expand Down