1 | apply plugin: 'com.android.library'
|
2 | apply plugin: 'kotlin-android'
|
3 | apply plugin: 'maven'
|
4 |
|
5 | buildscript {
|
6 |
|
7 | ext.safeExtGet = { prop, fallback ->
|
8 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
9 | }
|
10 |
|
11 | repositories {
|
12 | mavenCentral()
|
13 | }
|
14 |
|
15 | dependencies {
|
16 | classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.4.21')}")
|
17 | }
|
18 | }
|
19 |
|
20 | group = 'host.exp.exponent'
|
21 | version = '3.1.0'
|
22 |
|
23 |
|
24 | configurations {
|
25 | deployerJars
|
26 | }
|
27 |
|
28 |
|
29 | task androidSourcesJar(type: Jar) {
|
30 | classifier = 'sources'
|
31 | from android.sourceSets.main.java.srcDirs
|
32 | }
|
33 |
|
34 |
|
35 | artifacts {
|
36 | archives androidSourcesJar
|
37 | }
|
38 |
|
39 | uploadArchives {
|
40 | repositories {
|
41 | mavenDeployer {
|
42 | configuration = configurations.deployerJars
|
43 | repository(url: mavenLocal().url)
|
44 | }
|
45 | }
|
46 | }
|
47 |
|
48 | android {
|
49 | compileSdkVersion safeExtGet("compileSdkVersion", 30)
|
50 |
|
51 | compileOptions {
|
52 | sourceCompatibility JavaVersion.VERSION_1_8
|
53 | targetCompatibility JavaVersion.VERSION_1_8
|
54 | }
|
55 |
|
56 | defaultConfig {
|
57 | minSdkVersion safeExtGet("minSdkVersion", 21)
|
58 | targetSdkVersion safeExtGet("targetSdkVersion", 30)
|
59 | versionCode 8
|
60 | versionName "3.1.0"
|
61 | }
|
62 | lintOptions {
|
63 | abortOnError false
|
64 | }
|
65 | }
|
66 |
|
67 | repositories {
|
68 | mavenCentral()
|
69 | }
|
70 |
|
71 | dependencies {
|
72 | implementation project(':expo-modules-core')
|
73 |
|
74 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${safeExtGet('kotlinVersion', '1.4.21')}"
|
75 | api 'com.github.bumptech.glide:glide:4.9.0'
|
76 | api 'com.facebook.fresco:fresco:2.0.0'
|
77 | }
|