Skip to content

Commit

Permalink
[FCE-528]: Rename org.membraneframework.reactnative (#113)
Browse files Browse the repository at this point in the history
## Description

- Renamed android package name to `io.fishjam.reactnative`

## Motivation and Context

- We were using old package name

## How has this been tested?

- Successfully built Android.

## Types of changes

- [x] Breaking change (fix or feature that would cause existing
functionality to
      not work as expected)

## Checklist:

- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.

## Screenshots (if appropriate)
  • Loading branch information
MiloszFilimowski authored Sep 17, 2024
1 parent 175742c commit c33ab20
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 22 deletions.
4 changes: 2 additions & 2 deletions packages/react-native-client/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven-publish'

group = 'org.membraneframework.reactnative'
group = 'io.fishjam.reactnative'
version = '0.1.1'

buildscript {
Expand Down Expand Up @@ -52,7 +52,7 @@ afterEvaluate {
}

android {
namespace = "org.membraneframework.reactnative"
namespace = "io.fishjam.reactnative"
compileSdk(31)

defaultConfig {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

import com.twilio.audioswitch.AudioDevice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

import android.content.Context
import android.os.Handler
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

object EmitableEvents {
const val IsCameraOn = "IsCameraOn"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

import com.fishjamcloud.client.models.AuthError
import expo.modules.kotlin.exception.CodedException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

import android.app.Notification
import android.app.NotificationChannel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

import android.app.Activity
import android.content.ActivityNotFoundException
Expand Down Expand Up @@ -116,7 +116,7 @@ class RNFishjamClient(
}
}

private fun getSimulcastConfigFromOptions(simulcastConfigMap: org.membraneframework.reactnative.SimulcastConfig): SimulcastConfig {
private fun getSimulcastConfigFromOptions(simulcastConfigMap: io.fishjam.reactnative.SimulcastConfig): SimulcastConfig {
val simulcastEnabled = simulcastConfigMap.enabled
val activeEncodings = simulcastConfigMap.activeEncodings.map { e -> e.toTrackEncoding() }
return SimulcastConfig(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

import android.content.Intent
import android.os.Build
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

import com.fishjamcloud.client.models.TrackEncoding

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

import android.content.Context
import com.fishjamcloud.client.media.LocalVideoTrack
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

import expo.modules.kotlin.modules.Module
import expo.modules.kotlin.modules.ModuleDefinition
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

import android.content.Context
import com.fishjamcloud.client.media.VideoTrack
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

import expo.modules.kotlin.modules.Module
import expo.modules.kotlin.modules.ModuleDefinition
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.membraneframework.reactnative
package io.fishjam.reactnative

import android.animation.ValueAnimator
import android.content.Context
Expand Down
6 changes: 3 additions & 3 deletions packages/react-native-client/expo-module.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
},
"android": {
"modules": [
"org.membraneframework.reactnative.RNFishjamClientModule",
"org.membraneframework.reactnative.VideoPreviewViewModule",
"org.membraneframework.reactnative.VideoRendererViewModule"
"io.fishjam.reactnative.RNFishjamClientModule",
"io.fishjam.reactnative.VideoPreviewViewModule",
"io.fishjam.reactnative.VideoRendererViewModule"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ const withFishjamForegroundService: ConfigPlugin = (config) => {

const newService = {
$: {
'android:name':
'org.membraneframework.reactnative.FishjamForegroundService',
'android:name': 'io.fishjam.reactnative.FishjamForegroundService',
'android:foregroundServiceType': 'camera|microphone|mediaProjection',
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { ForegroundServiceOptions } from '../types';
* as well as FishjamForegroundService in your AndroidManifest:
* @example
```
<service android:name="org.membraneframework.reactnative.FishjamForegroundService" android:foregroundServiceType="camera|microphone|mediaProjection"/>
<service android:name="io.fishjam.reactnative.FishjamForegroundService" android:foregroundServiceType="camera|microphone|mediaProjection"/>
```
*/
export const startForegroundService = (options: ForegroundServiceOptions) => {
Expand Down

0 comments on commit c33ab20

Please sign in to comment.