@survicate/react-native-survicate 1.1.4 → 1.1.5
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 +20 -16
- package/android/gradle.properties +21 -0
- package/package.json +1 -1
- package/react-native-survicate.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -10,18 +10,15 @@
|
|
|
10
10
|
// original location:
|
|
11
11
|
// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle
|
|
12
12
|
|
|
13
|
-
def DEFAULT_COMPILE_SDK_VERSION =
|
|
14
|
-
def DEFAULT_BUILD_TOOLS_VERSION = '
|
|
13
|
+
def DEFAULT_COMPILE_SDK_VERSION = 31
|
|
14
|
+
def DEFAULT_BUILD_TOOLS_VERSION = '31.0.0'
|
|
15
15
|
def DEFAULT_MIN_SDK_VERSION = 16
|
|
16
|
-
def DEFAULT_TARGET_SDK_VERSION =
|
|
16
|
+
def DEFAULT_TARGET_SDK_VERSION = 31
|
|
17
17
|
|
|
18
18
|
def safeExtGet(prop, fallback) {
|
|
19
19
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
apply plugin: 'com.android.library'
|
|
23
|
-
apply plugin: 'maven'
|
|
24
|
-
|
|
25
22
|
buildscript {
|
|
26
23
|
// The Android Gradle plugin is only required when opening the android folder stand-alone.
|
|
27
24
|
// This avoids unnecessary downloads and potential conflicts when the library is included as a
|
|
@@ -33,13 +30,15 @@ buildscript {
|
|
|
33
30
|
jcenter()
|
|
34
31
|
}
|
|
35
32
|
dependencies {
|
|
36
|
-
classpath 'com.android.tools.build:gradle:
|
|
33
|
+
classpath 'com.android.tools.build:gradle:4.2.2'
|
|
37
34
|
}
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
plugins {
|
|
39
|
+
id('com.android.library')
|
|
40
|
+
id('maven-publish')
|
|
41
|
+
}
|
|
43
42
|
|
|
44
43
|
android {
|
|
45
44
|
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
|
|
@@ -77,7 +76,7 @@ repositories {
|
|
|
77
76
|
dependencies {
|
|
78
77
|
//noinspection GradleDynamicVersion
|
|
79
78
|
implementation 'com.facebook.react:react-native:+' // From node_modules
|
|
80
|
-
implementation 'com.survicate:survicate-sdk:1.5.
|
|
79
|
+
implementation 'com.survicate:survicate-sdk:1.5.9'
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
def configureReactNativePom(def pom) {
|
|
@@ -119,22 +118,27 @@ afterEvaluate { project ->
|
|
|
119
118
|
}
|
|
120
119
|
|
|
121
120
|
task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
|
|
122
|
-
|
|
121
|
+
archiveClassifier = 'javadoc'
|
|
123
122
|
from androidJavadoc.destinationDir
|
|
124
123
|
}
|
|
125
124
|
|
|
126
125
|
task androidSourcesJar(type: Jar) {
|
|
127
|
-
|
|
126
|
+
archiveClassifier = 'sources'
|
|
128
127
|
from android.sourceSets.main.java.srcDirs
|
|
129
128
|
include '**/*.java'
|
|
130
129
|
}
|
|
131
130
|
|
|
132
131
|
android.libraryVariants.all { variant ->
|
|
133
|
-
def
|
|
134
|
-
|
|
132
|
+
def compileTask
|
|
133
|
+
if (variant.hasProperty('javaCompileProvider')){
|
|
134
|
+
compileTask = variant.javaCompileProvider.get()
|
|
135
|
+
}else{
|
|
136
|
+
compileTask = variant.javaCompile
|
|
137
|
+
}
|
|
135
138
|
|
|
136
|
-
|
|
137
|
-
|
|
139
|
+
def name = variant.name.capitalize()
|
|
140
|
+
task "jar${name}"(type: Jar, dependsOn: compileTask) {
|
|
141
|
+
from compileTask.destinationDir
|
|
138
142
|
}
|
|
139
143
|
}
|
|
140
144
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Project-wide Gradle settings.
|
|
2
|
+
|
|
3
|
+
# IDE (e.g. Android Studio) users:
|
|
4
|
+
# Gradle settings configured through the IDE *will override*
|
|
5
|
+
# any settings specified in this file.
|
|
6
|
+
|
|
7
|
+
# For more details on how to configure your build environment visit
|
|
8
|
+
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
9
|
+
|
|
10
|
+
# Specifies the JVM arguments used for the daemon process.
|
|
11
|
+
# The setting is particularly useful for tweaking memory settings.
|
|
12
|
+
# Default value: -Xmx10248m -XX:MaxPermSize=256m
|
|
13
|
+
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
|
14
|
+
|
|
15
|
+
# When configured, Gradle will run in incubating parallel mode.
|
|
16
|
+
# This option should only be used with decoupled projects. More details, visit
|
|
17
|
+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
18
|
+
# org.gradle.parallel=true
|
|
19
|
+
|
|
20
|
+
android.useAndroidX=true
|
|
21
|
+
android.enableJetifier=true
|
package/package.json
CHANGED