react-native-acoustic-connect-beta 19.1.14 → 19.1.15
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/CHANGELOG.md +9 -0
- package/android/src/main/assets/ConnectBasicConfig.properties +1 -1
- package/package.json +1 -1
- package/plugin/build/withConnectPodSources.d.ts +3 -2
- package/plugin/build/withConnectPodSources.d.ts.map +1 -1
- package/plugin/build/withConnectPodSources.js +9 -4
- package/plugin/build/withConnectPodSources.js.map +1 -1
- package/plugin/src/withConnectPodSources.ts +11 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 19.1.15 (2026-10-26)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* CA-159219 only count an active PodSpecs source line ([#134](https://github.com/aipoweredmarketer/react-native-acoustic-connect-beta/issues/134)) ([9f28890](https://github.com/aipoweredmarketer/react-native-acoustic-connect-beta/commit/9f2889027e318f01d08f56723ac0ff6d0049f00b)), closes [cordova-acoustic-connect#64](https://github.com/aipoweredmarketer/cordova-acoustic-connect/issues/64) [#123](https://github.com/aipoweredmarketer/react-native-acoustic-connect-beta/issues/123)
|
|
6
|
+
|
|
7
|
+
### Reverts
|
|
8
|
+
|
|
9
|
+
* Revert "Beta ReactNativeConnect build: 18.0.36" ([609ad7d](https://github.com/aipoweredmarketer/react-native-acoustic-connect-beta/commit/609ad7d3244ec06f27dced5864d40585c5b3c9cf))
|
|
1
10
|
## 19.1.14 (2026-10-26)
|
|
2
11
|
|
|
3
12
|
### Reverts
|
package/package.json
CHANGED
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
"source": "src/index",
|
|
229
229
|
"summary": "react-native ios android tealeaf connect cxa wxca er enhanced-replay",
|
|
230
230
|
"types": "./lib/typescript/src/index.d.ts",
|
|
231
|
-
"version": "19.1.
|
|
231
|
+
"version": "19.1.15",
|
|
232
232
|
"workspaces": [
|
|
233
233
|
"example",
|
|
234
234
|
"Examples/bare-workflow"
|
|
@@ -12,8 +12,9 @@ export declare const CDN_SOURCE = "source 'https://cdn.cocoapods.org/'";
|
|
|
12
12
|
* the CDN is added as well: declaring any source disables CocoaPods' implicit
|
|
13
13
|
* CDN default, and every other pod would stop resolving.
|
|
14
14
|
*
|
|
15
|
-
* Idempotent: a Podfile
|
|
16
|
-
* whether this mod or the
|
|
15
|
+
* Idempotent: a Podfile with an active PodSpecs line, in either quote style
|
|
16
|
+
* and with or without `.git`, is returned unchanged, whether this mod or the
|
|
17
|
+
* developer added it. A commented-out PodSpecs line does not count.
|
|
17
18
|
*/
|
|
18
19
|
export declare function injectPodSources(podfileContent: string): string;
|
|
19
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withConnectPodSources.d.ts","sourceRoot":"","sources":["../src/withConnectPodSources.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,sBAAsB,CAAA;AAQ1E,eAAO,MAAM,eAAe,yDAC4B,CAAA;AACxD,eAAO,MAAM,UAAU,wCAAwC,CAAA;
|
|
1
|
+
{"version":3,"file":"withConnectPodSources.d.ts","sourceRoot":"","sources":["../src/withConnectPodSources.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,sBAAsB,CAAA;AAQ1E,eAAO,MAAM,eAAe,yDAC4B,CAAA;AACxD,eAAO,MAAM,UAAU,wCAAwC,CAAA;AAW/D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAU/D;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,OAAO,CAkBpD,CAAA"}
|
|
@@ -41,6 +41,10 @@ const path = __importStar(require("path"));
|
|
|
41
41
|
exports.PODSPECS_SOURCE = "source 'https://github.com/go-acoustic/PodSpecs.git'";
|
|
42
42
|
exports.CDN_SOURCE = "source 'https://cdn.cocoapods.org/'";
|
|
43
43
|
const MARKER = '# @generated CocoaPods sources (react-native-acoustic-connect-beta)';
|
|
44
|
+
// Only active lines count: a commented-out source names nothing. Either quote
|
|
45
|
+
// style, with or without .git.
|
|
46
|
+
const PODSPECS_LINE = /^[ \t]*source[ \t]+(['"])https:\/\/github\.com\/go-acoustic\/PodSpecs(?:\.git)?\1/m;
|
|
47
|
+
const ANY_SOURCE_LINE = /^[ \t]*source[ \t]+['"]/m;
|
|
44
48
|
/**
|
|
45
49
|
* Puts the PodSpecs source at the top of `podfileContent`.
|
|
46
50
|
*
|
|
@@ -52,14 +56,15 @@ const MARKER = '# @generated CocoaPods sources (react-native-acoustic-connect-be
|
|
|
52
56
|
* the CDN is added as well: declaring any source disables CocoaPods' implicit
|
|
53
57
|
* CDN default, and every other pod would stop resolving.
|
|
54
58
|
*
|
|
55
|
-
* Idempotent: a Podfile
|
|
56
|
-
* whether this mod or the
|
|
59
|
+
* Idempotent: a Podfile with an active PodSpecs line, in either quote style
|
|
60
|
+
* and with or without `.git`, is returned unchanged, whether this mod or the
|
|
61
|
+
* developer added it. A commented-out PodSpecs line does not count.
|
|
57
62
|
*/
|
|
58
63
|
function injectPodSources(podfileContent) {
|
|
59
|
-
if (
|
|
64
|
+
if (PODSPECS_LINE.test(podfileContent)) {
|
|
60
65
|
return podfileContent;
|
|
61
66
|
}
|
|
62
|
-
const declaresSources =
|
|
67
|
+
const declaresSources = ANY_SOURCE_LINE.test(podfileContent);
|
|
63
68
|
const lines = [MARKER, exports.PODSPECS_SOURCE];
|
|
64
69
|
if (!declaresSources) {
|
|
65
70
|
lines.push(exports.CDN_SOURCE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withConnectPodSources.js","sourceRoot":"","sources":["../src/withConnectPodSources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAyD;AACzD,EAAE;AACF,8EAA8E;AAC9E,0EAA0E;AAC1E,6EA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OAAO,cAAc,EAAE,CAAA;AACnD,CAAC;AAVD,4CAUC;AAED;;;;GAIG;AACI,MAAM,qBAAqB,GAA0B,CAAC,MAAM,EAAE,EAAE,CACrE,IAAA,iCAAgB,EAAC,MAAM,EAAE;IACvB,KAAK;IACL,KAAK,EAAE,CAAC,EAAE,EAAE;QACV,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAA;QAC1E,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;YAC/B,MAAM,IAAI,KAAK,CACb,iEAAiE,WAAW,IAAI;gBAC9E,oFAAoF,CACvF,CAAA;SACF;QACD,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;QACpD,MAAM,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAA;QACzC,IAAI,OAAO,KAAK,OAAO,EAAE;YACvB,EAAE,CAAC,aAAa,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;SAC/C;QACD,OAAO,CAAC,CAAA;IACV,CAAC;CACF,CAAC,CAAA;AAlBS,QAAA,qBAAqB,yBAkB9B"}
|
|
@@ -20,6 +20,12 @@ export const CDN_SOURCE = "source 'https://cdn.cocoapods.org/'"
|
|
|
20
20
|
const MARKER =
|
|
21
21
|
'# @generated CocoaPods sources (react-native-acoustic-connect-beta)'
|
|
22
22
|
|
|
23
|
+
// Only active lines count: a commented-out source names nothing. Either quote
|
|
24
|
+
// style, with or without .git.
|
|
25
|
+
const PODSPECS_LINE =
|
|
26
|
+
/^[ \t]*source[ \t]+(['"])https:\/\/github\.com\/go-acoustic\/PodSpecs(?:\.git)?\1/m
|
|
27
|
+
const ANY_SOURCE_LINE = /^[ \t]*source[ \t]+['"]/m
|
|
28
|
+
|
|
23
29
|
/**
|
|
24
30
|
* Puts the PodSpecs source at the top of `podfileContent`.
|
|
25
31
|
*
|
|
@@ -31,14 +37,15 @@ const MARKER =
|
|
|
31
37
|
* the CDN is added as well: declaring any source disables CocoaPods' implicit
|
|
32
38
|
* CDN default, and every other pod would stop resolving.
|
|
33
39
|
*
|
|
34
|
-
* Idempotent: a Podfile
|
|
35
|
-
* whether this mod or the
|
|
40
|
+
* Idempotent: a Podfile with an active PodSpecs line, in either quote style
|
|
41
|
+
* and with or without `.git`, is returned unchanged, whether this mod or the
|
|
42
|
+
* developer added it. A commented-out PodSpecs line does not count.
|
|
36
43
|
*/
|
|
37
44
|
export function injectPodSources(podfileContent: string): string {
|
|
38
|
-
if (
|
|
45
|
+
if (PODSPECS_LINE.test(podfileContent)) {
|
|
39
46
|
return podfileContent
|
|
40
47
|
}
|
|
41
|
-
const declaresSources =
|
|
48
|
+
const declaresSources = ANY_SOURCE_LINE.test(podfileContent)
|
|
42
49
|
const lines = [MARKER, PODSPECS_SOURCE]
|
|
43
50
|
if (!declaresSources) {
|
|
44
51
|
lines.push(CDN_SOURCE)
|