-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from middleware-labs/mobile-recording-ios
feat: ❇️ added initial commit for mobile recording ios
- Loading branch information
Showing
27 changed files
with
1,033 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
android/src/main/java/com/middlewarereactnative/NativeSanitizedView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.middlewarereactnative; | ||
|
||
import android.content.Context; | ||
import android.view.ViewGroup; | ||
|
||
import io.middleware.android.sdk.Middleware; | ||
|
||
public class NativeSanitizedView extends ViewGroup { | ||
public NativeSanitizedView(Context context) { | ||
super(context); | ||
Middleware.getInstance().addSanitizedElement(this); | ||
} | ||
|
||
@Override | ||
protected void onLayout(boolean changed, int l, int t, int r, int b) { | ||
|
||
} | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
android/src/main/java/com/middlewarereactnative/NativeSanitizedViewManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.middlewarereactnative; | ||
|
||
import android.view.ViewGroup; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
import com.facebook.react.uimanager.ThemedReactContext; | ||
import com.facebook.react.uimanager.ViewGroupManager; | ||
|
||
public class NativeSanitizedViewManager extends ViewGroupManager<ViewGroup> { | ||
@NonNull | ||
@Override | ||
public String getName() { | ||
return "NativeSanitizedView"; | ||
} | ||
|
||
@NonNull | ||
@Override | ||
protected ViewGroup createViewInstance(@NonNull ThemedReactContext themedReactContext) { | ||
return new NativeSanitizedView(themedReactContext); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.