@react-native-firebase/storage 26.3.3 → 27.0.0

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/RNFBStorage.podspec +9 -4
  3. package/android/build.gradle +6 -0
  4. package/android/src/main/java/io/invertase/firebase/storage/NativeRNFBTurboStorage.java +24 -4
  5. package/android/src/main/java/io/invertase/firebase/storage/RNFBStorageTaskRegistry.kt +88 -0
  6. package/android/src/main/java/io/invertase/firebase/storage/ReactNativeFirebaseStorageTask.java +25 -46
  7. package/android/src/main/java/io/invertase/firebase/storage/StoragePendingHandle.java +30 -0
  8. package/android/src/test/java/io/invertase/firebase/storage/RNFBStorageTaskRegistryTest.java +237 -0
  9. package/android/src/test/java/io/invertase/firebase/storage/ReactNativeFirebaseStorageTaskTest.java +285 -0
  10. package/dist/module/index.js +1 -2
  11. package/dist/module/index.js.map +1 -1
  12. package/dist/module/version.js +1 -1
  13. package/dist/typescript/lib/index.d.ts +1 -1
  14. package/dist/typescript/lib/types/internal.d.ts +2 -3
  15. package/dist/typescript/lib/types/internal.d.ts.map +1 -1
  16. package/dist/typescript/lib/version.d.ts +1 -1
  17. package/ios/RNFBStorage/RNFBStorageCommon.m +17 -98
  18. package/ios/RNFBStorage/RNFBStorageErrorCodeMapper.swift +122 -0
  19. package/ios/RNFBStorage/RNFBStorageErrorSnapshotDictBuilder.swift +70 -0
  20. package/ios/RNFBStorage/RNFBStorageHelper.m +38 -13
  21. package/ios/RNFBStorage/RNFBStorageTaskRegistry.h +42 -0
  22. package/ios/RNFBStorage/RNFBStorageTaskRegistry.m +87 -0
  23. package/ios/RNFBStorage/RNFBStorageTaskRegistryStorage.swift +87 -0
  24. package/ios/RNFBStorage/RNFBStorageTaskStatusMapper.swift +57 -0
  25. package/ios/RNFBStorage.xcodeproj/project.pbxproj +26 -0
  26. package/ios/RNFBStorageUnitTests/RNFBStorageErrorCodeMapperFacadeTests.m +91 -0
  27. package/ios/RNFBStorageUnitTests/RNFBStorageErrorCodeMapperTests.swift +211 -0
  28. package/ios/RNFBStorageUnitTests/RNFBStorageErrorSnapshotDictBuilderFacadeTests.m +125 -0
  29. package/ios/RNFBStorageUnitTests/RNFBStorageTaskRegistryStorageTests.swift +154 -0
  30. package/ios/RNFBStorageUnitTests/RNFBStorageTaskRegistryTests.m +225 -0
  31. package/ios/RNFBStorageUnitTests/RNFBStorageTaskStatusMapperFacadeTests.m +52 -0
  32. package/ios/RNFBStorageUnitTests/RNFBStorageTaskStatusMapperTests.swift +58 -0
  33. package/ios/RNFBStorageUnitTests/RNFBStorageUnitTests.xcodeproj/project.pbxproj +301 -0
  34. package/ios/RNFBStorageUnitTests/RNFBStorageUnitTests.xcodeproj/xcshareddata/xcschemes/RNFBStorageUnitTests.xcscheme +69 -0
  35. package/lib/index.ts +1 -1
  36. package/lib/types/internal.ts +5 -4
  37. package/lib/version.ts +1 -1
  38. package/package.json +5 -4
@@ -0,0 +1,69 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "2600"
4
+ version = "1.7">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES">
8
+ <BuildActionEntries>
9
+ <BuildActionEntry
10
+ buildForTesting = "YES"
11
+ buildForRunning = "YES"
12
+ buildForProfiling = "NO"
13
+ buildForArchiving = "NO"
14
+ buildForAnalyzing = "YES">
15
+ <BuildableReference
16
+ BuildableIdentifier = "primary"
17
+ BlueprintIdentifier = "E70000000000000000000002"
18
+ BuildableName = "RNFBStorageUnitTests.xctest"
19
+ BlueprintName = "RNFBStorageUnitTests"
20
+ ReferencedContainer = "container:RNFBStorageUnitTests.xcodeproj">
21
+ </BuildableReference>
22
+ </BuildActionEntry>
23
+ </BuildActionEntries>
24
+ </BuildAction>
25
+ <TestAction
26
+ buildConfiguration = "Debug"
27
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
+ shouldUseLaunchSchemeArgsEnv = "YES"
30
+ codeCoverageEnabled = "YES">
31
+ <Testables>
32
+ <TestableReference
33
+ skipped = "NO">
34
+ <BuildableReference
35
+ BuildableIdentifier = "primary"
36
+ BlueprintIdentifier = "E70000000000000000000002"
37
+ BuildableName = "RNFBStorageUnitTests.xctest"
38
+ BlueprintName = "RNFBStorageUnitTests"
39
+ ReferencedContainer = "container:RNFBStorageUnitTests.xcodeproj">
40
+ </BuildableReference>
41
+ </TestableReference>
42
+ </Testables>
43
+ </TestAction>
44
+ <LaunchAction
45
+ buildConfiguration = "Debug"
46
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
48
+ launchStyle = "0"
49
+ useCustomWorkingDirectory = "NO"
50
+ ignoresPersistentStateOnLaunch = "NO"
51
+ debugDocumentVersioning = "YES"
52
+ debugServiceExtension = "internal"
53
+ allowLocationSimulation = "YES">
54
+ </LaunchAction>
55
+ <ProfileAction
56
+ buildConfiguration = "Release"
57
+ shouldUseLaunchSchemeArgsEnv = "YES"
58
+ savedToolIdentifier = ""
59
+ useCustomWorkingDirectory = "NO"
60
+ debugDocumentVersioning = "YES">
61
+ </ProfileAction>
62
+ <AnalyzeAction
63
+ buildConfiguration = "Debug">
64
+ </AnalyzeAction>
65
+ <ArchiveAction
66
+ buildConfiguration = "Release"
67
+ revealArchiveInOrganizer = "YES">
68
+ </ArchiveAction>
69
+ </Scheme>
package/lib/index.ts CHANGED
@@ -20,6 +20,7 @@ import type { FirebaseApp } from '@react-native-firebase/app';
20
20
  import {
21
21
  FirebaseModule,
22
22
  getOrCreateModularInstance,
23
+ setReactNativeModule,
23
24
  } from '@react-native-firebase/app/dist/module/internal';
