react-native-edgee 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +11 -0
- package/android/gradle.properties +5 -0
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
buildscript {
|
|
2
|
+
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["ReactNativeEdgee_kotlinVersion"]
|
|
3
|
+
|
|
2
4
|
repositories {
|
|
3
5
|
google()
|
|
4
6
|
mavenCentral()
|
|
@@ -6,10 +8,12 @@ buildscript {
|
|
|
6
8
|
|
|
7
9
|
dependencies {
|
|
8
10
|
classpath "com.android.tools.build:gradle:7.2.1"
|
|
11
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
9
12
|
}
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
apply plugin: "com.android.library"
|
|
16
|
+
apply plugin: "kotlin-android"
|
|
13
17
|
|
|
14
18
|
def getExtOrDefault(name) {
|
|
15
19
|
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["ReactNativeEdgee_" + name]
|
|
@@ -43,6 +47,10 @@ android {
|
|
|
43
47
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
44
48
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
45
49
|
}
|
|
50
|
+
|
|
51
|
+
kotlinOptions {
|
|
52
|
+
jvmTarget = "1.8"
|
|
53
|
+
}
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
repositories {
|
|
@@ -115,6 +123,9 @@ repositories {
|
|
|
115
123
|
}
|
|
116
124
|
}
|
|
117
125
|
|
|
126
|
+
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
127
|
+
|
|
118
128
|
dependencies {
|
|
119
129
|
implementation "com.facebook.react:react-native:+"
|
|
130
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
120
131
|
}
|