Skip to content

Commit 2a1b069

Browse files
committed
fix(android): add a missing function in gradle
1 parent 1225759 commit 2a1b069

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

android/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ def getExtOrDefault(name) {
1717
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['SQLite2_' + name]
1818
}
1919

20+
def getExtOrIntegerDefault(name) {
21+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['SQLite2_' + name]).toInteger()
22+
}
23+
2024
android {
2125
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
2226
buildToolsVersion getExtOrDefault('buildToolsVersion')

0 commit comments

Comments
 (0)