24
25
  import type { ModuleConfig } from '@react-native-firebase/app/dist/module/internal';
25
26
  import type { ReactNativeFirebase } from '@react-native-firebase/app';
@@ -27,7 +28,6 @@ import Reference from './StorageReference';
27
28
  import { getGsUrlParts, getHttpUrlParts, handleStorageEvent } from './utils';
28
29
  import { version } from './version';
29
30
  import fallBackModule from './web/RNFBStorageModule';
30
- import { setReactNativeModule } from '@react-native-firebase/app/dist/module/internal/nativeModule';
31
31
  import './types/internal';
32
32
  import type {
33
33
  EmulatorMockTokenOptions,
@@ -15,7 +15,10 @@
15
15
  *
16
16
  */
17
17
 
18
- import type { ModuleConfig } from '@react-native-firebase/app/dist/module/types/internal';
18
+ import type {
19
+ ModuleConfig,
20
+ ReactNativeFirebaseEventEmitter,
21
+ } from '@react-native-firebase/app/dist/module/types/internal';
19
22
  import type {
20
23
  FirebaseStorage,
21
24
  StorageReference,
@@ -28,8 +31,6 @@ import type {
28
31
  ListResult,
29
32
  ListOptions,
30
33
  } from './storage';
31
- import type EventEmitter from 'react-native/Libraries/vendor/emitter/EventEmitter';
32
-
33
34
  /**
34
35
  * Internal Storage type with access to private properties.
35
36
  * Used internally by StorageReference and other internal classes.
@@ -37,7 +38,7 @@ import type EventEmitter from 'react-native/Libraries/vendor/emitter/EventEmitte
37
38
  export type StorageInternal = FirebaseStorage & {
38
39
  native: NativeRNFBTurboStorage;
39
40
  _customUrlOrRegion: string | null;
40
- emitter: EventEmitter;
41
+ emitter: ReactNativeFirebaseEventEmitter;
41
42
  eventNameForApp: (...args: Array<string | number>) => string;
42
43
  _config: ModuleConfig;
43
44
  /**
package/lib/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '26.3.3';
2
+ export const version = '27.0.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/storage",
3
- "version": "26.3.3",
3
+ "version": "27.0.0",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - React Native Firebase provides native integration with Cloud Storage, providing support to upload and download files directly from your device and from your Firebase Cloud Storage bucket.",
6
6
  "main": "./dist/module/index.js",
@@ -28,6 +28,7 @@
28
28
  "android:codegen": "node ../../scripts/codegen-package.mjs storage android",
29
29
  "ios:codegen": "node ../../scripts/codegen-package.mjs storage ios"
30
30
  },
31
+ "homepage": "https://rnfirebase.io",
31
32
  "repository": {
32
33
  "type": "git",
33
34
  "url": "https://github.com/invertase/react-native-firebase",
@@ -48,14 +49,14 @@
48
49
  "download"
49
50
  ],
50
51
  "peerDependencies": {
51
- "@react-native-firebase/app": "26.3.3"
52
+ "@react-native-firebase/app": "27.0.0"
52
53
  },
53
54
  "publishConfig": {
54
55
  "access": "public",
55
56
  "provenance": true
56
57
  },
57
58
  "devDependencies": {
58
- "@react-native-firebase/app": "26.3.3",
59
+ "@react-native-firebase/app": "27.0.0",
59
60
  "react-native-builder-bob": "^0.41.0"
60
61
  },
61
62
  "exports": {
@@ -88,5 +89,5 @@
88
89
  "node_modules/",
89
90
  "dist/"
90
91
  ],
91
- "gitHead": "04b90008385bf69be74f3a333d0dfea43ba32e64"
92
+ "gitHead": "0c7e942bca361f1765abaf233bf447d795718eff"
92
93
  }