UNPKG

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