From 2e3943b6bf79f047ca15dfbc4c2b61c2e2c223ee Mon Sep 17 00:00:00 2001 From: Michel von Varendorff Date: Mon, 18 Mar 2024 12:38:41 +0100 Subject: [PATCH 1/2] fix: AGP 8.x compatibility --- cryptography_flutter/android/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cryptography_flutter/android/build.gradle b/cryptography_flutter/android/build.gradle index 6b37889..eeaf61d 100644 --- a/cryptography_flutter/android/build.gradle +++ b/cryptography_flutter/android/build.gradle @@ -25,6 +25,8 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { + namespace "dev.dint.cryptography_flutter" + compileSdkVersion 31 compileOptions { From 666e4c20a87097f0fc69596dab366c53eea8899d Mon Sep 17 00:00:00 2001 From: mvarendorff Date: Thu, 25 Apr 2024 11:40:20 +0200 Subject: [PATCH 2/2] compatibility with AGP <4.2 --- cryptography_flutter/android/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cryptography_flutter/android/build.gradle b/cryptography_flutter/android/build.gradle index eeaf61d..65549e8 100644 --- a/cryptography_flutter/android/build.gradle +++ b/cryptography_flutter/android/build.gradle @@ -25,7 +25,9 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - namespace "dev.dint.cryptography_flutter" + if (project.android.hasProperty("namespace")) { + namespace "dev.dint.cryptography_flutter" + } compileSdkVersion 31