@react-native-tvos/config-tv 0.1.3 → 0.1.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/build/withTVPodfile.js +13 -10
- package/package.json +1 -1
package/build/withTVPodfile.js
CHANGED
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.withTVPodfile = void 0;
|
|
7
7
|
exports.addTVPodfileModifications = addTVPodfileModifications;
|
|
8
|
-
const generateCode_1 = require("@expo/config-plugins/build/utils/generateCode");
|
|
9
8
|
const config_plugins_1 = require("expo/config-plugins");
|
|
10
9
|
const fs_1 = require("fs");
|
|
11
10
|
const path_1 = __importDefault(require("path"));
|
|
@@ -30,18 +29,22 @@ const withTVPodfile = (c, params = {}) => {
|
|
|
30
29
|
]);
|
|
31
30
|
};
|
|
32
31
|
exports.withTVPodfile = withTVPodfile;
|
|
33
|
-
const MOD_TAG = "react-native-tvos-import";
|
|
32
|
+
// const MOD_TAG = "react-native-tvos-import";
|
|
34
33
|
function addTVPodfileModifications(src) {
|
|
35
34
|
if (src.indexOf("platform :tvos") !== -1) {
|
|
36
35
|
return src;
|
|
37
36
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
// We no longer need the custom podspecs source
|
|
38
|
+
/*
|
|
39
|
+
const newSrc = mergeContents({
|
|
40
|
+
tag: MOD_TAG,
|
|
41
|
+
src,
|
|
42
|
+
newSrc:
|
|
43
|
+
"source 'https://github.com/react-native-tvos/react-native-tvos-podspecs.git'\nsource 'https://cdn.cocoapods.org/'\n",
|
|
44
|
+
anchor: /^/,
|
|
45
|
+
offset: 0,
|
|
46
|
+
comment: "#",
|
|
45
47
|
}).contents;
|
|
46
|
-
|
|
48
|
+
*/
|
|
49
|
+
return src.replace("platform :ios", "platform :tvos");
|
|
47
50
|
}
|
package/package.json
CHANGED