Skip to content

Commit e7f74ab

Browse files
authored
Merge pull request #67 from Joatin/master
Add Gradle namespace
2 parents 105fdc9 + 4bec3c8 commit e7f74ab

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

android/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ def safeExtGet(prop, fallback) {
1818
}
1919

2020
android {
21+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
22+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
23+
namespace "com.sha256lib"
24+
}
25+
2126
compileSdkVersion safeExtGet('compileSdkVersion', 29)
2227
buildToolsVersion safeExtGet('buildToolsVersion', '29.0.2')
2328
defaultConfig {

0 commit comments

Comments
 (0)