From 0471f6261de773e5e27ed2a1d42b0d00358cc38e Mon Sep 17 00:00:00 2001 From: Rodolfo Ruiz Date: Tue, 18 Jun 2024 11:53:01 -0700 Subject: [PATCH] add android namespace --- CHANGELOG.md | 3 +++ android/build.gradle | 7 ++++++- pubspec.yaml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbfd18c..07a78de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2.1.1 +* fix: #9 + # 2.1.0 * fix: #4 diff --git a/android/build.gradle b/android/build.gradle index 4e8106c..18a6552 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,5 +1,5 @@ group 'io.flutterfastkit.fk_user_agent' -version '2.0.0' +version '2.1.1' buildscript { repositories { @@ -22,6 +22,11 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { + // Conditional for compatibility with AGP <4.2. + if (project.android.hasProperty("namespace")) { + namespace 'io.flutterfastkit.fk_user_agent' + } + compileSdkVersion 30 defaultConfig { diff --git a/pubspec.yaml b/pubspec.yaml index f3e54f6..73ab968 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: fk_user_agent description: Retrieve Android/iOS device user agents in Flutter. -version: 2.1.0 +version: 2.1.1 homepage: https://github.com/flutter-fast-kit/fk_user_agent environment: