UNPKG

1.81 kBPlain TextView Raw
1apply plugin: 'com.android.library'
2apply plugin: 'kotlin-android'
3apply plugin: 'maven'
4
5group = 'host.exp.exponent'
6version = '10.0.1'
7
8
9buildscript {
10 // Simple helper that allows the root project to override versions declared by this library.
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// Upload android library to maven with javadoc and android sources
25configurations {
26 deployerJars
27}
28
29// Creating sources with comments
30task androidSourcesJar(type: Jar) {
31 classifier = 'sources'
32 from android.sourceSets.main.java.srcDirs
33}
34
35// Put the androidSources and javadoc to the artifacts
36artifacts {
37 archives androidSourcesJar
38}
39
40uploadArchives {
41 repositories {
42 mavenDeployer {
43 configuration = configurations.deployerJars
44 repository(url: mavenLocal().url)
45 }
46 }
47}
48
49android {
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.1'
62 }
63 lintOptions {
64 abortOnError false
65 }
66}
67
68dependencies {
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}