File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/create-react-native-library/templates/native-common/android Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
buildscript {
2
2
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
3
- def kotlin_version = rootProject. ext. has(" kotlinVersion" ) ? rootProject. ext. get(" kotlinVersion" ) : project. properties[" <%- project.name -%>_kotlinVersion" ]
3
+ ext. getExtOrDefault = {name ->
4
+ return rootProject. ext. has(name) ? rootProject. ext. get(name) : project. properties[' <%- project.name -%>_' + name]
5
+ }
4
6
5
7
repositories {
6
8
google()
7
9
mavenCentral()
8
10
}
9
11
10
12
dependencies {
11
- classpath " com.android.tools.build:gradle:7.2.1 "
13
+ classpath " com.android.tools.build:gradle:${ getExtOrDefault('gradleVersion') } "
12
14
// noinspection DifferentKotlinGradleVersion
13
- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$k otlin_version "
15
+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:${ getExtOrDefault('kotlinVersion') } "
14
16
}
15
17
}
16
18
You can’t perform that action at this time.
0 commit comments