|
@@ -135,6 +135,19 @@ function pathForAppGroup(groupName: string): Promise {
|
135
|
135
|
return RNFetchBlob.pathForAppGroup(groupName)
|
136
|
136
|
}
|
137
|
137
|
|
|
138
|
+/**
|
|
139
|
+ * Returns the path for the app group synchronous.
|
|
140
|
+ * @param {string} groupName Name of app group
|
|
141
|
+ * @return {string} Path of App Group dir
|
|
142
|
+ */
|
|
143
|
+function syncPathAppGroup(groupName: string): string {
|
|
144
|
+ if (Platform.OS === 'ios') {
|
|
145
|
+ return RNFetchBlob.syncPathAppGroup(groupName);
|
|
146
|
+ } else {
|
|
147
|
+ return '';
|
|
148
|
+ }
|
|
149
|
+}
|
|
150
|
+
|
138
|
151
|
/**
|
139
|
152
|
* Wrapper method of readStream.
|
140
|
153
|
* @param {string} path Path of the file.
|
|
@@ -402,6 +415,7 @@ export default {
|
402
|
415
|
writeFile,
|
403
|
416
|
appendFile,
|
404
|
417
|
pathForAppGroup,
|
|
418
|
+ syncPathAppGroup,
|
405
|
419
|
readFile,
|
406
|
420
|
hash,
|
407
|
421
|
exists,
|