@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.
@@ -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
- const newSrc = (0, generateCode_1.mergeContents)({
39
- tag: MOD_TAG,
40
- src,
41
- newSrc: "source 'https://github.com/react-native-tvos/react-native-tvos-podspecs.git'\nsource 'https://cdn.cocoapods.org/'\n",
42
- anchor: /^/,
43
- offset: 0,
44
- comment: "#",
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
- return newSrc.replace("platform :ios", "platform :tvos");
48
+ */
49
+ return src.replace("platform :ios", "platform :tvos");
47
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-tvos/config-tv",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Config plugin to reconfigure native directories for Apple TV and Android TV development if needed",
5
5
  "main": "build/withTV.js",
6
6
  "types": "build/withTV.d.ts",