File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,25 @@ def safeExtGet(prop, fallback) {
12
12
rootProject. ext. has(prop) ? rootProject. ext. get(prop) : fallback
13
13
}
14
14
15
+ def supportsNamespace () {
16
+ def parsed = com.android.Version . ANDROID_GRADLE_PLUGIN_VERSION . tokenize(' .' )
17
+ def major = parsed[0 ]. toInteger()
18
+ def minor = parsed[1 ]. toInteger()
19
+
20
+ // Namespace support was added in 7.3.0
21
+ if (major == 7 && minor >= 3 ) {
22
+ return true
23
+ }
24
+
25
+ return major >= 8
26
+ }
27
+
15
28
android {
16
29
compileSdkVersion safeExtGet(' compileSdkVersion' , 29 )
17
30
buildToolsVersion safeExtGet(' buildToolsVersion' , " 25.0.3" )
31
+ if (supportsNamespace()) {
32
+ namespace " com.henninghall.date_picker"
33
+ }
18
34
19
35
defaultConfig {
20
36
minSdkVersion safeExtGet(' minSdkVersion' , 18 )
You can’t perform that action at this time.
0 commit comments