UNPKG

1.75 kBPlain TextView Raw
1apply plugin: 'com.android.library'
2apply plugin: 'maven'
3
4group = 'host.exp.exponent'
5version = '11.0.1'
6
7// Simple helper that allows the root project to override versions declared by this library.
8def safeExtGet(prop, fallback) {
9 rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
10}
11
12//Upload android library to maven with javadoc and android sources
13configurations {
14 deployerJars
15}
16
17//Creating sources with comments
18task androidSourcesJar(type: Jar) {
19 classifier = 'sources'
20 from android.sourceSets.main.java.srcDirs
21}
22
23//Put the androidSources and javadoc to the artifacts
24artifacts {
25 archives androidSourcesJar
26}
27
28uploadArchives {
29 repositories {
30 mavenDeployer {
31 configuration = configurations.deployerJars
32 repository(url: mavenLocal().url)
33 }
34 }
35}
36
37android {
38 compileSdkVersion safeExtGet("compileSdkVersion", 30)
39
40 defaultConfig {
41 minSdkVersion safeExtGet("minSdkVersion", 21)
42 targetSdkVersion safeExtGet("targetSdkVersion", 30)
43 versionCode 32
44 versionName "11.0.1"
45 }
46 lintOptions {
47 abortOnError false
48 }
49 compileOptions {
50 sourceCompatibility = '1.8'
51 targetCompatibility = '1.8'
52 }
53}
54
55repositories {
56 mavenCentral()
57 maven {
58 url "$projectDir/maven"
59 }
60}
61
62apply from: project(":unimodules-core").file("../unimodules-core.gradle")
63
64dependencies {
65 unimodule 'unimodules-core'
66 unimodule 'unimodules-barcode-scanner-interface'
67 unimodule 'unimodules-face-detector-interface'
68 unimodule 'unimodules-permissions-interface'
69 unimodule 'unimodules-file-system-interface'
70 unimodule 'unimodules-image-loader-interface'
71 unimodule 'unimodules-camera-interface'
72 api "androidx.exifinterface:exifinterface:1.0.0"
73 api 'com.google.android:cameraview:1.0.0'
74}