Skip to content

Commit f6cf5e1

Browse files
Merged in stage (pull request #215)
version update, story - MRN-793, MRN-802 Approved-by: vanitha.g
2 parents 8627489 + 9d66be5 commit f6cf5e1

File tree

182 files changed

+60954
-3591
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+60954
-3591
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ mirrorfly-uikit-react-native-*.tgz
8787
!.yarn/sdks
8888
!.yarn/versions
8989

90-
patches/react-native-network-logger+1.16.1.patch
90+
patches/react-native-network-logger+1.16.1.patch

ReactotronConfig.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import Reactotron from 'reactotron-react-native';
2+
3+
Reactotron.configure() // controls connection & communication settings
4+
.useReactNative({
5+
networking: {
6+
// optionally, you can turn it off with false.
7+
ignoreUrls: /symbolicate/,
8+
},
9+
}) // add all built-in react native plugins
10+
.connect(); // let's connect!

android/app/build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ apply plugin: "com.facebook.react"
55
/** Add this Firebase intialize */
66
apply plugin: 'com.google.gms.google-services'
77

8+
apply plugin: "kotlin-android"
9+
810
/**
911
* This is the configuration block to customize your React Native Android app.
1012
* By default you don't need to apply any configuration, just uncomment the lines you need.
@@ -86,7 +88,7 @@ android {
8688
minSdkVersion rootProject.ext.minSdkVersion
8789
targetSdkVersion rootProject.ext.targetSdkVersion
8890
versionCode 1
89-
versionName "3.0.1"
91+
versionName "3.0.16"
9092
/** Add this for react-native-camera */
9193
missingDimensionStrategy 'react-native-camera', 'general'
9294
multiDexEnabled true
@@ -124,6 +126,13 @@ dependencies {
124126
// The version of react-native is set by the React Native Gradle Plugin
125127
implementation("com.facebook.react:react-android")
126128

129+
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
130+
implementation 'com.google.code.gson:gson:2.6.2'
131+
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
132+
implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'
133+
134+
// exclude group:'com.squareup.okhttp3', module:'okhttp'
135+
127136
if (hermesEnabled.toBoolean()) {
128137
implementation("com.facebook.react:hermes-android")
129138
} else {

android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE"/>
3535
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE"/>
3636
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"/>
37+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC"/>
3738

3839
<uses-feature
3940
android:name="android.hardware.camera"
@@ -112,7 +113,7 @@
112113
<service
113114
android:name="app.notifee.core.ForegroundService"
114115
android:exported="false"
115-
android:foregroundServiceType="mediaPlayback|camera|microphone|connectedDevice|shortService"
116+
android:foregroundServiceType="mediaPlayback|camera|microphone|connectedDevice|shortService|dataSync"
116117
tools:replace="android:foregroundServiceType"
117118
/>
118119
</application>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package com.mirrorfly_rn
2+
3+
import okhttp3.OkHttpClient
4+
import okhttp3.RequestBody
5+
import okhttp3.ResponseBody
6+
import okhttp3.logging.HttpLoggingInterceptor
7+
import retrofit2.Call
8+
import retrofit2.Retrofit
9+
import retrofit2.converter.gson.GsonConverterFactory
10+
import retrofit2.http.Body
11+
import retrofit2.http.GET
12+
import retrofit2.http.Header
13+
import retrofit2.http.PUT
14+
import retrofit2.http.Url
15+
16+
17+
class APIClient {
18+
private var retrofit: Retrofit? = null
19+
20+
fun getClient(baseUrl:String): Retrofit? {
21+
val interceptor = HttpLoggingInterceptor()
22+
interceptor.setLevel(HttpLoggingInterceptor.Level.BODY)
23+
val client: OkHttpClient = OkHttpClient.Builder().addInterceptor(interceptor).build()
24+
retrofit = Retrofit.Builder()
25+
.baseUrl(baseUrl)
26+
.addConverterFactory(GsonConverterFactory.create())
27+
.client(client)
28+
.build()
29+
return retrofit
30+
}
31+
}
32+
interface APIInterface {
33+
@PUT
34+
fun uploadBinaryData(@Url url: String?, @Body binaryData: RequestBody?): Call<ResponseBody?>?
35+
36+
@GET
37+
fun downloadChunkFromPreAuthenticationUrl(@Url url: String?,
38+
@Header("Range") range: String): Call<ResponseBody>
39+
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ class CallScreenActivity : ReactActivity(), LifecycleEventListener {
4040
override fun createReactActivityDelegate(): ReactActivityDelegate =
4141
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
4242

43-
override fun onNewIntent(intent: Intent?) {
44-
super.onNewIntent(intent)
45-
setIntent(intent)
46-
}
43+
// override fun onNewIntent(intent: Intent?) {
44+
// super.onNewIntent(intent)
45+
// setIntent(intent)
46+
// }
4747

4848
override fun onResume() {
4949
Log.d("TAG", "onResume: CallScreenActivity Resume")

0 commit comments

Comments
 (0)