@react-native-firebase/app-distribution 24.1.1 → 25.0.1

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 (48) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/android/build.gradle +2 -2
  3. package/dist/module/index.js +23 -0
  4. package/dist/module/index.js.map +1 -0
  5. package/dist/module/modular.js +43 -0
  6. package/dist/module/modular.js.map +1 -0
  7. package/{lib/index.js → dist/module/namespaced.js} +16 -31
  8. package/dist/module/namespaced.js.map +1 -0
  9. package/dist/module/package.json +1 -0
  10. package/dist/module/types/app-distribution.js +4 -0
  11. package/dist/module/types/app-distribution.js.map +1 -0
  12. package/dist/module/types/internal.js +4 -0
  13. package/dist/module/types/internal.js.map +1 -0
  14. package/dist/module/types/namespaced.js +10 -0
  15. package/dist/module/types/namespaced.js.map +1 -0
  16. package/dist/module/version.js +5 -0
  17. package/dist/module/version.js.map +1 -0
  18. package/dist/typescript/lib/index.d.ts +6 -0
  19. package/dist/typescript/lib/index.d.ts.map +1 -0
  20. package/dist/typescript/lib/modular.d.ts +9 -0
  21. package/dist/typescript/lib/modular.d.ts.map +1 -0
  22. package/dist/typescript/lib/namespaced.d.ts +7 -0
  23. package/dist/typescript/lib/namespaced.d.ts.map +1 -0
  24. package/dist/typescript/lib/types/app-distribution.d.ts +16 -0
  25. package/dist/typescript/lib/types/app-distribution.d.ts.map +1 -0
  26. package/dist/typescript/lib/types/internal.d.ts +23 -0
  27. package/dist/typescript/lib/types/internal.d.ts.map +1 -0
  28. package/dist/typescript/lib/types/namespaced.d.ts +55 -0
  29. package/dist/typescript/lib/types/namespaced.d.ts.map +1 -0
  30. package/dist/typescript/lib/version.d.ts +2 -0
  31. package/dist/typescript/lib/version.d.ts.map +1 -0
  32. package/dist/typescript/package.json +1 -0
  33. package/lib/index.ts +23 -0
  34. package/lib/modular.ts +54 -0
  35. package/lib/namespaced.ts +103 -0
  36. package/lib/types/app-distribution.ts +17 -0
  37. package/lib/types/internal.ts +27 -0
  38. package/lib/types/namespaced.ts +64 -0
  39. package/lib/version.ts +2 -0
  40. package/package.json +41 -8
  41. package/plugin/tsconfig.json +2 -1
  42. package/plugin/tsconfig.tsbuildinfo +1 -1
  43. package/tsconfig.json +16 -0
  44. package/typedoc.json +1 -5
  45. package/lib/index.d.ts +0 -165
  46. package/lib/modular/index.d.ts +0 -39
  47. package/lib/modular/index.js +0 -50
  48. package/lib/version.js +0 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
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
+ ## [25.0.1](https://github.com/invertase/react-native-firebase/compare/v25.0.0...v25.0.1) (2026-06-23)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/app-distribution
9
+
10
+ ## [25.0.0](https://github.com/invertase/react-native-firebase/compare/v24.0.0...v25.0.0) (2026-06-23)
11
+
12
+ ### ⚠ BREAKING CHANGES
13
+
14
+ - **sdks:** firebase-ios-sdk 12.12.0+ requires Xcode 26.2+
15
+
16
+ ### Bug Fixes
17
+
18
+ - **sdks:** firebase-ios-sdk (requires Xcode 26.2+), firebase-android-sdk 34.12.0, firebase-js-sdk 12.12.0 ([c8c1fc1](https://github.com/invertase/react-native-firebase/commit/c8c1fc105f8e67914eea2f40ef727bc5a463fa40))
19
+
6
20
  ## [24.1.1](https://github.com/invertase/react-native-firebase/compare/v24.1.0...v24.1.1) (2026-06-10)
7
21
 
8
22
  **Note:** Version bump only for package @react-native-firebase/app-distribution
@@ -94,11 +94,11 @@ dependencies {
94
94
  api appProject
95
95
  implementation platform("com.google.firebase:firebase-bom:${ReactNative.ext.getVersion("firebase", "bom")}")
96
96
  // TODO remove the specific version once it is out of beta and participates in bom versioning
97
- implementation 'com.google.firebase:firebase-appdistribution-api:16.0.0-beta19'
97
+ implementation 'com.google.firebase:firebase-appdistribution-api:16.0.0-beta20'
98
98
  // TODO demonstrate how to only include this in certain build variants
99
99
  // - perhaps have firebase.json name the variants to include, then roll through variants here and only
100
100
  // add the dependency to variants that match? Or... (PRs welcome...)
101
- // implementation 'com.google.firebase:firebase-appdistribution:16.0.0-beta19'
101
+ // implementation 'com.google.firebase:firebase-appdistribution:16.0.0-beta20'
102
102
  }
103
103
 
104
104
  ReactNative.shared.applyPackageVersion()
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this library except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ export * from "./modular.js";
21
+ export * from "./namespaced.js";
22
+ export { default } from "./namespaced.js";
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["default"],"sourceRoot":"../../lib","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA,cAAc,cAAW;AACzB,cAAc,iBAAc;AAC5B,SAASA,OAAO,QAAQ,iBAAc","ignoreList":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this library except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ import { getApp } from '@react-native-firebase/app';
21
+ import { MODULAR_DEPRECATION_ARG } from '@react-native-firebase/app/dist/module/common';
22
+ function ap(appDistribution) {
23
+ return appDistribution;
24
+ }
25
+ export function getAppDistribution(app) {
26
+ if (app) {
27
+ return getApp(app.name).appDistribution();
28
+ }
29
+ return getApp().appDistribution();
30
+ }
31
+ export function isTesterSignedIn(appDistribution) {
32
+ return ap(appDistribution).isTesterSignedIn.call(appDistribution, MODULAR_DEPRECATION_ARG);
33
+ }
34
+ export function signInTester(appDistribution) {
35
+ return ap(appDistribution).signInTester.call(appDistribution, MODULAR_DEPRECATION_ARG);
36
+ }
37
+ export function checkForUpdate(appDistribution) {
38
+ return ap(appDistribution).checkForUpdate.call(appDistribution, MODULAR_DEPRECATION_ARG);
39
+ }
40
+ export function signOutTester(appDistribution) {
41
+ return ap(appDistribution).signOutTester.call(appDistribution, MODULAR_DEPRECATION_ARG);
42
+ }
43
+ //# sourceMappingURL=modular.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getApp","MODULAR_DEPRECATION_ARG","ap","appDistribution","getAppDistribution","app","name","isTesterSignedIn","call","signInTester","checkForUpdate","signOutTester"],"sourceRoot":"../../lib","sources":["modular.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,4BAA4B;AAEnD,SAASC,uBAAuB,QAAQ,+CAA+C;AAMvF,SAASC,EAAEA,CAACC,eAAwC,EAAqC;EACvF,OAAOA,eAAe;AACxB;AAEA,OAAO,SAASC,kBAAkBA,CAACC,GAAqC,EAA2B;EACjG,IAAIA,GAAG,EAAE;IACP,OAAOL,MAAM,CAACK,GAAG,CAACC,IAAI,CAAC,CAACH,eAAe,CAAC,CAAC;EAC3C;EAEA,OAAOH,MAAM,CAAC,CAAC,CAACG,eAAe,CAAC,CAAC;AACnC;AAEA,OAAO,SAASI,gBAAgBA,CAACJ,eAAwC,EAAoB;EAC3F,OAAOD,EAAE,CAACC,eAAe,CAAC,CAACI,gBAAgB,CAACC,IAAI,CAACL,eAAe,EAAEF,uBAAuB,CAAC;AAC5F;AAEA,OAAO,SAASQ,YAAYA,CAACN,eAAwC,EAAiB;EACpF,OAAOD,EAAE,CAACC,eAAe,CAAC,CAACM,YAAY,CAACD,IAAI,CAACL,eAAe,EAAEF,uBAAuB,CAAC;AACxF;AAEA,OAAO,SAASS,cAAcA,CAC5BP,eAAwC,EACP;EACjC,OAAOD,EAAE,CAACC,eAAe,CAAC,CAACO,cAAc,CAACF,IAAI,CAACL,eAAe,EAAEF,uBAAuB,CAAC;AAC1F;AAEA,OAAO,SAASU,aAAaA,CAACR,eAAwC,EAAiB;EACrF,OAAOD,EAAE,CAACC,eAAe,CAAC,CAACQ,aAAa,CAACH,IAAI,CAACL,eAAe,EAAEF,uBAAuB,CAAC;AACzF","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  /*
2
4
  * Copyright (c) 2016-present Invertase Limited & Contributors
3
5
  *
@@ -16,62 +18,43 @@
16
18
  */
17
19
 
18
20
  import { isIOS } from '@react-native-firebase/app/dist/module/common';
19
- import {
20
- createModuleNamespace,
21
- FirebaseModule,
22
- getFirebaseRoot,
23
- } from '@react-native-firebase/app/dist/module/internal';
24
-
25
- import version from './version';
26
-
21
+ import { createModuleNamespace, FirebaseModule, getFirebaseRoot } from '@react-native-firebase/app/dist/module/internal';
22
+ import { Platform } from 'react-native';
23
+ import { version } from "./version.js";
27
24
  const statics = {};
28
-
29
25
  const namespace = 'appDistribution';
30
-
31
26
  const nativeModuleName = 'RNFBAppDistributionModule';
32
-
27
+ function rejectUnsupportedPlatform() {
28
+ return Promise.reject(new Error(`App Distribution is not supported on the ${Platform.OS} platform.`));
29
+ }
33
30
  class FirebaseAppDistributionModule extends FirebaseModule {
34
31
  isTesterSignedIn() {
35
32
  if (isIOS) {
36
33
  return this.native.isTesterSignedIn();
37
34
  }
38
-
39
- Promise.reject(new Error('App Distribution is not supported on this platform.'));
35
+ return rejectUnsupportedPlatform();
40
36
  }
41
-
42
37
  signInTester() {
43
38
  if (isIOS) {
44
39
  return this.native.signInTester();
45
40
  }
46
-
47
- Promise.reject(new Error('App Distribution is not supported on this platform.'));
41
+ return rejectUnsupportedPlatform();
48
42
  }
49
-
50
43
  checkForUpdate() {
51
44
  if (isIOS) {
52
45
  return this.native.checkForUpdate();
53
46
  }
54
-
55
- Promise.reject(new Error('App Distribution is not supported on this platform.'));
47
+ return rejectUnsupportedPlatform();
56
48
  }
57
-
58
49
  signOutTester() {
59
50
  if (isIOS) {
60
51
  return this.native.signOutTester();
61
52
  }
62
-
63
- Promise.reject(new Error('App Distribution is not supported on this platform.'));
53
+ return rejectUnsupportedPlatform();
64
54
  }
65
55
  }
66
-
67
- export * from './modular';
68
-
69
- // import { SDK_VERSION } from '@react-native-firebase/app-distribution';
70
56
  export const SDK_VERSION = version;
71
-
72
- // import appDistribution from '@react-native-firebase/app-distribution';
73
- // appDistribution().X(...);
74
- export default createModuleNamespace({
57
+ const appDistributionNamespace = createModuleNamespace({
75
58
  statics,
76
59
  version,
77
60
  namespace,
@@ -79,10 +62,12 @@ export default createModuleNamespace({
79
62
  nativeEvents: false,
80
63
  hasMultiAppSupport: false,
81
64
  hasCustomUrlOrRegionSupport: false,
82
- ModuleClass: FirebaseAppDistributionModule,
65
+ ModuleClass: FirebaseAppDistributionModule
83
66
  });
67
+ export default appDistributionNamespace;
84
68
 
85
69
  // import appDistribution, { firebase } from '@react-native-firebase/app-distribution';
86
70
  // appDistribution().X(...);
87
71
  // firebase.appDistribution().X(...);
88
72
  export const firebase = getFirebaseRoot();
73
+ //# sourceMappingURL=namespaced.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isIOS","createModuleNamespace","FirebaseModule","getFirebaseRoot","Platform","version","statics","namespace","nativeModuleName","rejectUnsupportedPlatform","Promise","reject","Error","OS","FirebaseAppDistributionModule","isTesterSignedIn","native","signInTester","checkForUpdate","signOutTester","SDK_VERSION","appDistributionNamespace","nativeEvents","hasMultiAppSupport","hasCustomUrlOrRegionSupport","ModuleClass","firebase"],"sourceRoot":"../../lib","sources":["namespaced.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,KAAK,QAAQ,+CAA+C;AACrE,SACEC,qBAAqB,EACrBC,cAAc,EACdC,eAAe,QACV,iDAAiD;AACxD,SAASC,QAAQ,QAAQ,cAAc;AAGvC,SAASC,OAAO,QAAQ,cAAW;AAEnC,MAAMC,OAAO,GAAG,CAAC,CAAC;AAElB,MAAMC,SAAS,GAAG,iBAAiB;AAEnC,MAAMC,gBAAgB,GAAG,2BAA2B;AAEpD,SAASC,yBAAyBA,CAAA,EAAkB;EAClD,OAAOC,OAAO,CAACC,MAAM,CACnB,IAAIC,KAAK,CAAC,4CAA4CR,QAAQ,CAACS,EAAE,YAAY,CAC/E,CAAC;AACH;AAEA,MAAMC,6BAA6B,SAASZ,cAAc,CAA0B;EAClFa,gBAAgBA,CAAA,EAAqB;IACnC,IAAIf,KAAK,EAAE;MACT,OAAO,IAAI,CAACgB,MAAM,CAACD,gBAAgB,CAAC,CAAC;IACvC;IAEA,OAAON,yBAAyB,CAAC,CAAC;EACpC;EAEAQ,YAAYA,CAAA,EAAkB;IAC5B,IAAIjB,KAAK,EAAE;MACT,OAAO,IAAI,CAACgB,MAAM,CAACC,YAAY,CAAC,CAAC;IACnC;IAEA,OAAOR,yBAAyB,CAAC,CAAC;EACpC;EAEAS,cAAcA,CAAA,EAAoC;IAChD,IAAIlB,KAAK,EAAE;MACT,OAAO,IAAI,CAACgB,MAAM,CAACE,cAAc,CAAC,CAAC;IACrC;IAEA,OAAOT,yBAAyB,CAAC,CAAC;EACpC;EAEAU,aAAaA,CAAA,EAAkB;IAC7B,IAAInB,KAAK,EAAE;MACT,OAAO,IAAI,CAACgB,MAAM,CAACG,aAAa,CAAC,CAAC;IACpC;IAEA,OAAOV,yBAAyB,CAAC,CAAC;EACpC;AACF;AAEA,OAAO,MAAMW,WAAW,GAAGf,OAAO;AAElC,MAAMgB,wBAAwB,GAAGpB,qBAAqB,CAAC;EACrDK,OAAO;EACPD,OAAO;EACPE,SAAS;EACTC,gBAAgB;EAChBc,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE,KAAK;EACzBC,2BAA2B,EAAE,KAAK;EAClCC,WAAW,EAAEX;AACf,CAAC,CAGA;AAED,eAAeO,wBAAwB;;AAEvC;AACA;AACA;AACA,OAAO,MAAMK,QAAQ,GACnBvB,eAAe,CAAC,CAKf","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=app-distribution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../lib","sources":["types/app-distribution.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../lib","sources":["types/internal.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * @deprecated Use the exported types directly instead.
5
+ * FirebaseAppDistributionTypes namespace is kept for backwards compatibility.
6
+ */
7
+ /* eslint-disable @typescript-eslint/no-namespace */
8
+ export let FirebaseAppDistributionTypes;
9
+ /* eslint-enable @typescript-eslint/no-namespace */
10
+ //# sourceMappingURL=namespaced.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FirebaseAppDistributionTypes"],"sourceRoot":"../../../lib","sources":["types/namespaced.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AAAA,WACiBA,4BAA4B;AAwD7C","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ // Generated by genversion.
4
+ export const version = '25.0.1';
5
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["version"],"sourceRoot":"../../lib","sources":["version.ts"],"mappings":";;AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,QAAQ","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ export type { AppDistribution, AppDistributionRelease } from './types/app-distribution';
2
+ export type { FirebaseAppDistributionTypes } from './types/namespaced';
3
+ export * from './modular';
4
+ export * from './namespaced';
5
+ export { default } from './namespaced';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/index.ts"],"names":[],"mappings":"AAiBA,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACxF,YAAY,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAEvE,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ReactNativeFirebase } from '@react-native-firebase/app';
2
+ import type { AppDistribution, AppDistributionRelease } from './types/app-distribution';
3
+ export type FirebaseAppDistribution = AppDistribution;
4
+ export declare function getAppDistribution(app?: ReactNativeFirebase.FirebaseApp): FirebaseAppDistribution;
5
+ export declare function isTesterSignedIn(appDistribution: FirebaseAppDistribution): Promise<boolean>;
6
+ export declare function signInTester(appDistribution: FirebaseAppDistribution): Promise<void>;
7
+ export declare function checkForUpdate(appDistribution: FirebaseAppDistribution): Promise<AppDistributionRelease>;
8
+ export declare function signOutTester(appDistribution: FirebaseAppDistribution): Promise<void>;
9
+ //# sourceMappingURL=modular.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modular.d.ts","sourceRoot":"","sources":["../../../lib/modular.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGxF,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC;AAMtD,wBAAgB,kBAAkB,CAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,WAAW,GAAG,uBAAuB,CAMjG;AAED,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,uBAAuB,GAAG,OAAO,CAAC,OAAO,CAAC,CAE3F;AAED,wBAAgB,YAAY,CAAC,eAAe,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEpF;AAED,wBAAgB,cAAc,CAC5B,eAAe,EAAE,uBAAuB,GACvC,OAAO,CAAC,sBAAsB,CAAC,CAEjC;AAED,wBAAgB,aAAa,CAAC,eAAe,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAErF"}
@@ -0,0 +1,7 @@
1
+ import type { ReactNativeFirebase } from '@react-native-firebase/app';
2
+ import type { FirebaseAppDistributionTypes } from './types/namespaced';
3
+ export declare const SDK_VERSION = "25.0.1";
4
+ declare const appDistributionNamespace: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<FirebaseAppDistributionTypes.Module, FirebaseAppDistributionTypes.Statics>;
5
+ export default appDistributionNamespace;
6
+ export declare const firebase: ReactNativeFirebase.FirebaseNamespacedExport<"appDistribution", FirebaseAppDistributionTypes.Module, FirebaseAppDistributionTypes.Statics, false>;
7
+ //# sourceMappingURL=namespaced.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespaced.d.ts","sourceRoot":"","sources":["../../../lib/namespaced.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAStE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAiDvE,eAAO,MAAM,WAAW,WAAU,CAAC;AAEnC,QAAA,MAAM,wBAAwB,EASb,mBAAmB,CAAC,+BAA+B,CAClE,4BAA4B,CAAC,MAAM,EACnC,4BAA4B,CAAC,OAAO,CACrC,CAAC;AAEF,eAAe,wBAAwB,CAAC;AAKxC,eAAO,MAAM,QAAQ,EACa,mBAAmB,CAAC,wBAAwB,CAC1E,iBAAiB,EACjB,4BAA4B,CAAC,MAAM,EACnC,4BAA4B,CAAC,OAAO,EACpC,KAAK,CACN,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ReactNativeFirebase } from '@react-native-firebase/app';
2
+ export interface AppDistributionRelease {
3
+ displayVersion: string;
4
+ buildVersion: string;
5
+ releaseNotes: string | null;
6
+ downloadURL: string;
7
+ isExpired: boolean;
8
+ }
9
+ export interface AppDistribution extends ReactNativeFirebase.FirebaseModule {
10
+ app: ReactNativeFirebase.FirebaseApp;
11
+ isTesterSignedIn(): Promise<boolean>;
12
+ signInTester(): Promise<void>;
13
+ checkForUpdate(): Promise<AppDistributionRelease>;
14
+ signOutTester(): Promise<void>;
15
+ }
16
+ //# sourceMappingURL=app-distribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-distribution.d.ts","sourceRoot":"","sources":["../../../../lib/types/app-distribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,mBAAmB,CAAC,cAAc;IACzE,GAAG,EAAE,mBAAmB,CAAC,WAAW,CAAC;IACrC,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACrC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,cAAc,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAClD,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC"}
@@ -0,0 +1,23 @@
1
+ import type { AppDistribution, AppDistributionRelease } from './app-distribution';
2
+ export type AppDistributionModularDeprecationArg = string;
3
+ export interface RNFBAppDistributionModule {
4
+ isTesterSignedIn(): Promise<boolean>;
5
+ signInTester(): Promise<void>;
6
+ checkForUpdate(): Promise<AppDistributionRelease>;
7
+ signOutTester(): Promise<void>;
8
+ }
9
+ declare module '@react-native-firebase/app/dist/module/internal/NativeModules' {
10
+ interface ReactNativeFirebaseNativeModules {
11
+ RNFBAppDistributionModule: RNFBAppDistributionModule;
12
+ }
13
+ }
14
+ export interface AppDistributionInternal extends AppDistribution {
15
+ readonly native: RNFBAppDistributionModule;
16
+ }
17
+ export type AppDistributionWithDeprecationArg = AppDistributionInternal & {
18
+ isTesterSignedIn(_depArg: AppDistributionModularDeprecationArg): Promise<boolean>;
19
+ signInTester(_depArg: AppDistributionModularDeprecationArg): Promise<void>;
20
+ checkForUpdate(_depArg: AppDistributionModularDeprecationArg): Promise<AppDistributionRelease>;
21
+ signOutTester(_depArg: AppDistributionModularDeprecationArg): Promise<void>;
22
+ };
23
+ //# sourceMappingURL=internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../lib/types/internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAElF,MAAM,MAAM,oCAAoC,GAAG,MAAM,CAAC;AAE1D,MAAM,WAAW,yBAAyB;IACxC,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACrC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,cAAc,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAClD,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC;AAED,OAAO,QAAQ,+DAA+D,CAAC;IAC7E,UAAU,gCAAgC;QACxC,yBAAyB,EAAE,yBAAyB,CAAC;KACtD;CACF;AAED,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D,QAAQ,CAAC,MAAM,EAAE,yBAAyB,CAAC;CAC5C;AAED,MAAM,MAAM,iCAAiC,GAAG,uBAAuB,GAAG;IACxE,gBAAgB,CAAC,OAAO,EAAE,oCAAoC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClF,YAAY,CAAC,OAAO,EAAE,oCAAoC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,cAAc,CAAC,OAAO,EAAE,oCAAoC,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC/F,aAAa,CAAC,OAAO,EAAE,oCAAoC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7E,CAAC"}
@@ -0,0 +1,55 @@
1
+ import type { ReactNativeFirebase } from '@react-native-firebase/app';
2
+ /**
3
+ * @deprecated Use the exported types directly instead.
4
+ * FirebaseAppDistributionTypes namespace is kept for backwards compatibility.
5
+ */
6
+ export declare namespace FirebaseAppDistributionTypes {
7
+ /**
8
+ * @deprecated Use the exported `AppDistributionRelease` type instead.
9
+ */
10
+ interface AppDistributionRelease {
11
+ /** @deprecated Use the exported `AppDistributionRelease` type instead. */
12
+ displayVersion: string;
13
+ /** @deprecated Use the exported `AppDistributionRelease` type instead. */
14
+ buildVersion: string;
15
+ /** @deprecated Use the exported `AppDistributionRelease` type instead. */
16
+ releaseNotes: string | null;
17
+ /** @deprecated Use the exported `AppDistributionRelease` type instead. */
18
+ downloadURL: string;
19
+ /** @deprecated Use the exported `AppDistributionRelease` type instead. */
20
+ isExpired: boolean;
21
+ }
22
+ /**
23
+ * @deprecated Use the default export statics instead.
24
+ */
25
+ interface Statics {
26
+ /** @deprecated Use the default export statics instead. */
27
+ SDK_VERSION: string;
28
+ }
29
+ /**
30
+ * @deprecated Use the exported `AppDistribution` type instead.
31
+ */
32
+ interface Module extends ReactNativeFirebase.FirebaseModule {
33
+ /** @deprecated Use the exported `AppDistribution` type instead. */
34
+ app: ReactNativeFirebase.FirebaseApp;
35
+ /** @deprecated Use the exported `AppDistribution` type instead. */
36
+ isTesterSignedIn(): Promise<boolean>;
37
+ /** @deprecated Use the exported `AppDistribution` type instead. */
38
+ signInTester(): Promise<void>;
39
+ /** @deprecated Use the exported `AppDistribution` type instead. */
40
+ checkForUpdate(): Promise<AppDistributionRelease>;
41
+ /** @deprecated Use the exported `AppDistribution` type instead. */
42
+ signOutTester(): Promise<void>;
43
+ }
44
+ }
45
+ declare module '@react-native-firebase/app' {
46
+ namespace ReactNativeFirebase {
47
+ interface Module {
48
+ appDistribution: FirebaseModuleWithStaticsAndApp<FirebaseAppDistributionTypes.Module, FirebaseAppDistributionTypes.Statics>;
49
+ }
50
+ interface FirebaseApp {
51
+ appDistribution(): FirebaseAppDistributionTypes.Module;
52
+ }
53
+ }
54
+ }
55
+ //# sourceMappingURL=namespaced.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespaced.d.ts","sourceRoot":"","sources":["../../../../lib/types/namespaced.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;;GAGG;AAEH,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,sBAAsB;QACrC,0EAA0E;QAC1E,cAAc,EAAE,MAAM,CAAC;QACvB,0EAA0E;QAC1E,YAAY,EAAE,MAAM,CAAC;QACrB,0EAA0E;QAC1E,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,0EAA0E;QAC1E,WAAW,EAAE,MAAM,CAAC;QACpB,0EAA0E;QAC1E,SAAS,EAAE,OAAO,CAAC;KACpB;IAED;;OAEG;IACH,UAAiB,OAAO;QACtB,0DAA0D;QAC1D,WAAW,EAAE,MAAM,CAAC;KACrB;IAED;;OAEG;IACH,UAAiB,MAAO,SAAQ,mBAAmB,CAAC,cAAc;QAChE,mEAAmE;QACnE,GAAG,EAAE,mBAAmB,CAAC,WAAW,CAAC;QACrC,mEAAmE;QACnE,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;QACrC,mEAAmE;QACnE,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;QAC9B,mEAAmE;QACnE,cAAc,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;QAClD,mEAAmE;QACnE,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;KAChC;CACF;AAED,OAAO,QAAQ,4BAA4B,CAAC;IAC1C,UAAU,mBAAmB,CAAC;QAC5B,UAAU,MAAM;YACd,eAAe,EAAE,+BAA+B,CAC9C,4BAA4B,CAAC,MAAM,EACnC,4BAA4B,CAAC,OAAO,CACrC,CAAC;SACH;QAED,UAAU,WAAW;YACnB,eAAe,IAAI,4BAA4B,CAAC,MAAM,CAAC;SACxD;KACF;CACF"}
@@ -0,0 +1,2 @@
1
+ export declare const version = "25.0.1";
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../lib/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
package/lib/index.ts ADDED
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016-present Invertase Limited & Contributors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this library except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ *
16
+ */
17
+
18
+ export type { AppDistribution, AppDistributionRelease } from './types/app-distribution';
19
+ export type { FirebaseAppDistributionTypes } from './types/namespaced';
20
+
21
+ export * from './modular';
22
+ export * from './namespaced';
23
+ export { default } from './namespaced';
package/lib/modular.ts ADDED
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Copyright (c) 2016-present Invertase Limited & Contributors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this library except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ *
16
+ */
17
+
18
+ import { getApp } from '@react-native-firebase/app';
19
+ import type { ReactNativeFirebase } from '@react-native-firebase/app';
20
+ import { MODULAR_DEPRECATION_ARG } from '@react-native-firebase/app/dist/module/common';
21
+ import type { AppDistribution, AppDistributionRelease } from './types/app-distribution';
22
+ import type { AppDistributionWithDeprecationArg } from './types/internal';
23
+
24
+ export type FirebaseAppDistribution = AppDistribution;
25
+
26
+ function ap(appDistribution: FirebaseAppDistribution): AppDistributionWithDeprecationArg {
27
+ return appDistribution as AppDistributionWithDeprecationArg;
28
+ }
29
+
30
+ export function getAppDistribution(app?: ReactNativeFirebase.FirebaseApp): FirebaseAppDistribution {
31
+ if (app) {
32
+ return getApp(app.name).appDistribution();
33
+ }
34
+
35
+ return getApp().appDistribution();
36
+ }
37
+
38
+ export function isTesterSignedIn(appDistribution: FirebaseAppDistribution): Promise<boolean> {
39
+ return ap(appDistribution).isTesterSignedIn.call(appDistribution, MODULAR_DEPRECATION_ARG);
40
+ }
41
+
42
+ export function signInTester(appDistribution: FirebaseAppDistribution): Promise<void> {
43
+ return ap(appDistribution).signInTester.call(appDistribution, MODULAR_DEPRECATION_ARG);
44
+ }
45
+
46
+ export function checkForUpdate(
47
+ appDistribution: FirebaseAppDistribution,
48
+ ): Promise<AppDistributionRelease> {
49
+ return ap(appDistribution).checkForUpdate.call(appDistribution, MODULAR_DEPRECATION_ARG);
50
+ }
51
+
52
+ export function signOutTester(appDistribution: FirebaseAppDistribution): Promise<void> {
53
+ return ap(appDistribution).signOutTester.call(appDistribution, MODULAR_DEPRECATION_ARG);
54
+ }
@@ -0,0 +1,103 @@
1
+ /*
2
+ * Copyright (c) 2016-present Invertase Limited & Contributors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this library except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ *
16
+ */
17
+
18
+ import type { ReactNativeFirebase } from '@react-native-firebase/app';
19
+ import { isIOS } from '@react-native-firebase/app/dist/module/common';
20
+ import {
21
+ createModuleNamespace,
22
+ FirebaseModule,
23
+ getFirebaseRoot,
24
+ } from '@react-native-firebase/app/dist/module/internal';
25
+ import { Platform } from 'react-native';
26
+ import type { AppDistributionRelease } from './types/app-distribution';
27
+ import type { FirebaseAppDistributionTypes } from './types/namespaced';
28
+ import { version } from './version';
29
+
30
+ const statics = {};
31
+
32
+ const namespace = 'appDistribution';
33
+
34
+ const nativeModuleName = 'RNFBAppDistributionModule';
35
+
36
+ function rejectUnsupportedPlatform<T>(): Promise<T> {
37
+ return Promise.reject(
38
+ new Error(`App Distribution is not supported on the ${Platform.OS} platform.`),
39
+ );
40
+ }
41
+
42
+ class FirebaseAppDistributionModule extends FirebaseModule<typeof nativeModuleName> {
43
+ isTesterSignedIn(): Promise<boolean> {
44
+ if (isIOS) {
45
+ return this.native.isTesterSignedIn();
46
+ }
47
+
48
+ return rejectUnsupportedPlatform();
49
+ }
50
+
51
+ signInTester(): Promise<void> {
52
+ if (isIOS) {
53
+ return this.native.signInTester();
54
+ }
55
+
56
+ return rejectUnsupportedPlatform();
57
+ }
58
+
59
+ checkForUpdate(): Promise<AppDistributionRelease> {
60
+ if (isIOS) {
61
+ return this.native.checkForUpdate();
62
+ }
63
+
64
+ return rejectUnsupportedPlatform();
65
+ }
66
+
67
+ signOutTester(): Promise<void> {
68
+ if (isIOS) {
69
+ return this.native.signOutTester();
70
+ }
71
+
72
+ return rejectUnsupportedPlatform();
73
+ }
74
+ }
75
+
76
+ export const SDK_VERSION = version;
77
+
78
+ const appDistributionNamespace = createModuleNamespace({
79
+ statics,
80
+ version,
81
+ namespace,
82
+ nativeModuleName,
83
+ nativeEvents: false,
84
+ hasMultiAppSupport: false,
85
+ hasCustomUrlOrRegionSupport: false,
86
+ ModuleClass: FirebaseAppDistributionModule,
87
+ }) as unknown as ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<
88
+ FirebaseAppDistributionTypes.Module,
89
+ FirebaseAppDistributionTypes.Statics
90
+ >;
91
+
92
+ export default appDistributionNamespace;
93
+
94
+ // import appDistribution, { firebase } from '@react-native-firebase/app-distribution';
95
+ // appDistribution().X(...);
96
+ // firebase.appDistribution().X(...);
97
+ export const firebase =
98
+ getFirebaseRoot() as unknown as ReactNativeFirebase.FirebaseNamespacedExport<
99
+ 'appDistribution',
100
+ FirebaseAppDistributionTypes.Module,
101
+ FirebaseAppDistributionTypes.Statics,
102
+ false
103
+ >;
@@ -0,0 +1,17 @@
1
+ import type { ReactNativeFirebase } from '@react-native-firebase/app';
2
+
3
+ export interface AppDistributionRelease {
4
+ displayVersion: string;
5
+ buildVersion: string;
6
+ releaseNotes: string | null;
7
+ downloadURL: string;
8
+ isExpired: boolean;
9
+ }
10
+
11
+ export interface AppDistribution extends ReactNativeFirebase.FirebaseModule {
12
+ app: ReactNativeFirebase.FirebaseApp;
13
+ isTesterSignedIn(): Promise<boolean>;
14
+ signInTester(): Promise<void>;
15
+ checkForUpdate(): Promise<AppDistributionRelease>;
16
+ signOutTester(): Promise<void>;
17
+ }
@@ -0,0 +1,27 @@
1
+ import type { AppDistribution, AppDistributionRelease } from './app-distribution';
2
+
3
+ export type AppDistributionModularDeprecationArg = string;
4
+
5
+ export interface RNFBAppDistributionModule {
6
+ isTesterSignedIn(): Promise<boolean>;
7
+ signInTester(): Promise<void>;
8
+ checkForUpdate(): Promise<AppDistributionRelease>;
9
+ signOutTester(): Promise<void>;
10
+ }
11
+
12
+ declare module '@react-native-firebase/app/dist/module/internal/NativeModules' {
13
+ interface ReactNativeFirebaseNativeModules {
14
+ RNFBAppDistributionModule: RNFBAppDistributionModule;
15
+ }
16
+ }
17
+
18
+ export interface AppDistributionInternal extends AppDistribution {
19
+ readonly native: RNFBAppDistributionModule;
20
+ }
21
+
22
+ export type AppDistributionWithDeprecationArg = AppDistributionInternal & {
23
+ isTesterSignedIn(_depArg: AppDistributionModularDeprecationArg): Promise<boolean>;
24
+ signInTester(_depArg: AppDistributionModularDeprecationArg): Promise<void>;
25
+ checkForUpdate(_depArg: AppDistributionModularDeprecationArg): Promise<AppDistributionRelease>;
26
+ signOutTester(_depArg: AppDistributionModularDeprecationArg): Promise<void>;
27
+ };
@@ -0,0 +1,64 @@
1
+ import type { ReactNativeFirebase } from '@react-native-firebase/app';
2
+
3
+ /**
4
+ * @deprecated Use the exported types directly instead.
5
+ * FirebaseAppDistributionTypes namespace is kept for backwards compatibility.
6
+ */
7
+ /* eslint-disable @typescript-eslint/no-namespace */
8
+ export namespace FirebaseAppDistributionTypes {
9
+ /**
10
+ * @deprecated Use the exported `AppDistributionRelease` type instead.
11
+ */
12
+ export interface AppDistributionRelease {
13
+ /** @deprecated Use the exported `AppDistributionRelease` type instead. */
14
+ displayVersion: string;
15
+ /** @deprecated Use the exported `AppDistributionRelease` type instead. */
16
+ buildVersion: string;
17
+ /** @deprecated Use the exported `AppDistributionRelease` type instead. */
18
+ releaseNotes: string | null;
19
+ /** @deprecated Use the exported `AppDistributionRelease` type instead. */
20
+ downloadURL: string;
21
+ /** @deprecated Use the exported `AppDistributionRelease` type instead. */
22
+ isExpired: boolean;
23
+ }
24
+
25
+ /**
26
+ * @deprecated Use the default export statics instead.
27
+ */
28
+ export interface Statics {
29
+ /** @deprecated Use the default export statics instead. */
30
+ SDK_VERSION: string;
31
+ }
32
+
33
+ /**
34
+ * @deprecated Use the exported `AppDistribution` type instead.
35
+ */
36
+ export interface Module extends ReactNativeFirebase.FirebaseModule {
37
+ /** @deprecated Use the exported `AppDistribution` type instead. */
38
+ app: ReactNativeFirebase.FirebaseApp;
39
+ /** @deprecated Use the exported `AppDistribution` type instead. */
40
+ isTesterSignedIn(): Promise<boolean>;
41
+ /** @deprecated Use the exported `AppDistribution` type instead. */
42
+ signInTester(): Promise<void>;
43
+ /** @deprecated Use the exported `AppDistribution` type instead. */
44
+ checkForUpdate(): Promise<AppDistributionRelease>;
45
+ /** @deprecated Use the exported `AppDistribution` type instead. */
46
+ signOutTester(): Promise<void>;
47
+ }
48
+ }
49
+
50
+ declare module '@react-native-firebase/app' {
51
+ namespace ReactNativeFirebase {
52
+ interface Module {
53
+ appDistribution: FirebaseModuleWithStaticsAndApp<
54
+ FirebaseAppDistributionTypes.Module,
55
+ FirebaseAppDistributionTypes.Statics
56
+ >;
57
+ }
58
+
59
+ interface FirebaseApp {
60
+ appDistribution(): FirebaseAppDistributionTypes.Module;
61
+ }
62
+ }
63
+ }
64
+ /* eslint-enable @typescript-eslint/no-namespace */
package/lib/version.ts ADDED
@@ -0,0 +1,2 @@
1
+ // Generated by genversion.
2
+ export const version = '25.0.1';
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@react-native-firebase/app-distribution",
3
- "version": "24.1.1",
3
+ "version": "25.0.1",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - App Distribution",
6
- "main": "lib/index.js",
7
- "types": "lib/index.d.ts",
6
+ "main": "./dist/module/index.js",
7
+ "types": "./dist/typescript/lib/index.d.ts",
8
8
  "scripts": {
9
- "build": "genversion --semi lib/version.js",
9
+ "build": "genversion --esm --semi lib/version.ts",
10
10
  "build:clean": "rimraf android/build && rimraf ios/build",
11
11
  "build:plugin": "rimraf plugin/build && tsc --build plugin",
12
+ "compile": "bob build",
12
13
  "lint:plugin": "eslint plugin/src/*",
13
- "prepare": "yarn run build && yarn run build:plugin"
14
+ "prepare": "yarn run build && yarn compile && yarn run build:plugin"
14
15
  },
15
16
  "repository": {
16
17
  "type": "git",
@@ -24,11 +25,12 @@
24
25
  "app-distribution"
25
26
  ],
26
27
  "peerDependencies": {
27
- "@react-native-firebase/app": "24.1.1",
28
+ "@react-native-firebase/app": "25.0.1",
28
29
  "expo": ">=47.0.0"
29
30
  },
30
31
  "devDependencies": {
31
- "expo": "^55.0.5"
32
+ "expo": "^55.0.18",
33
+ "react-native-builder-bob": "^0.41.0"
32
34
  },
33
35
  "peerDependenciesMeta": {
34
36
  "expo": {
@@ -39,5 +41,36 @@
39
41
  "access": "public",
40
42
  "provenance": true
41
43
  },
42
- "gitHead": "ea699f0bbcc98d25eebea4bfbe88cf1e9f2d0107"
44
+ "exports": {
45
+ ".": {
46
+ "source": "./lib/index.ts",
47
+ "types": "./dist/typescript/lib/index.d.ts",
48
+ "default": "./dist/module/index.js"
49
+ },
50
+ "./app.plugin.js": "./app.plugin.js",
51
+ "./package.json": "./package.json"
52
+ },
53
+ "react-native-builder-bob": {
54
+ "source": "lib",
55
+ "output": "dist",
56
+ "targets": [
57
+ [
58
+ "module",
59
+ {
60
+ "esm": true
61
+ }
62
+ ],
63
+ [
64
+ "typescript",
65
+ {
66
+ "tsc": "../../node_modules/.bin/tsc"
67
+ }
68
+ ]
69
+ ]
70
+ },
71
+ "eslintIgnore": [
72
+ "node_modules/",
73
+ "dist/"
74
+ ],
75
+ "gitHead": "8c1c22f54a052ea8151b66ce079caf06e7703d4a"
43
76
  }
@@ -3,7 +3,8 @@
3
3
  "compilerOptions": {
4
4
  "outDir": "build",
5
5
  "rootDir": "src",
6
- "declaration": true
6
+ "declaration": true,
7
+ "types": ["react-native", "node"]
7
8
  },
8
9
  "include": ["./src"]
9
10
  }
@@ -1 +1 @@
1
- {"root":["./src/index.ts","./src/android/applyPlugin.ts","./src/android/buildscriptDependency.ts","./src/android/constants.ts","./src/android/index.ts"],"version":"5.9.3"}
1
+ {"root":["./src/index.ts","./src/android/applyPlugin.ts","./src/android/buildscriptDependency.ts","./src/android/constants.ts","./src/android/index.ts"],"version":"6.0.3"}
package/tsconfig.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "extends": "../../tsconfig.packages.base.json",
3
+ "compilerOptions": {
4
+ "rootDir": ".",
5
+ "paths": {
6
+ "@react-native-firebase/app/dist/module/common": ["../app/dist/typescript/lib/common"],
7
+ "@react-native-firebase/app/dist/module/internal": ["../app/dist/typescript/lib/internal"],
8
+ "@react-native-firebase/app/dist/module/internal/NativeModules": [
9
+ "../app/dist/typescript/lib/internal/NativeModules"
10
+ ],
11
+ "@react-native-firebase/app": ["../app/dist/typescript/lib"]
12
+ }
13
+ },
14
+ "include": ["lib/**/*", "../app/lib/internal/global.d.ts"],
15
+ "exclude": ["node_modules", "dist", "__tests__", "**/*.test.ts"]
16
+ }
package/typedoc.json CHANGED
@@ -1,8 +1,4 @@
1
1
  {
2
2
  "$schema": "https://typedoc.org/schema.json",
3
- "entryPoints": ["lib/modular/index.d.ts"],
4
- "intentionallyNotExported": [
5
- "FirebaseAppDistributionTypes.Module",
6
- "FirebaseAppDistributionTypes.AppDistributionRelease"
7
- ]
3
+ "entryPoints": ["lib/index.ts"]
8
4
  }
package/lib/index.d.ts DELETED
@@ -1,165 +0,0 @@
1
- /*
2
- * Copyright (c) 2016-present Invertase Limited & Contributors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this library except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- *
16
- */
17
-
18
- import { ReactNativeFirebase } from '@react-native-firebase/app';
19
-
20
- /**
21
- * Firebase AppDistribution package for React Native.
22
- *
23
- * #### Example 1
24
- *
25
- * Access the firebase export from the `app-distribution` package:
26
- *
27
- * ```js
28
- * import { firebase } from '@react-native-firebase/app-distribution';
29
- *
30
- * // firebase.appDistribution().X
31
- * ```
32
- *
33
- * #### Example 2
34
- *
35
- * Using the default export from the `app-distribution` package:
36
- *
37
- * ```js
38
- * import appDistribution from '@react-native-firebase/app-distribution';
39
- *
40
- * // appDistribution().X
41
- * ```
42
- *
43
- * #### Example 3
44
- *
45
- * Using the default export from the `app` package:
46
- *
47
- * ```js
48
- * import firebase from '@react-native-firebase/app';
49
- * import '@react-native-firebase/app-distribution';
50
- *
51
- * // firebase.appDistribution().X
52
- * ```
53
- *
54
- * @firebase app-distribution
55
- */
56
- export namespace FirebaseAppDistributionTypes {
57
- import FirebaseModule = ReactNativeFirebase.FirebaseModule;
58
-
59
- /**
60
- * The release information returned by the update check when a new version is available.
61
- */
62
- export interface AppDistributionRelease {
63
- /**
64
- * The short bundle version of this build (example 1.0.0).
65
- */
66
- displayVersion: string;
67
-
68
- /**
69
- * The build number of this build (example: 123).
70
- */
71
- buildVersion: string;
72
-
73
- /**
74
- * The release notes for this build, possibly null if no release notes were provided.
75
- */
76
- releaseNotes: string | null;
77
-
78
- /**
79
- * The URL for the build.
80
- */
81
- downloadURL: string;
82
-
83
- /**
84
- * Whether the download URL for this release is expired.
85
- */
86
- isExpired: boolean;
87
- }
88
-
89
- export interface Statics {
90
- // firebase.appDistribution.* static props go here
91
- }
92
-
93
- /**
94
- * The Firebase AppDistribution service interface.
95
- *
96
- * > This module is available for the default app only.
97
- *
98
- * #### Example
99
- *
100
- * Get the AppDistribution service for the default app:
101
- *
102
- * ```js
103
- * const defaultAppAppDistribution = firebase.appDistribution();
104
- * ```
105
- */
106
- export class Module extends FirebaseModule {
107
- /**
108
- * Returns true if the App Distribution tester is signed in.
109
- * If not an iOS device, it always rejects, as neither false nor true seem like a sensible default.
110
- */
111
- isTesterSignedIn(): Promise<boolean>;
112
-
113
- /**
114
- * Sign-in the App Distribution tester
115
- * If not an iOS device, it always rejects, as no defaults seem sensible.
116
- */
117
- signInTester(): Promise<void>;
118
-
119
- /**
120
- * Check to see whether a new distribution is available
121
- * If not an iOS device, it always rejects, as no default response seems sensible.
122
- */
123
- checkForUpdate(): Promise<AppDistributionRelease>;
124
-
125
- /**
126
- * Sign out App Distribution tester
127
- * If not an iOS device, it always rejects, as no default response seems sensible.
128
- */
129
- signOutTester(): Promise<void>;
130
- }
131
- }
132
-
133
- declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<
134
- FirebaseAppDistributionTypes.Module,
135
- FirebaseAppDistributionTypes.Statics
136
- >;
137
-
138
- export const firebase: ReactNativeFirebase.Module & {
139
- appDistribution: typeof defaultExport;
140
- app(
141
- name?: string,
142
- ): ReactNativeFirebase.FirebaseApp & { appDistribution(): FirebaseAppDistributionTypes.Module };
143
- };
144
-
145
- export default defaultExport;
146
-
147
- export * from './modular';
148
-
149
- /**
150
- * Attach namespace to `firebase.` and `FirebaseApp.`.
151
- */
152
- declare module '@react-native-firebase/app' {
153
- namespace ReactNativeFirebase {
154
- import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp;
155
- interface Module {
156
- appDistribution: FirebaseModuleWithStaticsAndApp<
157
- FirebaseAppDistributionTypes.Module,
158
- FirebaseAppDistributionTypes.Statics
159
- >;
160
- }
161
- interface FirebaseApp {
162
- appDistribution(): FirebaseAppDistributionTypes.Module;
163
- }
164
- }
165
- }
@@ -1,39 +0,0 @@
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>;
@@ -1,50 +0,0 @@
1
- import { getApp } from '@react-native-firebase/app';
2
- import { MODULAR_DEPRECATION_ARG } from '@react-native-firebase/app/dist/module/common';
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 getApp(app.name).appDistribution(app);
16
- }
17
- return getApp().appDistribution();
18
- }
19
-
20
- /**
21
- * @param {FirebaseAppDistribution} appDistribution
22
- * @returns {Promise<boolean>}
23
- */
24
- export function isTesterSignedIn(appDistribution) {
25
- return appDistribution.isTesterSignedIn.call(appDistribution, MODULAR_DEPRECATION_ARG);
26
- }
27
-
28
- /**
29
- * @param {FirebaseAppDistribution} appDistribution
30
- * @returns {Promise<void>}
31
- */
32
- export function signInTester(appDistribution) {
33
- return appDistribution.signInTester.call(appDistribution, MODULAR_DEPRECATION_ARG);
34
- }
35
-
36
- /**
37
- * @param {FirebaseAppDistribution} appDistribution
38
- * @returns {AppDistributionRelease>}
39
- */
40
- export function checkForUpdate(appDistribution) {
41
- return appDistribution.checkForUpdate.call(appDistribution, MODULAR_DEPRECATION_ARG);
42
- }
43
-
44
- /**
45
- * @param {FirebaseAppDistribution} appDistribution
46
- * @returns {Promise<void>}
47
- */
48
- export function signOutTester(appDistribution) {
49
- return appDistribution.signOutTester.call(appDistribution, MODULAR_DEPRECATION_ARG);
50
- }
package/lib/version.js DELETED
@@ -1,2 +0,0 @@
1
- // Generated by genversion.
2
- module.exports = '24.1.1';