Skip to content

Commit 330e5f7

Browse files
Merge pull request #25 from MirrorFly/release_sdk/V2.3.4
Release sdk/v2.3.4
2 parents 5f63ae7 + 218894c commit 330e5f7

37 files changed

+15311
-49961
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ local.properties
3333
.cxx/
3434
*.keystore
3535
!debug.keystore
36+
.kotlin/
3637

3738
# node.js
3839
#
3940
node_modules/
4041
npm-debug.log
4142
yarn-error.log
42-
package-lock.json
4343
yarn.lock
4444

4545
# fastlane

App.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ import React from 'react';
22
import { Platform } from 'react-native';
33
import { MirrorflyChatComponent } from './src/MirrorflyChatComponent';
44
import { CallComponent } from './src/calls/CallComponent';
5+
import { SafeAreaProvider } from 'react-native-safe-area-context';
56

67
export const MirrorflyComponent = (props = {}) => {
78
const renderCallComponent = () => {
89
return Platform.OS === 'ios' ? <CallComponent /> : null;
910
};
1011

1112
return (
12-
<>
13+
<SafeAreaProvider>
1314
<MirrorflyChatComponent {...props} />
1415
{renderCallComponent()}
15-
</>
16+
</SafeAreaProvider>
1617
);
1718
};
1819

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ ruby ">= 2.6.10"
66
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
77
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
88
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9+
gem 'xcodeproj', '< 1.26.0'
10+
gem 'concurrent-ruby', '< 1.3.4'
11+
12+
# Ruby 3.4.0 has removed some libraries from the standard library.
13+
gem 'bigdecimal'
14+
gem 'logger'
15+
gem 'benchmark'
16+
gem 'mutex_m'

__tests__/App.test.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22
* @format
33
*/
44

5-
import 'react-native';
65
import React from 'react';
6+
import ReactTestRenderer from 'react-test-renderer';
77
import App from '../App';
88

9-
// Note: import explicitly to use the types shipped with jest.
10-
import {it} from '@jest/globals';
11-
12-
// Note: test renderer must be required after react-native.
13-
import renderer from 'react-test-renderer';
14-
15-
it('renders correctly', () => {
16-
renderer.create(<App />);
9+
test('renders correctly', async () => {
10+
await ReactTestRenderer.act(() => {
11+
ReactTestRenderer.create(<App />);
12+
});
1713
});

android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ def enableProguardInReleaseBuilds = false
6969
* The preferred build flavor of JavaScriptCore (JSC)
7070
*
7171
* For example, to use the international variant, you can use:
72-
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
72+
* `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
7373
*
7474
* The international variant includes ICU i18n library and necessary data
7575
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
7676
* give correct results when using with locales other than en-US. Note that
7777
* this variant is about 6MiB larger per architecture than default.
7878
*/
79-
def jscFlavor = 'org.webkit:android-jsc:+'
79+
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
8080

8181
android {
8282

@@ -97,7 +97,7 @@ android {
9797
minSdkVersion rootProject.ext.minSdkVersion
9898
targetSdkVersion rootProject.ext.targetSdkVersion
9999
versionCode 1
100-
versionName "3.3.7"
100+
versionName "3.4.5"
101101
/** Add this for react-native-camera */
102102
missingDimensionStrategy 'react-native-camera', 'general'
103103
multiDexEnabled true

android/app/jni/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set(CMAKE_C_FLAGS "-w -std=c11 -DANDROID -D_LARGEFILE_SOURCE=1 -g")
55
set(CMAKE_ASM_FLAGS "${CFLAGS} -x assembler-with-cpp")
66
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections")
77
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffunction-sections -fdata-sections")
8-
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--exclude-libs,${CMAKE_HOME_DIRECTORY}/ffmpeg/${ANDROID_ABI}/libswscale.a,
8+
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,max-page-size=16384,--exclude-libs,${CMAKE_HOME_DIRECTORY}/ffmpeg/${ANDROID_ABI}/libswscale.a,
99
${CMAKE_HOME_DIRECTORY}/ffmpeg/${ANDROID_ABI}/libavformat.a,
1010
${CMAKE_HOME_DIRECTORY}/ffmpeg/${ANDROID_ABI}/libavcodec.a,
1111
${CMAKE_HOME_DIRECTORY}/ffmpeg/${ANDROID_ABI}/libavresample.a,

android/app/src/main/java/com/mirrorfly_rn/MainApplication.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1111
import com.facebook.react.defaults.DefaultReactNativeHost
1212
import com.facebook.react.modules.i18nmanager.I18nUtil
1313
import com.facebook.soloader.SoLoader
14+
import com.facebook.react.soloader.OpenSourceMergedSoMapping
1415
import com.mirrorfly_rn.newfilecompression.systemlibLoader.NativeLoader
1516

1617
class MainApplication : Application(), ReactApplication {
@@ -48,7 +49,7 @@ class MainApplication : Application(), ReactApplication {
4849
NativeLoader.initNativeLibs(applicationContext)
4950
val sharedI18nUtilInstance = I18nUtil.instance
5051
sharedI18nUtilInstance.allowRTL(applicationContext, true)
51-
SoLoader.init(this, false)
52+
SoLoader.init(this, OpenSourceMergedSoMapping)
5253
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
5354
// If you opted-in for the New Architecture, we load the native entry point for this app.
5455
load()

android/app/src/main/java/com/mirrorfly_rn/MediaService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ class MediaService(var reactContext: ReactApplicationContext?) :
738738
Log.d(name, "uploadUrl $bytesRead $uploadUrl")
739739
// Upload the chunk
740740
val (success, statusCode) = uploadChunk(
741-
uploadUrl,
741+
uploadUrl.toString(),
742742
buffer.copyOf(bytesRead)
743743
) // Use only the read portion of the buffer
744744

@@ -1058,7 +1058,7 @@ class MediaService(var reactContext: ReactApplicationContext?) :
10581058
}
10591059

10601060
}
1061-
val mediacontrol = MediaController(formatedPath, outputPath, compressListener)
1061+
val mediacontrol = MediaController(formatedPath!!, outputPath, compressListener)
10621062
mediacontrol.processVideo()
10631063
} catch (e: java.lang.Exception) {
10641064
promise.reject("COMPRESSION_FAILED", "Compression failed: " + e.message, e)

android/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
buildscript {
22
ext {
3-
buildToolsVersion = "34.0.0"
4-
minSdkVersion = 23
5-
compileSdkVersion = 34
6-
targetSdkVersion = 34
7-
ndkVersion = "26.1.10909125"
8-
kotlinVersion = "1.9.24"
3+
buildToolsVersion = "35.0.0"
4+
minSdkVersion = 24
5+
compileSdkVersion = 35
6+
targetSdkVersion = 35
7+
ndkVersion = "27.1.12297006"
8+
kotlinVersion = "2.0.21"
99
}
1010
repositories {
1111
google()
1212
mavenCentral()
1313
}
1414
dependencies {
15-
classpath("com.android.tools.build:gradle")
15+
classpath("com.android.tools.build:gradle:8.11.0")
1616
classpath("com.facebook.react:react-native-gradle-plugin")
1717
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
1818
/** Add this Firebase intialize */
252 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)