// Path: EEG101/android/app/src/main/java/com/eeg_project/components/emitter/AppNativeEventEmitter.java
// public class AppNativeEventEmitter extends ReactContextBaseJavaModule {
// 
//     // ----------------------------------------------------------
//     // Variables
// 
//     // ---------------------------------------------------------
//     // Constructor
// 
//     public AppNativeEventEmitter(ReactApplicationContext reactContext) {
//         super(reactContext);
//     }
// 
//     // ---------------------------------------------------------
//     // React Native Module methods
// 
//     // Required by ReactContextBaseJavaModule
//     @Override
//     public String getName() {
//         return "AppNativeEventEmitter";
//     }
// 
//     // ---------------------------------------------------------
//     // Public sendEvent Methods
// 
//     // Send events with int params (PREDICT_RESULT)
//     public void sendEvent(String eventName, int result) {
//         getReactApplicationContext()
//                 .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
//                 .emit(eventName, result);
//     }
// 
//     // Send events with Map params (CONNECTION_CHANGED, NOISE)
//     public void sendEvent(String eventName, @Nullable WritableMap params) {
//         getReactApplicationContext()
//                 .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
//                 .emit(eventName, params);
//     }
// 
//     // Send events with Array params (MUSE_LIST_CHANGED)
//     public void sendEvent(String eventName, @Nullable WritableArray params) {
//         getReactApplicationContext()
//                 .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
//                 .emit(eventName, params);
//     }
// }


import android.app.Application;
import com.choosemuse.libmuse.Muse;
import com.eeg_project.components.emitter.AppNativeEventEmitter;
import com.facebook.react.ReactApplication;
import com.airbnb.android.react.lottie.LottiePackage;
import com.AlexanderZaytsev.RNI18n.RNI18nPackage;
import com.cubicphuse.RCTTorch.RCTTorchPackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.horcrux.svg.SvgPackage;
import java.util.Arrays;
import java.util.List;
package com.eeg_project;


// Prevents react-native-svg issue #135



public class MainApplication extends Application implements ReactApplication {

  // Global singleton Muse
  public static Muse connectedMuse;

  // Global singleton event emitter
// Path: EEG101/android/app/src/main/java/com/eeg_project/components/emitter/AppNativeEventEmitter.java
// public class AppNativeEventEmitter extends ReactContextBaseJavaModule {
// 
//     // ----------------------------------------------------------
//     // Variables
// 
//     // ---------------------------------------------------------
//     // Constructor
// 
//     public AppNativeEventEmitter(ReactApplicationContext reactContext) {
//         super(reactContext);
//     }
// 
//     // ---------------------------------------------------------
//     // React Native Module methods
// 
//     // Required by ReactContextBaseJavaModule
//     @Override
//     public String getName() {
//         return "AppNativeEventEmitter";
//     }
// 
//     // ---------------------------------------------------------
//     // Public sendEvent Methods
// 
//     // Send events with int params (PREDICT_RESULT)
//     public void sendEvent(String eventName, int result) {
//         getReactApplicationContext()
//                 .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
//                 .emit(eventName, result);
//     }
// 
//     // Send events with Map params (CONNECTION_CHANGED, NOISE)
//     public void sendEvent(String eventName, @Nullable WritableMap params) {
//         getReactApplicationContext()
//                 .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
//                 .emit(eventName, params);
//     }
// 
//     // Send events with Array params (MUSE_LIST_CHANGED)
//     public void sendEvent(String eventName, @Nullable WritableArray params) {
//         getReactApplicationContext()
//                 .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
//                 .emit(eventName, params);
//     }
// }


// Path: EEG101/android/app/src/main/java/com/eeg_project/MainApplication.java
import android.app.Application;
import com.choosemuse.libmuse.Muse;
import com.eeg_project.components.emitter.AppNativeEventEmitter;
import com.facebook.react.ReactApplication;
import com.airbnb.android.react.lottie.LottiePackage;
import com.AlexanderZaytsev.RNI18n.RNI18nPackage;
import com.cubicphuse.RCTTorch.RCTTorchPackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.horcrux.svg.SvgPackage;
import java.util.Arrays;
import java.util.List;

package com.eeg_project;


// Prevents react-native-svg issue #135



public class MainApplication extends Application implements ReactApplication {

  // Global singleton Muse
  public static Muse connectedMuse;

  // Global singleton event emitter
  public static AppNativeEventEmitter eventEmitter;