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