From 1937f11909f33f18751fe4409dc35c21cd8b4ec8 Mon Sep 17 00:00:00 2001 From: Jonas Finnemann Jensen Date: Thu, 22 Feb 2024 15:08:08 +0100 Subject: [PATCH] Add namespace to `build.gradle` Fixes https://github.com/google/webcrypto.dart/issues/84 Follows changes from: * https://github.com/flutter/packages/commit/6284c2d4e46a5d289e77cb03a9457543b97f750b * https://github.com/flutter/packages/commit/a86beafa8912609275225847198c9c0164957d09 --- CHANGELOG.md | 3 +++ android/build.gradle | 5 +++++ pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73e473c3..42288fb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 0.5.5 +* Adds a namespace in `build.gradle` for compatibility with AGP 8.0. + # 0.5.4 * Added MacOS desktop support. * Added Windows desktop support. diff --git a/android/build.gradle b/android/build.gradle index 0322c90c..f28ee5fb 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -25,6 +25,11 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { + // Conditional for compatibility with AGP <4.2. + if (project.android.hasProperty("namespace")) { + namespace 'dev.google.webcrypto' + } + compileSdkVersion 31 // We depend on cmake for the native parts. diff --git a/pubspec.yaml b/pubspec.yaml index 8a5802e6..21ebc9ef 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,7 +13,7 @@ # limitations under the License. name: webcrypto -version: 0.5.4 +version: 0.5.5 description: Cross-platform implementation of Web Cryptography APIs for Flutter. repository: https://github.com/google/webcrypto.dart