forked from rumax/react-native-PDFView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
42 lines (35 loc) 路 1.31 KB
/
Copy pathbuild.gradle
File metadata and controls
42 lines (35 loc) 路 1.31 KB
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
39
40
41
42
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
def _defaults = {
buildToolsVersion = "28.0.3"
compileSdkVersion = 28
minSdkVersion = 21
supportLibVersion = "28.0.0"
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 supportLibVersion = safeExtGet('supportLibVersion', _defaults.supportLibVersion)
def pdfViewerVersion = safeExtGet('pdfViewer', "2.8.2")
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation "com.github.barteksc:android-pdf-viewer:$pdfViewerVersion"
implementation "com.android.support:appcompat-v7:$supportLibVersion"
implementation "com.android.support:support-v4:$supportLibVersion"
}