diff --git a/android/build.gradle b/android/build.gradle index a973ce3..8ba19f4 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -18,6 +18,10 @@ def DEFAULT_BUILD_TOOLS_VERSION = '28.0.3' def DEFAULT_TARGET_SDK_VERSION = 28 android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.pilloxa.backgroundjob" + } compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION