Skip to content

Commit 71cdb8c

Browse files
committed
Remove workaround and introduce availability check
1 parent 4e08303 commit 71cdb8c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

android/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ apply plugin: 'kotlin-android'
2727
android {
2828
compileSdkVersion 31
2929

30-
// Only set namespace on compatible versions (Android Gradle plugin >= 7.0.0)
31-
// The if-check checks for a property that has been removed since AGP 7.0.0
32-
// https://developer.android.com/build/releases/past-releases/agp-7-0-0-release-notes#build-cache-removed
33-
if (!project.hasProperty("android.buildCacheDir")) {
30+
if (project.android.hasProperty("namespace")) {
3431
namespace 'dev.fluttercommunity.android_id'
3532
}
3633

0 commit comments

Comments
 (0)