UNPKG

1.39 kBPlain TextView Raw
1buildscript {
2 repositories {
3 google()
4 jcenter()
5 }
6
7 dependencies {
8 classpath 'com.android.tools.build:gradle:3.2.1'
9 }
10}
11
12apply plugin: 'com.android.library'
13apply plugin: 'maven'
14
15group = 'host.exp.exponent'
16version = '3.0.0'
17
18//Upload android library to maven with javadoc and android sources
19configurations {
20 deployerJars
21}
22
23//Creating sources with comments
24task androidSourcesJar(type: Jar) {
25 classifier = 'sources'
26 from android.sourceSets.main.java.srcDirs
27}
28
29//Put the androidSources and javadoc to the artifacts
30artifacts {
31 archives androidSourcesJar
32}
33
34uploadArchives {
35 repositories {
36 mavenDeployer {
37 configuration = configurations.deployerJars
38 repository(url: mavenLocal().url)
39 }
40 }
41}
42
43android {
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
57repositories {
58 mavenCentral()
59}
60
61if (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
69dependencies {
70
71}