// Path: EEG101/android/app/src/main/java/com/eeg_project/MainApplication.java
// public class MainApplication extends Application implements ReactApplication {
// 
//   // Global singleton Muse
//   public static Muse connectedMuse;
// 
//   // Global singleton event emitter
//   public static AppNativeEventEmitter eventEmitter;
// 
//   private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
//     @Override
//     public boolean getUseDeveloperSupport() {
//       return com.eeg_project.BuildConfig.DEBUG;
//     }
// 
//     // All packages for native libraries must be added to the array returned by this method
//     @Override
//     protected List<ReactPackage> getPackages() {
//       return Arrays.<ReactPackage>asList(
//           new MainReactPackage(),
//             new LottiePackage(),
//             new RNI18nPackage(),
//           new RCTTorchPackage(),
//           new SvgPackage(),
//           new EEGPackage()
//       );
//     }
//   };
// 
//   @Override
//   public ReactNativeHost getReactNativeHost() {
//       return mReactNativeHost;
//   }
// 
//   }


import android.util.Log;
import android.os.Handler;
import android.os.HandlerThread;
import com.choosemuse.libmuse.Battery;
import com.choosemuse.libmuse.Muse;
import com.choosemuse.libmuse.MuseArtifactPacket;
import com.choosemuse.libmuse.MuseDataListener;
import com.choosemuse.libmuse.MuseDataPacket;
import com.choosemuse.libmuse.MuseDataPacketType;
import com.eeg_project.MainApplication;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.modules.core.DeviceEventManagerModule;
package com.eeg_project.components.battery;




//Created by Vasyl 21/11/2018

public class BatteryModule extends ReactContextBaseJavaModule {

    public DataListener batteryListener;
// Path: EEG101/android/app/src/main/java/com/eeg_project/MainApplication.java
// public class MainApplication extends Application implements ReactApplication {
// 
//   // Global singleton Muse
//   public static Muse connectedMuse;
// 
//   // Global singleton event emitter
//   public static AppNativeEventEmitter eventEmitter;
// 
//   private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
//     @Override
//     public boolean getUseDeveloperSupport() {
//       return com.eeg_project.BuildConfig.DEBUG;
//     }
// 
//     // All packages for native libraries must be added to the array returned by this method
//     @Override
//     protected List<ReactPackage> getPackages() {
//       return Arrays.<ReactPackage>asList(
//           new MainReactPackage(),
//             new LottiePackage(),
//             new RNI18nPackage(),
//           new RCTTorchPackage(),
//           new SvgPackage(),
//           new EEGPackage()
//       );
//     }
//   };
// 
//   @Override
//   public ReactNativeHost getReactNativeHost() {
//       return mReactNativeHost;
//   }
// 
//   }


// Path: EEG101/android/app/src/main/java/com/eeg_project/components/battery/BatteryModule.java
import android.util.Log;
import android.os.Handler;
import android.os.HandlerThread;
import com.choosemuse.libmuse.Battery;
import com.choosemuse.libmuse.Muse;
import com.choosemuse.libmuse.MuseArtifactPacket;
import com.choosemuse.libmuse.MuseDataListener;
import com.choosemuse.libmuse.MuseDataPacket;
import com.choosemuse.libmuse.MuseDataPacketType;
import com.eeg_project.MainApplication;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.modules.core.DeviceEventManagerModule;

package com.eeg_project.components.battery;




//Created by Vasyl 21/11/2018

public class BatteryModule extends ReactContextBaseJavaModule {

    public DataListener batteryListener;
    MainApplication appState;