@react-native-firebase/app-distribution 18.3.2 → 18.5.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.
- package/CHANGELOG.md +10 -0
- package/lib/index.js +2 -0
- package/lib/modular/index.d.ts +39 -0
- package/lib/modular/index.js +50 -0
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,16 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [18.5.0](https://github.com/invertase/react-native-firebase/compare/v18.4.0...v18.5.0) (2023-09-22)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @react-native-firebase/app-distribution
|
9
|
+
|
10
|
+
## [18.4.0](https://github.com/invertase/react-native-firebase/compare/v18.3.2...v18.4.0) (2023-09-11)
|
11
|
+
|
12
|
+
### Features
|
13
|
+
|
14
|
+
- **app-distribution:** Firebase V9 modular API ([#7307](https://github.com/invertase/react-native-firebase/issues/7307)) ([309fec4](https://github.com/invertase/react-native-firebase/commit/309fec4989b6736e171ebfc4d77df57e7c83a3a9))
|
15
|
+
|
6
16
|
## [18.3.2](https://github.com/invertase/react-native-firebase/compare/v18.3.1...v18.3.2) (2023-09-02)
|
7
17
|
|
8
18
|
**Note:** Version bump only for package @react-native-firebase/app-distribution
|
package/lib/index.js
CHANGED
@@ -0,0 +1,39 @@
|
|
1
|
+
import { ReactNativeFirebase } from '@react-native-firebase/app';
|
2
|
+
import { FirebaseAppDistributionTypes } from '..';
|
3
|
+
|
4
|
+
export type FirebaseAppDistribution = FirebaseAppDistributionTypes.Module;
|
5
|
+
|
6
|
+
/**
|
7
|
+
* Get an App Distribution instance for the specified app or current app.
|
8
|
+
*/
|
9
|
+
export declare function getAppDistribution(
|
10
|
+
app?: ReactNativeFirebase.FirebaseApp,
|
11
|
+
): FirebaseAppDistribution;
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Returns true if the App Distribution tester is signed in.
|
15
|
+
* If not an iOS device, it always rejects, as neither false nor true seem like a sensible default.
|
16
|
+
*/
|
17
|
+
export declare function isTesterSignedIn(
|
18
|
+
appDistribution: FirebaseAppDistribution,
|
19
|
+
): Promise<boolean>;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Sign-in the App Distribution tester
|
23
|
+
* If not an iOS device, it always rejects, as no defaults seem sensible.
|
24
|
+
*/
|
25
|
+
export declare function signInTester(appDistribution: FirebaseAppDistribution): Promise<void>;
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Check to see whether a new distribution is available
|
29
|
+
* If not an iOS device, it always rejects, as no default response seems sensible.
|
30
|
+
*/
|
31
|
+
export declare function checkForUpdate(
|
32
|
+
appDistribution: FirebaseAppDistribution,
|
33
|
+
): Promise<FirebaseAppDistributionTypes.AppDistributionRelease>;
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Sign out App Distribution tester
|
37
|
+
* If not an iOS device, it always rejects, as no default response seems sensible.
|
38
|
+
*/
|
39
|
+
export declare function signOutTester(appDistribution: FirebaseAppDistribution): Promise<void>;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { firebase } from '..';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @typedef {import("..").FirebaseApp} FirebaseApp
|
5
|
+
* @typedef {import("..").FirebaseAppDistributionTypes.AppDistributionRelease} AppDistributionRelease
|
6
|
+
* @typedef {import("..").FirebaseAppDistributionTypes.Module} FirebaseAppDistribution
|
7
|
+
*/
|
8
|
+
|
9
|
+
/**
|
10
|
+
* @param {FirebaseApp | undefined} app
|
11
|
+
* @returns {FirebaseAppDistribution}
|
12
|
+
*/
|
13
|
+
export function getAppDistribution(app) {
|
14
|
+
if (app) {
|
15
|
+
return firebase.appDistribution(app);
|
16
|
+
}
|
17
|
+
return firebase.appDistribution();
|
18
|
+
}
|
19
|
+
|
20
|
+
/**
|
21
|
+
* @param {FirebaseAppDistribution} appDistribution
|
22
|
+
* @returns {Promise<boolean>}
|
23
|
+
*/
|
24
|
+
export function isTesterSignedIn(appDistribution) {
|
25
|
+
return appDistribution.isTesterSignedIn();
|
26
|
+
}
|
27
|
+
|
28
|
+
/**
|
29
|
+
* @param {FirebaseAppDistribution} appDistribution
|
30
|
+
* @returns {Promise<void>}
|
31
|
+
*/
|
32
|
+
export function signInTester(appDistribution) {
|
33
|
+
return appDistribution.signInTester();
|
34
|
+
}
|
35
|
+
|
36
|
+
/**
|
37
|
+
* @param {FirebaseAppDistribution} appDistribution
|
38
|
+
* @returns {AppDistributionRelease>}
|
39
|
+
*/
|
40
|
+
export function checkForUpdate(appDistribution) {
|
41
|
+
return appDistribution.checkForUpdate();
|
42
|
+
}
|
43
|
+
|
44
|
+
/**
|
45
|
+
* @param {FirebaseAppDistribution} appDistribution
|
46
|
+
* @returns {Promise<void>}
|
47
|
+
*/
|
48
|
+
export function signOutTester(appDistribution) {
|
49
|
+
return appDistribution.signOutTester();
|
50
|
+
}
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '18.
|
2
|
+
module.exports = '18.5.0';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/app-distribution",
|
3
|
-
"version": "18.
|
3
|
+
"version": "18.5.0",
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
5
5
|
"description": "React Native Firebase - App Distribution",
|
6
6
|
"main": "lib/index.js",
|
@@ -22,10 +22,10 @@
|
|
22
22
|
"app-distribution"
|
23
23
|
],
|
24
24
|
"peerDependencies": {
|
25
|
-
"@react-native-firebase/app": "18.
|
25
|
+
"@react-native-firebase/app": "18.5.0"
|
26
26
|
},
|
27
27
|
"publishConfig": {
|
28
28
|
"access": "public"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "c9b695aa8fd75d5a1d070ecbb6bb9ac4e9ff062e"
|
31
31
|
}
|