File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
buildscript {
2
+ // Simple helper that allows the root project to override versions declared by this library.
3
+ ext. safeExtGet = { prop , fallback ->
4
+ rootProject. ext. has(prop) ? rootProject. ext. get(prop) : fallback
5
+ }
6
+
2
7
ext {
3
- kotlinVersion = ' 1.7.20'
8
+ kotlinVersion = safeExtGet( ' kotlinVersion ' , ' 1.7.20' )
4
9
buildToolsVersion = ' 29.0.2'
5
10
compileSdkVersion = 29
6
11
targetSdkVersion = 29
@@ -25,10 +30,6 @@ def DEFAULT_COMPILE_SDK_VERSION = 28
25
30
def DEFAULT_BUILD_TOOLS_VERSION = " 28.0.3"
26
31
def DEFAULT_TARGET_SDK_VERSION = 28
27
32
28
- def safeExtGet (prop , fallback ) {
29
- rootProject. ext. has(prop) ? rootProject. ext. get(prop) : fallback
30
- }
31
-
32
33
android {
33
34
compileSdkVersion safeExtGet(' compileSdkVersion' , DEFAULT_COMPILE_SDK_VERSION )
34
35
buildToolsVersion safeExtGet(' buildToolsVersion' , DEFAULT_BUILD_TOOLS_VERSION )
You can’t perform that action at this time.
0 commit comments