diff --git a/android/build.gradle b/android/build.gradle index 4e8106c..6fd0249 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: