1 | buildscript {
|
2 | repositories {
|
3 | google()
|
4 | jcenter()
|
5 | }
|
6 |
|
7 | dependencies {
|
8 | classpath 'com.android.tools.build:gradle:3.2.1'
|
9 | }
|
10 | }
|
11 |
|
12 | apply plugin: 'com.android.library'
|
13 | apply plugin: 'maven'
|
14 |
|
15 | group = 'host.exp.exponent'
|
16 | version = '3.0.0'
|
17 |
|
18 |
|
19 | configurations {
|
20 | deployerJars
|
21 | }
|
22 |
|
23 |
|
24 | task androidSourcesJar(type: Jar) {
|
25 | classifier = 'sources'
|
26 | from android.sourceSets.main.java.srcDirs
|
27 | }
|
28 |
|
29 |
|
30 | artifacts {
|
31 | archives androidSourcesJar
|
32 | }
|
33 |
|
34 | uploadArchives {
|
35 | repositories {
|
36 | mavenDeployer {
|
37 | configuration = configurations.deployerJars
|
38 | repository(url: mavenLocal().url)
|
39 | }
|
40 | }
|
41 | }
|
42 |
|
43 | android {
|
44 | compileSdkVersion 26
|
45 |
|
46 | defaultConfig {
|
47 | minSdkVersion 21
|
48 | targetSdkVersion 26
|
49 | versionCode 12
|
50 | versionName "3.0.0"
|
51 | }
|
52 | lintOptions {
|
53 | abortOnError false
|
54 | }
|
55 | }
|
56 |
|
57 | repositories {
|
58 | mavenCentral()
|
59 | }
|
60 |
|
61 | if (new File(rootProject.projectDir.parentFile, 'package.json').exists()) {
|
62 | apply from: project(":expo-core").file("../expo-core.gradle")
|
63 | } else {
|
64 | throw new GradleException(
|
65 | "'expo-core.gradle' was not found in the usual Flutter or React Native dependency locations. " +
|
66 | "This package can only be used in such projects. Are you sure you've installed the dependencies properly?")
|
67 | }
|
68 |
|
69 | dependencies {
|
70 |
|
71 | }
|