UNPKG

1.67 kBPlain TextView Raw
1apply plugin: 'com.android.library'
2apply plugin: 'kotlin-android'
3apply plugin: 'maven-publish'
4
5buildscript {
6 // Simple helper that allows the root project to override versions declared by this library.
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
20group = 'host.exp.exponent'
21version = '3.1.1'
22
23// Creating sources with comments
24task androidSourcesJar(type: Jar) {
25 classifier = 'sources'
26 from android.sourceSets.main.java.srcDirs
27}
28
29afterEvaluate {
30 publishing {
31 publications {
32 release(MavenPublication) {
33 from components.release
34 // Add additional sourcesJar to artifacts
35 artifact(androidSourcesJar)
36 }
37 }
38 repositories {
39 maven {
40 url = mavenLocal().url
41 }
42 }
43 }
44}
45
46android {
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
65repositories {
66 mavenCentral()
67}
68
69dependencies {
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}