Skip to content

Commit af91318

Browse files
kadhar03hariramc
authored andcommitted
Merged in stage (pull request #203)
#MRN-765 Approved-by: Hariram Chandrasekaran
2 parents 56e20bf + de26aec commit af91318

File tree

92 files changed

+4930
-4892
lines changed

Some content is hidden

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

92 files changed

+4930
-4892
lines changed

.buckconfig

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"root": true,
3-
"extends": "@react-native-community",
4-
"rules": {
5-
"react-hooks/rules-of-hooks": "error",
6-
"react-hooks/exhaustive-deps": "off"
7-
}
2+
"root": true,
3+
"extends": "@react-native",
4+
"rules": {
5+
"react-hooks/rules-of-hooks": "error",
6+
"react-hooks/exhaustive-deps": "off"
7+
}
88
}

.gitignore

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ DerivedData
2020
*.hmap
2121
*.ipa
2222
*.xcuserstate
23-
ios/.xcode.env.local
23+
**/.xcode.env.local
2424

2525
# Android/IntelliJ
2626
#
@@ -58,7 +58,7 @@ yarn.lock
5858
*.jsbundle
5959

6060
# Ruby / CocoaPods
61-
/ios/Pods/
61+
**/Pods/
6262
/vendor/bundle/
6363

6464
# Temporary files created by Metro to check the health of the file watcher
@@ -79,4 +79,12 @@ mirrorfly-uikit-react-native-*.tgz
7979
# zip file
8080
*.zip
8181

82+
# Yarn
83+
.yarn/*
84+
!.yarn/patches
85+
!.yarn/plugins
86+
!.yarn/releases
87+
!.yarn/sdks
88+
!.yarn/versions
89+
8290
patches/react-native-network-logger+1.16.1.patch

.vscode/settings.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ source 'https://rubygems.org'
33
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
44
ruby ">= 2.6.10"
55

6-
gem 'cocoapods', '~> 1.13'
7-
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
8-
6+
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
7+
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8+
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
99
gem 'fastlane'
1010

1111
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')

__tests__/App.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'react-native';
66
import React from 'react';
77
import App from '../App';
88

9-
// Note: import explicitly to use the types shiped with jest.
9+
// Note: import explicitly to use the types shipped with jest.
1010
import {it} from '@jest/globals';
1111

1212
// Note: test renderer must be required after react-native.

android/app/build.gradle

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: "com.android.application"
2+
apply plugin: "org.jetbrains.kotlin.android"
23
apply plugin: "com.facebook.react"
34

45
/** Add this Firebase intialize */
@@ -10,14 +11,14 @@ apply plugin: 'com.google.gms.google-services'
1011
*/
1112
react {
1213
/* Folders */
13-
// The root of your project, i.e. where "package.json" lives. Default is '..'
14-
// root = file("../")
15-
// The folder where the react-native NPM package is. Default is ../node_modules/react-native
16-
// reactNativeDir = file("../node_modules/react-native")
17-
// The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
18-
// codegenDir = file("../node_modules/@react-native/codegen")
19-
// The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
20-
// cliFile = file("../node_modules/react-native/cli.js")
14+
// The root of your project, i.e. where "package.json" lives. Default is '../..'
15+
// root = file("../../")
16+
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
17+
// reactNativeDir = file("../../node_modules/react-native")
18+
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
19+
// codegenDir = file("../../node_modules/@react-native/codegen")
20+
// The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
21+
// cliFile = file("../../node_modules/react-native/cli.js")
2122

2223
/* Variants */
2324
// The list of variants to that are debuggable. For those we're going to
@@ -51,6 +52,9 @@ react {
5152
//
5253
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
5354
// hermesFlags = ["-O", "-output-source-map"]
55+
56+
/* Autolinking */
57+
autolinkLibrariesWithApp()
5458
}
5559

5660
/**
@@ -73,16 +77,16 @@ def jscFlavor = 'org.webkit:android-jsc:+'
7377

7478
android {
7579
ndkVersion rootProject.ext.ndkVersion
76-
77-
compileSdkVersion rootProject.ext.compileSdkVersion
80+
buildToolsVersion rootProject.ext.buildToolsVersion
81+
compileSdk rootProject.ext.compileSdkVersion
7882

7983
namespace "com.mirrorfly_rn"
8084
defaultConfig {
8185
applicationId "com.mirrorfly_rn"
8286
minSdkVersion rootProject.ext.minSdkVersion
8387
targetSdkVersion rootProject.ext.targetSdkVersion
8488
versionCode 1
85-
versionName "2.4.37"
89+
versionName "3.0.1"
8690
/** Add this for react-native-camera */
8791
missingDimensionStrategy 'react-native-camera', 'general'
8892
multiDexEnabled true
@@ -120,17 +124,9 @@ dependencies {
120124
// The version of react-native is set by the React Native Gradle Plugin
121125
implementation("com.facebook.react:react-android")
122126

123-
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
124-
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
125-
exclude group:'com.squareup.okhttp3', module:'okhttp'
126-
}
127-
128-
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
129127
if (hermesEnabled.toBoolean()) {
130128
implementation("com.facebook.react:hermes-android")
131129
} else {
132130
implementation jscFlavor
133131
}
134132
}
135-
136-
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools">
44

