Skip to content

Commit

Permalink
refactor: optimized imports and includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Makowski committed Jul 20, 2024
1 parent 6ca8ab0 commit 319cd81
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 13 deletions.
1 change: 0 additions & 1 deletion android/src/main/cpp/AudioContext.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "AudioContext.h"
#include "android/log.h"

namespace audiocontext
{
Expand Down
3 changes: 0 additions & 3 deletions android/src/main/cpp/AudioDestinationNode.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#pragma once

#include <fbjni/fbjni.h>
#include <jsi/jsi.h>
#include <react/jni/CxxModuleWrapper.h>
#include <react/jni/JMessageQueueThread.h>
#include <memory>
#include "AudioDestinationNodeHostObject.h"
#include "OscillatorNode.h"

namespace audiocontext {
Expand All @@ -14,7 +12,6 @@ namespace audiocontext {
using namespace facebook::jni;

class OscillatorNode;
class AudioDestinationNodeHostObject;

class AudioDestinationNode : public jni::HybridClass<AudioDestinationNode> {
public:
Expand Down
1 change: 0 additions & 1 deletion android/src/main/cpp/OscillatorNode.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "OscillatorNode.h"
#include "android/log.h"

namespace audiocontext {

Expand Down
3 changes: 0 additions & 3 deletions android/src/main/cpp/OscillatorNode.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#pragma once

#include <fbjni/fbjni.h>
#include <jsi/jsi.h>
#include <react/jni/CxxModuleWrapper.h>
#include <react/jni/JMessageQueueThread.h>
#include <memory>
#include "OscillatorNodeHostObject.h"
#include "AudioDestinationNode.h"

namespace audiocontext {
Expand All @@ -14,7 +12,6 @@ namespace audiocontext {
using namespace facebook::jni;

class AudioDestinationNode;
class OscillatorNodeHostObject;

class OscillatorNode : public jni::HybridClass<OscillatorNode> {
public:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package com.audiocontext.context

import android.media.AudioTrack
import com.audiocontext.nodes.AudioDestinationNode
import com.audiocontext.nodes.AudioNode
import com.audiocontext.nodes.oscillator.OscillatorNode
import com.facebook.jni.HybridData

interface BaseAudioContext {
val sampleRate: Int
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.audiocontext.nativemodules

import com.audiocontext.context.AudioContext
import com.facebook.jni.HybridData
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReactMethod
Expand Down
2 changes: 2 additions & 0 deletions cpp/AudioContext/AudioContextHostObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include <jsi/jsi.h>
#include "AudioContextWrapper.h"
#include "OscillatorNodeHostObject.h"
#include "AudioDestinationNodeHostObject.h"

namespace audiocontext
{
Expand Down
2 changes: 1 addition & 1 deletion cpp/AudioDestinationNode/AudioDestinationNodeHostObject.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <jsi/jsi.h>
#include "AudioDestinationNodeHostObject.h"
#include "AudioDestinationNodeWrapper.h"
#include "OscillatorNodeWrapper.h"

namespace audiocontext {
Expand Down

0 comments on commit 319cd81

Please sign in to comment.