Skip to content

Commit

Permalink
fix(android): add empty methods to pass new arch build
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Oct 1, 2023
1 parent c7d5e87 commit d285e2a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions android/src/newarch/java/com/rnwhisper/RNWhisperModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.module.annotations.ReactModule;

import java.util.HashMap;
Expand Down Expand Up @@ -65,4 +66,29 @@ public void releaseContext(double id, Promise promise) {
public void releaseAllContexts(Promise promise) {
rnwhisper.releaseAllContexts(promise);
}

/*
* iOS Specific methods, left here for make the turbo module happy:
*/

@ReactMethod
public void getAudioSessionCurrentCategory(Promise promise) {
promise.resolve(null);
}
@ReactMethod
public void getAudioSessionCurrentMode(Promise promise) {
promise.resolve(null);
}
@ReactMethod
public void setAudioSessionCategory(String category, ReadableArray options, Promise promise) {
promise.resolve(null);
}
@ReactMethod
public void setAudioSessionMode(String mode, Promise promise) {
promise.resolve(null);
}
@ReactMethod
public void setAudioSessionActive(boolean active, Promise promise) {
promise.resolve(null);
}
}

0 comments on commit d285e2a

Please sign in to comment.