cordova-plugin-firebasex-firestore 1.0.0 → 1.0.2
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 +3 -0
- package/package.json +14 -1
- package/plugin.xml +1 -1
- package/scripts/ios/after_plugin_install.js +12 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
# Version 1.0.1
|
|
2
|
+
- Fix plugin metadata
|
|
3
|
+
|
|
1
4
|
# Version 1.0.0
|
|
2
5
|
- Initial release of the modular plugin.
|
|
3
6
|
- See [CHANGELOG](https://github.com/dpa99c/cordova-plugin-firebasex/blob/master/CHANGELOG.md) for the full changelog of the main plugin which includes this module as a dependency.
|
package/package.json
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cordova-plugin-firebasex-firestore",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Firestore module for cordova-plugin-firebasex",
|
|
5
5
|
"cordova": {
|
|
6
6
|
"id": "cordova-plugin-firebasex-firestore",
|
|
7
7
|
"platforms": ["android", "ios"]
|
|
8
8
|
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/dpa99c/cordova-plugin-firebasex-firestore.git"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"cordovaDependencies": {
|
|
15
|
+
"1.0.0": {
|
|
16
|
+
"cordova": ">=12",
|
|
17
|
+
"cordova-android": ">=14",
|
|
18
|
+
"cordova-ios": ">=7"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
9
22
|
"keywords": ["cordova", "firebase", "firestore"],
|
|
10
23
|
"author": "Dave Alden",
|
|
11
24
|
"license": "MIT",
|
package/plugin.xml
CHANGED
|
@@ -57,6 +57,8 @@ function resolvePluginVariables(context) {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
+
} else {
|
|
61
|
+
console.warn("[FirebasexFirestore] config.xml not found at " + configXmlPath + ". Cannot read plugin variables from config.xml.");
|
|
60
62
|
}
|
|
61
63
|
} catch (e) {
|
|
62
64
|
console.warn("[FirebasexFirestore] Could not read config.xml for plugin variables: " + e.message);
|
|
@@ -77,6 +79,8 @@ function resolvePluginVariables(context) {
|
|
|
77
79
|
}
|
|
78
80
|
});
|
|
79
81
|
}
|
|
82
|
+
} else {
|
|
83
|
+
console.warn("[FirebasexFirestore] package.json not found at " + packageJsonPath + ". Cannot read plugin variables from package.json.");
|
|
80
84
|
}
|
|
81
85
|
} catch (e) {
|
|
82
86
|
console.warn("[FirebasexFirestore] Could not read package.json for plugin variables: " + e.message);
|
|
@@ -100,11 +104,17 @@ function resolvePluginVariables(context) {
|
|
|
100
104
|
*/
|
|
101
105
|
module.exports = function(context) {
|
|
102
106
|
var pluginVariables = resolvePluginVariables(context);
|
|
103
|
-
if (!pluginVariables["IOS_FIREBASE_SDK_VERSION"])
|
|
107
|
+
if (!pluginVariables["IOS_FIREBASE_SDK_VERSION"]){
|
|
108
|
+
console.warn("[FirebasexFirestore] IOS_FIREBASE_SDK_VERSION variable not set. Skipping Podfile update for FirebaseFirestore pod version.");
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
104
111
|
|
|
105
112
|
var iosPlatformPath = path.join(context.opts.projectRoot, "platforms", "ios");
|
|
106
113
|
var podFilePath = path.join(iosPlatformPath, "Podfile");
|
|
107
|
-
if (!fs.existsSync(podFilePath))
|
|
114
|
+
if (!fs.existsSync(podFilePath)) {
|
|
115
|
+
console.warn("[FirebasexFirestore] Podfile not found at " + podFilePath + ". Cannot update FirebaseFirestore pod version.");
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
108
118
|
|
|
109
119
|
try {
|
|
110
120
|
var podFileContents = fs.readFileSync(podFilePath, "utf-8");
|