Skip to content

Commit

Permalink
Adds Android namespace (#89)
Browse files Browse the repository at this point in the history
Adds a namespace attribute to the Android build.gradle, for compatibility with Android Gradle Plugin 8.0.

---------

Co-authored-by: Britannio <britanniojarrett@gmail.com>
  • Loading branch information
asaarnak and britannio committed Sep 16, 2023
1 parent 6ce93a8 commit 1f0f370
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions in_app_review/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
// Conditional for compatibility with AGP <4.2.
if (project.android.hasProperty("namespace")) {
namespace 'dev.britannio.in_app_review'
}
compileSdkVersion 31

compileOptions {
Expand Down
1 change: 1 addition & 0 deletions in_app_review/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if (keystorePropertiesFile.exists()) {
}

android {
namespace 'dev.britannio.in_app_review_demo'
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

Expand Down

0 comments on commit 1f0f370

Please sign in to comment.