1 | buildscript {
|
2 |
|
3 | ext.safeExtGet = { prop, fallback ->
|
4 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
5 | }
|
6 |
|
7 | repositories {
|
8 | mavenCentral()
|
9 | }
|
10 |
|
11 | dependencies {
|
12 | classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet("kotlinVersion", "1.3.50")}")
|
13 | }
|
14 | }
|
15 |
|
16 | apply plugin: 'com.android.library'
|
17 | apply plugin: 'maven'
|
18 | apply plugin: 'kotlin-android'
|
19 |
|
20 | group = 'org.unimodules'
|
21 | version = '6.1.0'
|
22 |
|
23 |
|
24 |
|
25 | def safeExtGet(prop, fallback) {
|
26 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
27 | }
|
28 |
|
29 |
|
30 | configurations {
|
31 | deployerJars
|
32 | }
|
33 |
|
34 |
|
35 | task androidSourcesJar(type: Jar) {
|
36 | classifier = 'sources'
|
37 | from android.sourceSets.main.java.srcDirs
|
38 | }
|
39 |
|
40 |
|
41 | artifacts {
|
42 | archives androidSourcesJar
|
43 | }
|
44 |
|
45 | uploadArchives {
|
46 | repositories {
|
47 | mavenDeployer {
|
48 | configuration = configurations.deployerJars
|
49 | repository(url: mavenLocal().url)
|
50 | }
|
51 | }
|
52 | }
|
53 |
|
54 | android {
|
55 | compileSdkVersion safeExtGet("compileSdkVersion", 29)
|
56 |
|
57 | defaultConfig {
|
58 | minSdkVersion safeExtGet("minSdkVersion", 21)
|
59 | targetSdkVersion safeExtGet("targetSdkVersion", 29)
|
60 | versionCode 23
|
61 | versionName "6.1.0"
|
62 | }
|
63 | lintOptions {
|
64 | abortOnError false
|
65 | }
|
66 | }
|
67 |
|
68 | apply from: project(":unimodules-core").file("../unimodules-core.gradle")
|
69 |
|
70 | dependencies {
|
71 | unimodule 'unimodules-core'
|
72 | unimodule 'unimodules-font-interface'
|
73 | unimodule 'unimodules-permissions-interface'
|
74 | unimodule 'unimodules-image-loader-interface'
|
75 | unimodule 'unimodules-app-loader'
|
76 |
|
77 | implementation 'com.facebook.react:react-native:+'
|
78 |
|
79 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${safeExtGet('kotlinVersion', '1.3.50')}"
|
80 |
|
81 | }
|