react-native-candle 0.1.3 → 0.1.5
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/ReactNativeCandle.podspec +1 -1
- package/package.json +1 -1
- package/plugin/withIosDeploymentTarget.js +101 -101
|
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
|
|
|
23
23
|
]
|
|
24
24
|
|
|
25
25
|
spm_dependency(s,
|
|
26
|
-
url: "https://github.com/candlefinance/candle-swift
|
|
26
|
+
url: "https://github.com/candlefinance/candle-swift",
|
|
27
27
|
requirement: {
|
|
28
28
|
"kind": "revision",
|
|
29
29
|
"revision": "fa0db96e9a73740bbd4977160894a45c6db96f51"
|
package/package.json
CHANGED
|
@@ -109,111 +109,111 @@ fi`;
|
|
|
109
109
|
);
|
|
110
110
|
|
|
111
111
|
// reference the "props"
|
|
112
|
-
const { version, repositoryUrl, repoName, productName } = {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
};
|
|
118
|
-
// get XCRemoteSwiftPackageReference section
|
|
119
|
-
const spmReferences =
|
|
120
|
-
|
|
121
|
-
// if doesn't exist (this is our first SPM package) create empty object
|
|
122
|
-
if (!spmReferences) {
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
// generate new ID
|
|
126
|
-
const packageReferenceUUID = xcodeProject.generateUuid();
|
|
127
|
-
// add XCRemoteSwiftPackageReference section
|
|
128
|
-
xcodeProject.hash.project.objects["XCRemoteSwiftPackageReference"][
|
|
129
|
-
|
|
130
|
-
] = {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
};
|
|
112
|
+
// const { version, repositoryUrl, repoName, productName } = {
|
|
113
|
+
// repositoryUrl: "https://github.com/candlefinance/candle-swift",
|
|
114
|
+
// repoName: "candle-swift",
|
|
115
|
+
// productName: "Candle",
|
|
116
|
+
// version: "fa0db96e9a73740bbd4977160894a45c6db96f51",
|
|
117
|
+
// };
|
|
118
|
+
// // get XCRemoteSwiftPackageReference section
|
|
119
|
+
// const spmReferences =
|
|
120
|
+
// xcodeProject.hash.project.objects["XCRemoteSwiftPackageReference"];
|
|
121
|
+
// // if doesn't exist (this is our first SPM package) create empty object
|
|
122
|
+
// if (!spmReferences) {
|
|
123
|
+
// xcodeProject.hash.project.objects["XCRemoteSwiftPackageReference"] = {};
|
|
124
|
+
// }
|
|
125
|
+
// // generate new ID
|
|
126
|
+
// const packageReferenceUUID = xcodeProject.generateUuid();
|
|
127
|
+
// // add XCRemoteSwiftPackageReference section
|
|
128
|
+
// xcodeProject.hash.project.objects["XCRemoteSwiftPackageReference"][
|
|
129
|
+
// `${packageReferenceUUID} /* XCRemoteSwiftPackageReference "${repoName}" */`
|
|
130
|
+
// ] = {
|
|
131
|
+
// isa: "XCRemoteSwiftPackageReference",
|
|
132
|
+
// repositoryURL: repositoryUrl,
|
|
133
|
+
// requirement: {
|
|
134
|
+
// kind: "revision",
|
|
135
|
+
// revision: version,
|
|
136
|
+
// },
|
|
137
|
+
// };
|
|
138
138
|
|
|
139
139
|
// get XCSwiftPackageProductDependency section
|
|
140
|
-
const spmProducts =
|
|
141
|
-
|
|
142
|
-
// if doesn't exist (this is our first SPM package) create empty object
|
|
143
|
-
if (!spmProducts) {
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
// generate new ID
|
|
147
|
-
const packageUUID = xcodeProject.generateUuid();
|
|
148
|
-
// add XCSwiftPackageProductDependency section
|
|
149
|
-
xcodeProject.hash.project.objects["XCSwiftPackageProductDependency"][
|
|
150
|
-
|
|
151
|
-
] = {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
};
|
|
140
|
+
// const spmProducts =
|
|
141
|
+
// xcodeProject.hash.project.objects["XCSwiftPackageProductDependency"];
|
|
142
|
+
// // if doesn't exist (this is our first SPM package) create empty object
|
|
143
|
+
// if (!spmProducts) {
|
|
144
|
+
// xcodeProject.hash.project.objects["XCSwiftPackageProductDependency"] = {};
|
|
145
|
+
// }
|
|
146
|
+
// // generate new ID
|
|
147
|
+
// const packageUUID = xcodeProject.generateUuid();
|
|
148
|
+
// // add XCSwiftPackageProductDependency section
|
|
149
|
+
// xcodeProject.hash.project.objects["XCSwiftPackageProductDependency"][
|
|
150
|
+
// `${packageUUID} /* ${productName} */`
|
|
151
|
+
// ] = {
|
|
152
|
+
// isa: "XCSwiftPackageProductDependency",
|
|
153
|
+
// // from step before
|
|
154
|
+
// package: `${packageReferenceUUID} /* XCRemoteSwiftPackageReference "${repoName}" */`,
|
|
155
|
+
// productName: productName,
|
|
156
|
+
// };
|
|
157
157
|
|
|
158
158
|
// get main project ID
|
|
159
|
-
const projectId = Object.keys(
|
|
160
|
-
|
|
161
|
-
).at(0);
|
|
162
|
-
// create empty array for package references if it doesn't exist
|
|
163
|
-
if (
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
) {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
// add our package reference (use ID from first step)
|
|
173
|
-
xcodeProject.hash.project.objects["PBXProject"][projectId][
|
|
174
|
-
|
|
175
|
-
] = [
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
];
|
|
181
|
-
|
|
182
|
-
// generate new ID
|
|
183
|
-
const frameworkUUID = xcodeProject.generateUuid();
|
|
184
|
-
// add comment and reference to our framework in PBXBuildFile section
|
|
185
|
-
xcodeProject.hash.project.objects["PBXBuildFile"][
|
|
186
|
-
|
|
187
|
-
] = `${productName} in Frameworks`;
|
|
188
|
-
xcodeProject.hash.project.objects["PBXBuildFile"][frameworkUUID] = {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
// get first build phase
|
|
195
|
-
const buildPhaseId = Object.keys(
|
|
196
|
-
|
|
197
|
-
).at(0);
|
|
198
|
-
// create empty array for files if it doesn't exist
|
|
199
|
-
if (
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}
|
|
208
|
-
// add our framework reference (use ID from step 4)
|
|
209
|
-
xcodeProject.hash.project.objects["PBXFrameworksBuildPhase"][buildPhaseId][
|
|
210
|
-
|
|
211
|
-
] = [
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
];
|
|
159
|
+
// const projectId = Object.keys(
|
|
160
|
+
// xcodeProject.hash.project.objects["PBXProject"]
|
|
161
|
+
// ).at(0);
|
|
162
|
+
// // create empty array for package references if it doesn't exist
|
|
163
|
+
// if (
|
|
164
|
+
// !xcodeProject.hash.project.objects["PBXProject"][projectId][
|
|
165
|
+
// "packageReferences"
|
|
166
|
+
// ]
|
|
167
|
+
// ) {
|
|
168
|
+
// xcodeProject.hash.project.objects["PBXProject"][projectId][
|
|
169
|
+
// "packageReferences"
|
|
170
|
+
// ] = [];
|
|
171
|
+
// }
|
|
172
|
+
// // add our package reference (use ID from first step)
|
|
173
|
+
// xcodeProject.hash.project.objects["PBXProject"][projectId][
|
|
174
|
+
// "packageReferences"
|
|
175
|
+
// ] = [
|
|
176
|
+
// ...xcodeProject.hash.project.objects["PBXProject"][projectId][
|
|
177
|
+
// "packageReferences"
|
|
178
|
+
// ],
|
|
179
|
+
// `${packageReferenceUUID} /* XCRemoteSwiftPackageReference "${repoName}" */`,
|
|
180
|
+
// ];
|
|
181
|
+
|
|
182
|
+
// // generate new ID
|
|
183
|
+
// const frameworkUUID = xcodeProject.generateUuid();
|
|
184
|
+
// // add comment and reference to our framework in PBXBuildFile section
|
|
185
|
+
// xcodeProject.hash.project.objects["PBXBuildFile"][
|
|
186
|
+
// `${frameworkUUID}_comment`
|
|
187
|
+
// ] = `${productName} in Frameworks`;
|
|
188
|
+
// xcodeProject.hash.project.objects["PBXBuildFile"][frameworkUUID] = {
|
|
189
|
+
// isa: "PBXBuildFile",
|
|
190
|
+
// productRef: packageUUID,
|
|
191
|
+
// productRef_comment: productName,
|
|
192
|
+
// };
|
|
193
|
+
|
|
194
|
+
// // get first build phase
|
|
195
|
+
// const buildPhaseId = Object.keys(
|
|
196
|
+
// xcodeProject.hash.project.objects["PBXFrameworksBuildPhase"]
|
|
197
|
+
// ).at(0);
|
|
198
|
+
// // create empty array for files if it doesn't exist
|
|
199
|
+
// if (
|
|
200
|
+
// !xcodeProject.hash.project.objects["PBXFrameworksBuildPhase"][buildPhaseId][
|
|
201
|
+
// "files"
|
|
202
|
+
// ]
|
|
203
|
+
// ) {
|
|
204
|
+
// xcodeProject.hash.project.objects["PBXFrameworksBuildPhase"][buildPhaseId][
|
|
205
|
+
// "files"
|
|
206
|
+
// ] = [];
|
|
207
|
+
// }
|
|
208
|
+
// // add our framework reference (use ID from step 4)
|
|
209
|
+
// xcodeProject.hash.project.objects["PBXFrameworksBuildPhase"][buildPhaseId][
|
|
210
|
+
// "files"
|
|
211
|
+
// ] = [
|
|
212
|
+
// ...xcodeProject.hash.project.objects["PBXFrameworksBuildPhase"][
|
|
213
|
+
// buildPhaseId
|
|
214
|
+
// ]["files"],
|
|
215
|
+
// `${frameworkUUID} /* ${productName} in Frameworks */`,
|
|
216
|
+
// ];
|
|
217
217
|
|
|
218
218
|
return config;
|
|
219
219
|
};
|