react-native-acoustic-connect-beta 16.0.37 → 16.0.39
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/Example/nativebase-v3-kitchensink/package.json +1 -1
- package/Jenkinsfile +64 -41
- package/android/src/main/assets/ConnectAdvancedConfig.json +1 -1
- package/android/src/main/assets/EOCoreAdvancedConfig.json +1 -1
- package/android/src/main/assets/TealeafAdvancedConfig.json +1 -1
- package/latestChanges +1 -0
- package/package.json +1 -1
- package/scripts/ConnectConfig.json +1 -1
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"react": "18.2.0",
|
|
16
16
|
"react-dom": "18.2.0",
|
|
17
17
|
"react-native": "0.72.10",
|
|
18
|
-
"react-native-acoustic-connect-beta": "16.0.
|
|
18
|
+
"react-native-acoustic-connect-beta": "16.0.39",
|
|
19
19
|
"react-native-gesture-handler": "~2.12.0",
|
|
20
20
|
"react-native-keyboard-aware-scroll-view": "^0.9.5",
|
|
21
21
|
"react-native-reanimated": "~3.3.0",
|
package/Jenkinsfile
CHANGED
|
@@ -20,10 +20,19 @@ pipeline {
|
|
|
20
20
|
PATH="${PATH}:${GEM_HOME}/bin"
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
options {
|
|
24
|
+
// Throttle jobs based on global config for the given category
|
|
25
|
+
throttleJobProperty(
|
|
26
|
+
categories: ['SDK','AndroidThrottle'],
|
|
27
|
+
throttleEnabled: true,
|
|
28
|
+
throttleOption: 'category'
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
|
|
23
32
|
stages {
|
|
24
33
|
stage('Setup Build Environment') {
|
|
25
34
|
when {
|
|
26
|
-
anyOf { branch 'feature/*'; branch 'develop'; branch 'staging'; branch '
|
|
35
|
+
anyOf { branch 'feature/*'; branch 'develop'; branch 'staging'; branch 'main' }
|
|
27
36
|
}
|
|
28
37
|
steps {
|
|
29
38
|
script {
|
|
@@ -38,7 +47,7 @@ pipeline {
|
|
|
38
47
|
}
|
|
39
48
|
}
|
|
40
49
|
// stage('Build iOS - xcode') {
|
|
41
|
-
// when { anyOf { branch 'feature/*'; branch 'develop'; branch '
|
|
50
|
+
// when { anyOf { branch 'feature/*'; branch 'develop'; branch 'main' } }
|
|
42
51
|
// steps {
|
|
43
52
|
// echo 'Building..'
|
|
44
53
|
// script{
|
|
@@ -48,7 +57,7 @@ pipeline {
|
|
|
48
57
|
// }
|
|
49
58
|
// Issue starting simulator
|
|
50
59
|
stage('Build iOS - yarn ios') {
|
|
51
|
-
when { anyOf { branch 'feature/*'; branch 'develop'; branch '
|
|
60
|
+
when { anyOf { branch 'feature/*'; branch 'develop'; branch 'main' } }
|
|
52
61
|
steps {
|
|
53
62
|
echo 'Building..'
|
|
54
63
|
script{
|
|
@@ -63,7 +72,7 @@ pipeline {
|
|
|
63
72
|
}
|
|
64
73
|
}
|
|
65
74
|
// stage('Build Android - gradle') {
|
|
66
|
-
// when { anyOf { branch 'feature/*'; branch 'develop'; branch '
|
|
75
|
+
// when { anyOf { branch 'feature/*'; branch 'develop'; branch 'main' } }
|
|
67
76
|
// steps {
|
|
68
77
|
// echo 'Building..'
|
|
69
78
|
// // build errors need to review how to build
|
|
@@ -73,7 +82,7 @@ pipeline {
|
|
|
73
82
|
// }
|
|
74
83
|
// }
|
|
75
84
|
stage('Build Android - react native cmd') {
|
|
76
|
-
when { anyOf { branch 'feature/*'; branch 'develop'; branch '
|
|
85
|
+
when { anyOf { branch 'feature/*'; branch 'develop'; branch 'main' } }
|
|
77
86
|
steps {
|
|
78
87
|
echo 'Building..'
|
|
79
88
|
script{
|
|
@@ -89,11 +98,20 @@ pipeline {
|
|
|
89
98
|
}
|
|
90
99
|
}
|
|
91
100
|
stage('Test') {
|
|
92
|
-
when { anyOf { branch 'feature/*'; branch 'develop'; branch '
|
|
101
|
+
when { anyOf { branch 'feature/*'; branch 'develop'; branch 'main' } }
|
|
93
102
|
steps {
|
|
94
103
|
echo 'Testing..'
|
|
95
104
|
}
|
|
96
105
|
}
|
|
106
|
+
stage('Publish Feature') {
|
|
107
|
+
when { branch 'develop'}
|
|
108
|
+
steps {
|
|
109
|
+
echo 'Publish Slack Feature....'
|
|
110
|
+
script{
|
|
111
|
+
getSlackReport(false)
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
97
115
|
stage('Publish Beta') {
|
|
98
116
|
when { branch 'develop'}
|
|
99
117
|
steps {
|
|
@@ -103,36 +121,39 @@ pipeline {
|
|
|
103
121
|
if (genBuild) {
|
|
104
122
|
updateLibraryDependencies(true)
|
|
105
123
|
publishBeta()
|
|
124
|
+
getSlackReport(false)
|
|
106
125
|
}
|
|
107
126
|
}
|
|
108
127
|
}
|
|
109
128
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
post {
|
|
123
|
-
always {
|
|
124
|
-
script{
|
|
125
|
-
getSlackReport(false)
|
|
129
|
+
stage('Publish Release') {
|
|
130
|
+
when { branch 'main' }
|
|
131
|
+
steps {
|
|
132
|
+
echo 'Publish Release....'
|
|
133
|
+
script{
|
|
134
|
+
if (genBuild) {
|
|
135
|
+
updateLibraryDependencies(false)
|
|
136
|
+
publishRelease()
|
|
137
|
+
getSlackReport(true)
|
|
138
|
+
}
|
|
139
|
+
}
|
|
126
140
|
}
|
|
127
141
|
}
|
|
128
|
-
// // Clean after build
|
|
129
|
-
// success {
|
|
130
|
-
// cleanWs cleanWhenNotBuilt: false, cleanWhenFailure: false, cleanWhenUnstable: false, deleteDirs: true, disableDeferredWipeout: true, patterns: [[pattern: "**/Reports/**", type: 'EXCLUDE']]
|
|
131
|
-
// }
|
|
132
|
-
// aborted {
|
|
133
|
-
// cleanWs cleanWhenNotBuilt: false, cleanWhenFailure: false, cleanWhenUnstable: false, deleteDirs: true, disableDeferredWipeout: true, patterns: [[pattern: "**/Reports/**", type: 'EXCLUDE']]
|
|
134
|
-
// }
|
|
135
142
|
}
|
|
143
|
+
// post {
|
|
144
|
+
// // always {
|
|
145
|
+
// // script{
|
|
146
|
+
// // getSlackReport(false)
|
|
147
|
+
// // }
|
|
148
|
+
// // }
|
|
149
|
+
// // // Clean after build
|
|
150
|
+
// // success {
|
|
151
|
+
// // cleanWs cleanWhenNotBuilt: false, cleanWhenFailure: false, cleanWhenUnstable: false, deleteDirs: true, disableDeferredWipeout: true, patterns: [[pattern: "**/Reports/**", type: 'EXCLUDE']]
|
|
152
|
+
// // }
|
|
153
|
+
// // aborted {
|
|
154
|
+
// // cleanWs cleanWhenNotBuilt: false, cleanWhenFailure: false, cleanWhenUnstable: false, deleteDirs: true, disableDeferredWipeout: true, patterns: [[pattern: "**/Reports/**", type: 'EXCLUDE']]
|
|
155
|
+
// // }
|
|
156
|
+
// }
|
|
136
157
|
}
|
|
137
158
|
|
|
138
159
|
import groovy.transform.Field
|
|
@@ -209,7 +230,7 @@ def setupGlobals(sourceBranch) {
|
|
|
209
230
|
platform = "iOS Simulator,name=iPhone 16 Plus,OS=${platformLatest}"
|
|
210
231
|
|
|
211
232
|
def fText = ""
|
|
212
|
-
if (sourceBranch == "
|
|
233
|
+
if (sourceBranch == "main") {
|
|
213
234
|
fText = "Release ${name} build"
|
|
214
235
|
} else {
|
|
215
236
|
fText = "Beta ${name} build"
|
|
@@ -537,7 +558,7 @@ def checkoutRepos() {
|
|
|
537
558
|
// Review
|
|
538
559
|
}
|
|
539
560
|
|
|
540
|
-
if (env.GIT_BRANCH.contains('
|
|
561
|
+
if (env.GIT_BRANCH.contains('main')) {
|
|
541
562
|
runCMD("cd ${tempTestDir} && git clone git@github.com:go-acoustic/react-native-acoustic-connect.git -b main")
|
|
542
563
|
}
|
|
543
564
|
}
|
|
@@ -546,7 +567,7 @@ def gitPush(path, commitMsg, tagMsg, branch, commitMsg2) {
|
|
|
546
567
|
echo "Git Push for: ${path}"
|
|
547
568
|
runCMD('''cd \"''' + path + '''\" && git add . -A''')
|
|
548
569
|
runCMD('''cd \"''' + path + '''\" && git commit -a -m \"''' + commitMsg + '''\" -m \"''' + commitMsg2 + '''\"''')
|
|
549
|
-
|
|
570
|
+
|
|
550
571
|
// Tag repos
|
|
551
572
|
echo "Tag repos"
|
|
552
573
|
runCMD('''cd \"''' + path + '''\" && git tag -f \"''' + tagMsg + '''\" -m \"''' + commitMsg2 + '''\"''')
|
|
@@ -612,14 +633,16 @@ def publishRelease() {
|
|
|
612
633
|
|
|
613
634
|
// Update package-lock.json
|
|
614
635
|
def examplePackageFile = "${releaseDir}/package-lock.json"
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
636
|
+
if (fileExists(examplePackageFile)) {
|
|
637
|
+
def exampleFileContent = readFile "${examplePackageFile}"
|
|
638
|
+
Map exampleJsonContent = (Map) new JsonSlurper().parseText(exampleFileContent)
|
|
639
|
+
exampleJsonContent.put("version", currentVersion)
|
|
640
|
+
key = ''
|
|
641
|
+
exampleJsonContent.packages."$key".put("version", currentVersion)
|
|
642
|
+
def exampleJson = JsonOutput.toJson(exampleJsonContent)
|
|
643
|
+
exampleJson = JsonOutput.prettyPrint(exampleJson)
|
|
644
|
+
writeFile(file:"${examplePackageFile}", text: exampleJson)
|
|
645
|
+
}
|
|
623
646
|
|
|
624
647
|
withCredentials([string(credentialsId: 'NPMJS_TOKEN', variable: 'NPMJS_TOKEN')]) {
|
|
625
648
|
sh 'echo "//registry.npmjs.org/:_authToken=${NPMJS_TOKEN}" >> ~/.npmrc'
|
|
@@ -634,8 +657,8 @@ def publishRelease() {
|
|
|
634
657
|
echo commitDesciption
|
|
635
658
|
|
|
636
659
|
// push repos
|
|
637
|
-
// gitPush("${buildDir}", commitMsg, currentVersion, srcBranch, commitDesciption) - there are no changes.
|
|
638
660
|
gitPush("${releaseDir}", commitMsg, currentVersion, "main", commitDesciption)
|
|
661
|
+
// gitPush("${buildDir}", commitMsg, currentVersion, srcBranch, commitDesciption)
|
|
639
662
|
}
|
|
640
663
|
|
|
641
664
|
def populateSlackMessageGlobalVariables() {
|
package/latestChanges
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Connect": {
|
|
3
|
-
"AndroidVersion": "10.4.
|
|
3
|
+
"AndroidVersion": "10.4.20",
|
|
4
4
|
"AppKey": "b6c3709b7a4c479bb4b5a9fb8fec324c",
|
|
5
5
|
"KillSwitchUrl": "https://lib-us-2.brilliantcollector.com/collector/switch/b6c3709b7a4c479bb4b5a9fb8fec324c",
|
|
6
6
|
"PostMessageUrl": "https://lib-us-2.brilliantcollector.com/collector/collectorPost",
|