1 | apply plugin: 'com.android.library'
|
2 | apply plugin: 'kotlin-android'
|
3 | apply plugin: 'maven-publish'
|
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.1'
|
22 |
|
23 |
|
24 | task androidSourcesJar(type: Jar) {
|
25 | classifier = 'sources'
|
26 | from android.sourceSets.main.java.srcDirs
|
27 | }
|
28 |
|
29 | afterEvaluate {
|
30 | publishing {
|
31 | publications {
|
32 | release(MavenPublication) {
|
33 | from components.release
|
34 |
|
35 | artifact(androidSourcesJar)
|
36 | }
|
37 | }
|
38 | repositories {
|
39 | maven {
|
40 | url = mavenLocal().url
|
41 | }
|
42 | }
|
43 | }
|
44 | }
|
45 |
|
46 | android {
|
47 | compileSdkVersion safeExtGet("compileSdkVersion", 30)
|
48 |
|
49 | compileOptions {
|
50 | sourceCompatibility JavaVersion.VERSION_1_8
|
51 | targetCompatibility JavaVersion.VERSION_1_8
|
52 | }
|
53 |
|
54 | defaultConfig {
|
55 | minSdkVersion safeExtGet("minSdkVersion", 21)
|
56 | targetSdkVersion safeExtGet("targetSdkVersion", 30)
|
57 | versionCode 8
|
58 | versionName "3.1.1"
|
59 | }
|
60 | lintOptions {
|
61 | abortOnError false
|
62 | }
|
63 | }
|
64 |
|
65 | repositories {
|
66 | mavenCentral()
|
67 | }
|
68 |
|
69 | dependencies {
|
70 | implementation project(':expo-modules-core')
|
71 |
|
72 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${safeExtGet('kotlinVersion', '1.4.21')}"
|
73 | api 'com.github.bumptech.glide:glide:4.9.0'
|
74 | api 'com.facebook.fresco:fresco:2.0.0'
|
75 | }
|