-
Notifications
You must be signed in to change notification settings - Fork 92
/
build.gradle
38 lines (32 loc) · 1 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
def safeExtGet(prop, fallback = null) {
if (rootProject.ext.has(prop)) {
return rootProject.ext[prop]
}
if (project.properties[prop]) {
return project.properties[prop]
}
return fallback
}
apply plugin: 'com.android.library'
android {
compileSdkVersion safeExtGet('compileSdkVersion')
buildToolsVersion safeExtGet('buildToolsVersion')
defaultConfig {
minSdkVersion safeExtGet('minSdkVersion')
targetSdkVersion safeExtGet('targetSdkVersion')
}
lintOptions {
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
def pdfViewerVersion = safeExtGet('pdfViewerVersion', '2.8.2')
def pdfViewerRepo = safeExtGet('pdfViewerRepo', 'com.github.barteksc')
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation "$pdfViewerRepo:android-pdf-viewer:$pdfViewerVersion"
}