5-
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
6-
75
<application
86
android:usesCleartextTraffic="true"
97
tools:targetApi="28"
10-
tools:ignore="GoogleAppIndexingWarning">
11-
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
12-
</application>
8+
tools:ignore="GoogleAppIndexingWarning"/>
139
</manifest>

android/app/src/debug/java/com/mirrorfly_rn/ReactNativeFlipper.java

Lines changed: 0 additions & 75 deletions
This file was deleted.

android/app/src/main/AndroidManifest.xml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
1111
<uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" />
1212
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
13-
14-
1513
<uses-permission android:name="android.permission.RECORD_AUDIO" />
16-
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
1714
<!-- Add this android 13 permission-->
1815
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
1916
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
@@ -31,7 +28,12 @@
3128
<uses-permission android:name="android.permission.BLUETOOTH" />
3229
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
3330
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
34-
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
31+
<!-- foreground Notification permission -->
32+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
33+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA"/>
34+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE"/>
35+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE"/>
36+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"/>
3537

3638
<uses-feature
3739
android:name="android.hardware.camera"
@@ -60,20 +62,20 @@
6062
android:requestLegacyExternalStorage="true"
6163
android:roundIcon="@mipmap/ic_launcher_round"
6264
android:theme="@style/AppTheme"
63-
android:usesCleartextTraffic="true">
65+
android:usesCleartextTraffic="true"
66+
android:supportsRtl="true">
6467
<meta-data
6568
android:name="ic_notification"
6669
android:resource="@mipmap/ic_notification" />
6770
<meta-data
6871
android:name="com.google.android.geo.API_KEY"
6972
android:value="AIzaSyCfG5u1-XDZhWD8vOZGK5hTKyqsVOjHSSM" />
70-
7173
<activity
7274
android:name=".MainActivity"
7375
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
7476
android:exported="true"
7577
android:label="@string/app_name"
76-
android:launchMode="standard"
78+
android:launchMode="singleTask"
7779
android:screenOrientation="portrait"
7880
android:windowSoftInputMode="adjustResize">
7981
<intent-filter>
@@ -95,7 +97,9 @@
9597
android:name=".CallScreenActivity"
9698
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation|keyboard|keyboardHidden|uiMode"
9799
android:excludeFromRecents="true"
100+
android:taskAffinity="call.video"
98101
android:exported="false"
102+
android:autoRemoveFromRecents="true"
99103
android:launchMode="singleTask"
100104
android:lockTaskMode="if_whitelisted"
101105
android:resizeableActivity="false"
@@ -104,12 +108,12 @@
104108
android:showWhenLocked="true"
105109
android:supportsPictureInPicture="true"
106110
android:turnScreenOn="true"
107-
android:windowSoftInputMode="stateHidden" />
111+
android:windowSoftInputMode="stateHidden"/>
108112
<service
109113
android:name="app.notifee.core.ForegroundService"
110114
android:exported="false"
111-
android:foregroundServiceType="location|camera|microphone|phoneCall"
112-
tools:replace="android:foregroundServiceType"
115+
android:foregroundServiceType="mediaPlayback|camera|microphone|connectedDevice|shortService"
116+
tools:replace="android:foregroundServiceType"
113117
/>
114118
</application>
115119
<queries>

0 commit comments

Comments
 (0)