react-native-acoustic-connect-beta 16.0.27 → 16.0.28
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 +61 -0
- package/android/src/main/assets/ConnectAdvancedConfig.json +3 -0
- package/android/src/main/assets/EOCoreAdvancedConfig.json +1509 -0
- package/android/src/main/assets/EOCoreBasicConfig.properties +29 -0
- package/android/src/main/assets/TealeafAdvancedConfig.json +42 -0
- package/android/src/main/assets/TealeafBasicConfig.properties +76 -0
- package/android/src/main/assets/TealeafLayoutConfig.json +74 -0
- package/latestChanges +1 -0
- package/package.json +1 -1
- package/scripts/ConnectConfig.json +98 -90
|
@@ -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.28",
|
|
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
|
@@ -101,6 +101,7 @@ pipeline {
|
|
|
101
101
|
script{
|
|
102
102
|
echo "genBuild:${genBuild}"
|
|
103
103
|
if (genBuild) {
|
|
104
|
+
updateLibraryDependencies(true)
|
|
104
105
|
publishBeta()
|
|
105
106
|
}
|
|
106
107
|
}
|
|
@@ -443,6 +444,66 @@ def updateLibVersion() {
|
|
|
443
444
|
echo "${updatedExamplePackageFile}"
|
|
444
445
|
}
|
|
445
446
|
|
|
447
|
+
def updateLibraryDependencies(isBeta) {
|
|
448
|
+
def androidConnectLatest = getAndroidLatestVersion(isBeta, "connect")
|
|
449
|
+
def androidTealeafLatest = getAndroidLatestVersion(isBeta, "tealeaf")
|
|
450
|
+
def androidEOCoreLatest = getAndroidLatestVersion(isBeta, "eocore")
|
|
451
|
+
|
|
452
|
+
downloadAndroidLatestVersion(isBeta, "connect", androidConnectLatest)
|
|
453
|
+
downloadAndroidLatestVersion(isBeta, "tealeaf", androidTealeafLatest)
|
|
454
|
+
downloadAndroidLatestVersion(isBeta, "eocore", androidEOCoreLatest)
|
|
455
|
+
|
|
456
|
+
runCMD("cd ${buildDir} && unzip tempconnect.zip -d tempconnect")
|
|
457
|
+
runCMD("cd ${buildDir} && unzip temptealeaf.zip -d temptealeaf")
|
|
458
|
+
runCMD("cd ${buildDir} && unzip tempeocore.zip -d tempeocore")
|
|
459
|
+
|
|
460
|
+
// update asset files
|
|
461
|
+
runCMD("cd ${buildDir} && cp -fr tempconnect/assets/ConnectAdvancedConfig.json android/src/main/assets/ConnectAdvancedConfig.json")
|
|
462
|
+
runCMD("cd ${buildDir} && cp -fr temptealeaf/assets/TealeafBasicConfig.properties android/src/main/assets/TealeafBasicConfig.properties")
|
|
463
|
+
runCMD("cd ${buildDir} && cp -fr temptealeaf/assets/TealeafLayoutConfig.json android/src/main/assets/TealeafLayoutConfig.json")
|
|
464
|
+
runCMD("cd ${buildDir} && cp -fr temptealeaf/assets/TealeafAdvancedConfig.json android/src/main/assets/TealeafAdvancedConfig.json")
|
|
465
|
+
runCMD("cd ${buildDir} && cp -fr tempeocore/assets/EOCoreBasicConfig.properties android/src/main/assets/EOCoreBasicConfig.properties")
|
|
466
|
+
runCMD("cd ${buildDir} && cp -fr tempeocore/assets/EOCoreAdvancedConfig.json android/src/main/assets/EOCoreAdvancedConfig.json")
|
|
467
|
+
|
|
468
|
+
// delete temp files
|
|
469
|
+
runCMD("cd ${buildDir} && rm tempconnect.zip")
|
|
470
|
+
runCMD("cd ${buildDir} && rm temptealeaf.zip")
|
|
471
|
+
runCMD("cd ${buildDir} && rm tempeocore.zip")
|
|
472
|
+
runCMD("cd ${buildDir} && rm -rf tempconnect")
|
|
473
|
+
runCMD("cd ${buildDir} && rm -rf temptealeaf")
|
|
474
|
+
runCMD("cd ${buildDir} && rm -rf tempeocore")
|
|
475
|
+
|
|
476
|
+
// update library version
|
|
477
|
+
def configPath = "${buildDir}/scripts/ConnectConfig.json"
|
|
478
|
+
def configContent = readFile "${configPath}"
|
|
479
|
+
Map jsonContent = (Map) new JsonSlurper().parseText(configContent)
|
|
480
|
+
jsonContent.Connect.put("AndroidVersion", androidConnectLatest)
|
|
481
|
+
//convert maps/arrays to json formatted string
|
|
482
|
+
def json = JsonOutput.toJson(jsonContent)
|
|
483
|
+
json = JsonOutput.prettyPrint(json)
|
|
484
|
+
writeFile(file:"${configPath}", text: json)
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
def getAndroidLatestVersion(isBeta, libName) {
|
|
488
|
+
def mavenLocation = "staging"
|
|
489
|
+
if (!isBeta) {
|
|
490
|
+
mavenLocation = "releases"
|
|
491
|
+
}
|
|
492
|
+
def mavenUrl = "https://s01.oss.sonatype.org/content/repositories/${mavenLocation}/io/github/go-acoustic/${libName}/maven-metadata.xml"
|
|
493
|
+
return runCMD("curl ${mavenUrl} | grep '<latest>.*</latest>' | cut -d '>' -f2 | cut -d '<' -f1")
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
def downloadAndroidLatestVersion(isBeta, libName, libVersion) {
|
|
497
|
+
def mavenLocation = "staging"
|
|
498
|
+
if (!isBeta) {
|
|
499
|
+
mavenLocation = "releases"
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
def mavenUrl = "https://s01.oss.sonatype.org/content/repositories/${mavenLocation}/io/github/go-acoustic/${libName}/${libVersion}/${libName}-${libVersion}.aar"
|
|
503
|
+
// Download files
|
|
504
|
+
runCMD("cd ${buildDir} && curl ${mavenUrl} --output temp${libName}.zip")
|
|
505
|
+
}
|
|
506
|
+
|
|
446
507
|
def runCMD(commnd) {
|
|
447
508
|
echo "${commnd}"
|
|
448
509
|
OUUUTTPT = sh (
|