mayo-firebase-config 1.2.3 → 1.2.4

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.
@@ -0,0 +1,27 @@
1
+ apply plugin: 'com.android.library'
2
+
3
+ android {
4
+ compileSdkVersion 33
5
+
6
+ defaultConfig {
7
+ minSdkVersion 21
8
+ targetSdkVersion 33
9
+ versionCode 1
10
+ versionName "1.0"
11
+ }
12
+
13
+ buildToolsVersion "33.0.0"
14
+
15
+ lintOptions {
16
+ abortOnError false
17
+ }
18
+ }
19
+ dependencies {
20
+ implementation 'com.facebook.react:react-native:+'
21
+ }
22
+
23
+ // Ensure this is set to 'library'
24
+ apply plugin: 'maven-publish'
25
+ publishing {
26
+ // publication details here
27
+ }
@@ -0,0 +1 @@
1
+ # Add any specific gradle properties here
@@ -0,0 +1,8 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ package="com.mayorana.mayofirebaseconfig">
3
+
4
+ <application>
5
+ <!-- No application specifics needed for a library, but it needs to exist. -->
6
+ </application>
7
+
8
+ </manifest>
@@ -14,7 +14,7 @@ const react_native_1 = require("react-native");
14
14
  const mayo_logger_1 = require("mayo-logger");
15
15
  const { FirebaseConfigExtractor } = react_native_1.NativeModules;
16
16
  const extractFirebaseConfig = () => __awaiter(void 0, void 0, void 0, function* () {
17
- mayo_logger_1.Logger.info('Starting Firebase config extraction...', null, { tag: 'mayo-firebase-config-extractor' });
17
+ mayo_logger_1.Logger.info('TOTO Starting Firebase config extraction...', null, { tag: 'mayo-firebase-config-extractor' });
18
18
  const config = yield FirebaseConfigExtractor.extractConfig();
19
19
  if (config && typeof config === 'object' && Object.keys(config).length > 0) {
20
20
  mayo_logger_1.Logger.info('Successfully extracted Firebase config', null, { tag: 'mayo-firebase-config-extractor' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayo-firebase-config",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "license": "MIT",
5
5
  "author": "Mohamed Bennekrouf",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,12 @@
1
+ module.exports = {
2
+ dependency: {
3
+ platforms: {
4
+ android: {
5
+ sourceDir: './android',
6
+ packageImportPath: 'import com.mayorana.mayofirebaseconfig.FirebaseConfigExtractorModule;',
7
+ packageInstance: 'new FirebaseConfigExtractorModule(reactContext)',
8
+ },
9
+ },
10
+ },
11
+ };
12
+
@@ -1,11 +1,11 @@
1
1
  import { NativeModules } from 'react-native';
2
2
  import { Logger } from 'mayo-logger';
3
- import { FirebaseConfig } from 'mayo-firebase-config'; // import the type from the module
3
+ import { FirebaseConfig } from 'mayo-firebase-config';
4
4
 
5
5
  const { FirebaseConfigExtractor } = NativeModules;
6
6
 
7
7
  export const extractFirebaseConfig = async (): Promise<FirebaseConfig> => {
8
- Logger.info('Starting Firebase config extraction...', null, { tag: 'mayo-firebase-config-extractor' });
8
+ Logger.info('TOTO Starting Firebase config extraction...', null, { tag: 'mayo-firebase-config-extractor' });
9
9
 
10
10
  const config: FirebaseConfig = await FirebaseConfigExtractor.extractConfig();
11
11