Skip to content

Commit 0d8d1b7

Browse files
authored
Add namespace to build.gradle (#85)
Fixes #84 Follows changes from: * flutter/packages@6284c2d * flutter/packages@a86beaf
1 parent 5e6d20f commit 0d8d1b7

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.5.5
2+
* Adds a namespace in `build.gradle` for compatibility with AGP 8.0.
3+
14
# 0.5.4
25
* Added MacOS desktop support.
36
* Added Windows desktop support.

android/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ apply plugin: 'com.android.library'
2525
apply plugin: 'kotlin-android'
2626

2727
android {
28+
// Conditional for compatibility with AGP <4.2.
29+
if (project.android.hasProperty("namespace")) {
30+
namespace 'dev.google.webcrypto'
31+
}
32+
2833
compileSdkVersion 31
2934

3035
// We depend on cmake for the native parts.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
name: webcrypto
16-
version: 0.5.4
16+
version: 0.5.5
1717
description: Cross-platform implementation of Web Cryptography APIs for Flutter.
1818
repository: https://github.com/google/webcrypto.dart
1919

0 commit comments

Comments
 (0)