react-native-insider 7.0.3 → 7.0.4
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
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
buildscript {
|
|
2
2
|
repositories {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
name 'Google'
|
|
7
|
-
}
|
|
3
|
+
google()
|
|
4
|
+
mavenCentral()
|
|
5
|
+
maven { url "https://developer.huawei.com/repo/"}
|
|
8
6
|
}
|
|
9
7
|
|
|
10
8
|
dependencies {
|
|
@@ -25,11 +23,20 @@ android {
|
|
|
25
23
|
minSdkVersion getVersionFromPartner('minSdkVersion', 24)
|
|
26
24
|
multiDexEnabled true
|
|
27
25
|
}
|
|
26
|
+
|
|
27
|
+
def gradleVersion = gradle.gradleVersion.tokenize('.')
|
|
28
|
+
def major = gradleVersion[0].toInteger()
|
|
29
|
+
|
|
30
|
+
if (major >= 8) {
|
|
31
|
+
namespace "com.useinsider.react"
|
|
32
|
+
}
|
|
28
33
|
}
|
|
29
34
|
|
|
30
35
|
repositories {
|
|
36
|
+
google()
|
|
31
37
|
mavenCentral()
|
|
32
|
-
maven { url "https://
|
|
38
|
+
maven { url "https://developer.huawei.com/repo/"}
|
|
39
|
+
maven { url "https://mobilesdk.useinsider.com/android" }
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
|
|
@@ -47,7 +54,7 @@ dependencies {
|
|
|
47
54
|
implementation 'com.google.android.gms:play-services-location:21.3.0'
|
|
48
55
|
implementation 'com.google.android.play:review:2.0.1'
|
|
49
56
|
|
|
50
|
-
implementation 'com.huawei.hms:push:6.
|
|
57
|
+
implementation 'com.huawei.hms:push:6.13.0.300'
|
|
51
58
|
implementation 'com.huawei.hms:ads-identifier:3.4.62.300'
|
|
52
|
-
implementation 'com.huawei.hms:location:6.
|
|
59
|
+
implementation 'com.huawei.hms:location:6.16.0.302'
|
|
53
60
|
}
|
|
@@ -93,13 +93,26 @@ apply_iOS_SDK_version_in_podspec() {
|
|
|
93
93
|
|
|
94
94
|
read_android_SDK_version_from_maven() {
|
|
95
95
|
local url="https://mobilesdk.useinsider.com/android/com/useinsider/${1}/maven-metadata.xml"
|
|
96
|
-
local
|
|
97
|
-
|
|
96
|
+
local xml="$(curl -fsSL "${url}")"
|
|
97
|
+
local version="$(echo "${xml}" \
|
|
98
98
|
| tr -d '\n' \
|
|
99
99
|
| sed -nE 's/.*<release>[[:space:]]*([^<[:space:]]+)[[:space:]]*<\/release>.*/\1/p' \
|
|
100
100
|
| head -1
|
|
101
|
-
)
|
|
102
|
-
|
|
101
|
+
)"
|
|
102
|
+
if [[ "${NEW_VERSION_NUMBER}" == *-nh ]]; then
|
|
103
|
+
if [[ "${version}" == *-nh ]]; then
|
|
104
|
+
echo "${version}"
|
|
105
|
+
else
|
|
106
|
+
local version_nh="${version}-nh"
|
|
107
|
+
if printf '%s' "${xml}" | grep -q "<version>${version_nh}</version>"; then
|
|
108
|
+
echo "${version_nh}"
|
|
109
|
+
else
|
|
110
|
+
echo "${version}"
|
|
111
|
+
fi
|
|
112
|
+
fi
|
|
113
|
+
else
|
|
114
|
+
echo "${version}"
|
|
115
|
+
fi
|
|
103
116
|
}
|
|
104
117
|
|
|
105
118
|
apply_android_SDK_version_in_maven() {
|