mayo-firebase-config 1.2.4 → 1.2.6

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.
@@ -4,6 +4,7 @@ import com.facebook.react.bridge.ReactApplicationContext;
4
4
  import com.facebook.react.bridge.ReactContextBaseJavaModule;
5
5
  import com.facebook.react.bridge.ReactMethod;
6
6
  import com.facebook.react.bridge.Promise;
7
+ import com.facebook.react.module.annotations.ReactModule;
7
8
 
8
9
  import android.content.res.AssetManager;
9
10
  import org.json.JSONArray;
@@ -16,7 +17,9 @@ import java.io.InputStreamReader;
16
17
  import java.util.HashMap;
17
18
  import java.util.Map;
18
19
 
20
+ @ReactModule(name = FirebaseConfigExtractorModule.NAME)
19
21
  public class FirebaseConfigExtractorModule extends ReactContextBaseJavaModule {
22
+ public static final String NAME = "FirebaseConfigExtractor";
20
23
 
21
24
  public FirebaseConfigExtractorModule(ReactApplicationContext reactContext) {
22
25
  super(reactContext);
@@ -24,7 +27,7 @@ public class FirebaseConfigExtractorModule extends ReactContextBaseJavaModule {
24
27
 
25
28
  @Override
26
29
  public String getName() {
27
- return "FirebaseConfigExtractor";
30
+ return NAME;
28
31
  }
29
32
 
30
33
  @ReactMethod
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "mayo-firebase-config",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "license": "MIT",
5
5
  "author": "Mohamed Bennekrouf",
6
6
  "main": "dist/index.js",
7
7
  "types": "index.d.ts",
8
+ "react-native": "react-native.config.js",
8
9
  "scripts": {
9
10
  "semantic-release": "semantic-release"
10
11
  },
@@ -3,8 +3,7 @@ module.exports = {
3
3
  platforms: {
4
4
  android: {
5
5
  sourceDir: './android',
6
- packageImportPath: 'import com.mayorana.mayofirebaseconfig.FirebaseConfigExtractorModule;',
7
- packageInstance: 'new FirebaseConfigExtractorModule(reactContext)',
6
+ packageInstance: 'new FirebaseConfigExtractorModule(reactContext)'
8
7
  },
9
8
  },
10
9
  },