forked from rumax/react-native-PDFView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
37 lines (31 loc) · 1.04 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
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
def _defaults = {
buildToolsVersion = "28.0.3"
compileSdkVersion = 28
minSdkVersion = 21
targetSdkVersion = 28
}
apply plugin: 'com.android.library'
android {
compileSdkVersion safeExtGet('compileSdkVersion', _defaults.compileSdkVersion)
buildToolsVersion safeExtGet('buildToolsVersion', _defaults.buildToolsVersion)
defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', _defaults.minSdkVersion)
targetSdkVersion safeExtGet('targetSdkVersion', _defaults.targetSdkVersion)
}
lintOptions {
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
def pdfViewerVersion = safeExtGet('pdfViewer', "2.8.2")
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation "com.github.barteksc:android-pdf-viewer:$pdfViewerVersion"
}