Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nt/upgrade rn to 0.77 #2958

Open
wants to merge 107 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
757f71f
removed tus js client
noumantahir Jan 24, 2025
b25c456
added tus js client
noumantahir Jan 24, 2025
d35a1de
updated speak uploader api to support tus js client
noumantahir Jan 24, 2025
6c55943
padding thumbnail as Image media type to uploader
noumantahir Jan 24, 2025
534d1f4
modified uri for android support
noumantahir Jan 29, 2025
f28519b
lint
noumantahir Jan 29, 2025
c85b8b9
upgrade reanimated
noumantahir Jan 30, 2025
0ec8995
upgrade rn-svg
noumantahir Jan 31, 2025
2f1ff36
disable dflipper
noumantahir Feb 6, 2025
f110703
disable flipper in podfile
noumantahir Feb 6, 2025
8fe49e6
update webview
noumantahir Feb 7, 2025
5541b45
removed animatable in fovour of reanimated
noumantahir Feb 7, 2025
209316f
email package update
noumantahir Feb 7, 2025
9f6526b
update auto height web view
noumantahir Feb 7, 2025
f095fc7
update bootsplash package
noumantahir Feb 7, 2025
8467feb
update chartkit package
noumantahir Feb 7, 2025
bfd202c
create thumbnail package upgrade
noumantahir Feb 10, 2025
efbe413
update date picker package
noumantahir Feb 11, 2025
90d8dd5
device info package update
noumantahir Feb 11, 2025
1c61fb7
remove unused react-native-dynamic package
noumantahir Feb 11, 2025
f44228b
update gesture handler package
noumantahir Feb 11, 2025
7885a8b
removed unused patch
noumantahir Feb 11, 2025
5965a9d
update heic converter
noumantahir Feb 11, 2025
c299bcf
removed unused android toolbar package
noumantahir Feb 11, 2025
7c9f0ce
removed unused snap carousel package
noumantahir Feb 11, 2025
b56b698
update iap package
noumantahir Feb 12, 2025
f0c8743
updated packages orientation pager-view permissions render-html qrcod…
noumantahir Feb 12, 2025
45b2f35
update packages safe-area dropdown tab-view udp vector-icons
noumantahir Feb 12, 2025
3bccfb3
remove unused swiper package
noumantahir Feb 12, 2025
f672eda
update rn video
noumantahir Feb 13, 2025
21560f6
remove unused redux helpers
noumantahir Feb 13, 2025
d9be0c2
yarn lock update
noumantahir Feb 13, 2025
80626f8
remove outdated stacktrace parser in favour rn dependent variant
noumantahir Feb 13, 2025
04a8904
updated pure node packages
noumantahir Feb 13, 2025
b354c29
update lottie and notifee
noumantahir Feb 13, 2025
5d08c2f
update react query, storage, flash list, dhive, clipboard, netinfo pa…
noumantahir Feb 13, 2025
17be675
assert update, yarnk lock update
noumantahir Feb 13, 2025
02b13f7
refresh yarn lock
noumantahir Feb 13, 2025
eb42573
removed flipper leftover from js side
noumantahir Feb 13, 2025
441d575
use beta rn fetch blob
noumantahir Feb 13, 2025
f45cf69
upgrade rn node side
noumantahir Feb 13, 2025
4153f16
upgrade rn android side
noumantahir Feb 13, 2025
39121ba
revert changes of mainapplication.java
noumantahir Feb 13, 2025
2aace65
converted mainapplication java to kotlin with required updates
noumantahir Feb 19, 2025
d2842a8
update vision camera
noumantahir Feb 19, 2025
007591f
update expo packages
noumantahir Feb 19, 2025
068b73d
succeeded ios build with new rn
noumantahir Feb 20, 2025
0770991
patched react native slider to not use ViewPropTypes
noumantahir Feb 20, 2025
10e8e8f
using RTL property directly instead through NativeModules
noumantahir Feb 20, 2025
2b093b3
yarn lock update
noumantahir Feb 20, 2025
87a09ed
removed react query flipper plugin
noumantahir Feb 20, 2025
447412b
relink google services file in ios
noumantahir Feb 20, 2025
08ecddd
migrated render label
noumantahir Feb 20, 2025
ed4cd98
update safe area context package
noumantahir Feb 20, 2025
d5a7cd3
safely removed existing firebase packages
noumantahir Feb 20, 2025
fe8d188
re-added firebase core package
noumantahir Feb 20, 2025
0e1b6e7
readded updated firebase packages
noumantahir Feb 21, 2025
bea6b9c
updated eslint rule
noumantahir Feb 21, 2025
4ef9d67
enabled android new arch
noumantahir Feb 21, 2025
92a917f
updated patches
noumantahir Feb 22, 2025
a6963e5
lint
noumantahir Feb 22, 2025
0f9a840
no unused vars
noumantahir Feb 22, 2025
4c696b6
using expo babel plugin
noumantahir Feb 22, 2025
1eaca53
using metro expo config
noumantahir Feb 22, 2025
8f4e25d
Revert "using metro expo config"
noumantahir Feb 22, 2025
457bb55
put back tus client patch
noumantahir Feb 22, 2025
241efe2
using modular firbase api
noumantahir Feb 22, 2025
15bd073
Merge branch 'nt/tus-migration' into nt/upgrade-rn
noumantahir Feb 23, 2025
0986b9e
lock file updates
noumantahir Feb 23, 2025
57774e1
generate codegen artifact pre-build
noumantahir Feb 24, 2025
c395953
added missing js client
noumantahir Feb 24, 2025
78430fb
reorder gradlew commands
noumantahir Feb 24, 2025
a1a6de9
bugsnag update
noumantahir Feb 24, 2025
6e0eb81
removed extra bugsnag pacakges
noumantahir Feb 24, 2025
a5b4f00
removed codegen command for testing
noumantahir Feb 24, 2025
8fe8555
unified GoogleUtilities pods
noumantahir Feb 24, 2025
7740967
downgraded gradle
noumantahir Feb 24, 2025
0f4bf4f
applied cmake patch
noumantahir Feb 24, 2025
b45a2cb
bumped gradle
noumantahir Feb 24, 2025
b8f1292
disabled new arch for now
noumantahir Feb 24, 2025
f4c4fd7
version bump
noumantahir Feb 25, 2025
80df5d1
upgrade to rn 77
noumantahir Feb 25, 2025
75af3bf
removed rn 76 cmake patch
noumantahir Feb 25, 2025
6347b2d
test enable new arch with 0.77
noumantahir Feb 25, 2025
bb1ec7b
Revert "test enable new arch with 0.77"
noumantahir Feb 25, 2025
738a190
using expo crypto to generate hash
noumantahir Feb 25, 2025
189cde3
migrated modal to use default modal
noumantahir Feb 26, 2025
051f34b
remove react-native-modal
noumantahir Feb 26, 2025
97eee38
removed ineffective safeareaview from basic header and search header
noumantahir Feb 26, 2025
eef3b1c
made sure every primary screen has an effective safe area view
noumantahir Feb 26, 2025
36d8dda
fined asset card footer margins
noumantahir Feb 26, 2025
eda610e
fixed tab bar item label color
noumantahir Feb 26, 2025
22dc89f
added popover-view package
noumantahir Feb 26, 2025
e11822f
migrated popover wrapper to use popover-view instead of modal-popover
noumantahir Feb 26, 2025
da964a8
migrated formInput popover and userlist popover to use popover-view i…
noumantahir Feb 27, 2025
c0138e1
removed tooltip view in favour of popupwrapper
noumantahir Feb 27, 2025
21c3b5e
migrated upvote popover to use popover-view instead of popover-modal …
noumantahir Feb 27, 2025
706ed92
lint
noumantahir Feb 27, 2025
6a43b60
fine tuned action modal bottom padding
noumantahir Feb 27, 2025
5d20bb7
rename anchorRect to sourceRef
noumantahir Feb 27, 2025
5b8e99a
rename anchorRect to sourceRef
noumantahir Feb 27, 2025
d3137a1
fine tuned side menu header
noumantahir Feb 27, 2025
5463f48
update crop image picker
noumantahir Feb 28, 2025
c1146cf
removed read storage permission
noumantahir Feb 28, 2025
32da3aa
removed dex options from build.gradle
noumantahir Feb 28, 2025
267a7af
convert scaleSlider to functiona along with slider key update with va…
noumantahir Mar 8, 2025
af7125c
replaced .lastIndex with .at for comments pagination cursor
noumantahir Mar 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
"class-methods-use-this": "off",
"react/jsx-wrap-multilines": "off",
"jsx-one-expression-per-line": "off",
"react/jsx-one-expression-per-line": "off"
"react/jsx-one-expression-per-line": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
12 changes: 10 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
ios/.xcode.env.local
**/.xcode.env.local

# Android/IntelliJ
#
Expand Down Expand Up @@ -57,14 +57,22 @@ yarn-error.log
*.jsbundle

# Ruby / CocoaPods
/ios/Pods/
**/Pods/
/vendor/bundle/

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*
# testing
/coverage

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

config.js
!src/screens/steem-connect/config.js
google-services.json
Expand Down
9 changes: 5 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ source 'https://rubygems.org'

ruby '3.0.0'

# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
# bound in the template on Cocoapods with next React Native release.
gem 'cocoapods', '>= 1.13', '< 1.15'
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
gem 'xcodeproj', '< 1.26.0'
gem 'concurrent-ruby', '< 1.3.4'
16 changes: 6 additions & 10 deletions __tests__/App-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
* @format
*/

import 'react-native';
import React from 'react';
import ReactTestRenderer from 'react-test-renderer';
import App from '../App';

// Note: import explicitly to use the types shiped with jest.
import {it} from '@jest/globals';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

it('renders correctly', () => {
renderer.create(<App />);
});
test('renders correctly', async () => {
await ReactTestRenderer.act(() => {
ReactTestRenderer.create(<App />);
});
});
34 changes: 13 additions & 21 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apply plugin: 'com.google.gms.google-services'
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"

apply plugin: "com.facebook.react"

import org.apache.tools.ant.taskdefs.condition.Os

/**
Expand All @@ -19,14 +20,14 @@ def enableProguardInReleaseBuilds = false

react {
/* Folders */
// The root of your project, i.e. where "package.json" lives. Default is '..'
// root = file("../")
// The folder where the react-native NPM package is. Default is ../node_modules/react-native
// reactNativeDir = file("../node_modules/react-native")
// The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
// codegenDir = file("../node_modules/@react-native/codegen")
// The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
// cliFile = file("../node_modules/react-native/cli.js")
// The root of your project, i.e. where "package.json" lives. Default is '../..'
// root = file("../../")
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
// reactNativeDir = file("../../node_modules/react-native")
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
// codegenDir = file("../../node_modules/@react-native/codegen")
// The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
// cliFile = file("../../node_modules/react-native/cli.js")
/* Variants */
// The list of variants to that are debuggable. For those we're going to
// skip the bundling of the JS bundle and the assets. By default is just 'debug'.
Expand Down Expand Up @@ -57,6 +58,9 @@ react {
//
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
// hermesFlags = ["-O", "-output-source-map"]

/* Autolinking */
autolinkLibrariesWithApp()
}


Expand Down Expand Up @@ -90,7 +94,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode versionMajor * 10000 + versionMinor * 100 + versionPatch
versionName "3.2.1"
versionName "3.3.0"
resValue "string", "build_config_package", "app.esteem.mobile.android"
multiDexEnabled true
// react-native-image-crop-picker
Expand All @@ -100,9 +104,6 @@ android {
}
missingDimensionStrategy 'store', 'play'
}
dexOptions {
javaMaxHeapSize "9g"
}

signingConfigs {
debug {
Expand Down Expand Up @@ -133,12 +134,10 @@ dependencies {
implementation 'com.getkeepsafe.relinker:relinker:1.4.4'

implementation("androidx.browser:browser:1.3.0")

implementation 'com.facebook.soloader:soloader:+'

// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")
implementation("com.facebook.react:flipper-integration")

if (hermesEnabled.toBoolean()) {
implementation("com.facebook.react:hermes-android")
Expand All @@ -147,14 +146,7 @@ dependencies {
}
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
apply from: file("../../node_modules/react-native-vector-icons/fonts.gradle")

apply plugin: "com.bugsnag.android.gradle"

bugsnag {
uploadReactNativeMappings = true
overwrite = true
}


8 changes: 4 additions & 4 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
Expand Down Expand Up @@ -36,8 +35,9 @@
android:icon="@mipmap/ic_launcher"
android:allowBackup="false"
android:largeHeap="true"
android:theme="@style/AppTheme">

android:theme="@style/AppTheme"
android:supportsRtl="true">

<activity
android:name=".MainActivity"
android:launchMode="singleTask"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
package app.esteem.mobile.android

import android.app.Application
import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
import com.facebook.react.ReactHost
import com.facebook.react.ReactNativeHost
import com.facebook.react.ReactPackage
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.facebook.react.defaults.DefaultReactNativeHost
import com.facebook.react.soloader.OpenSourceMergedSoMapping
import com.facebook.soloader.SoLoader

//expo related packages
import android.content.res.Configuration
import expo.modules.ApplicationLifecycleDispatcher
import expo.modules.ReactNativeHostWrapper

//custom packages
import com.getkeepsafe.relinker.ReLinker
import com.bugsnag.android.Bugsnag
import org.wonday.orientation.OrientationActivityLifecycle
import com.reactnativepagerview.PagerViewPackage

class MainApplication : Application(), ReactApplication {

override val reactNativeHost: ReactNativeHost =
ReactNativeHostWrapper(this, object : DefaultReactNativeHost(this) {
override fun getPackages(): List<ReactPackage> {
val packages = PackageList(this).packages
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage())
packages.add(PagerViewPackage())
return packages
}

override fun getJSMainModuleName(): String = "index"

override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG

override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
}
)

override val reactHost: ReactHost
get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost)

override fun onCreate() {
super.onCreate()


// Relink bugsnag for ndk and anr cases
ReLinker.loadLibrary(this, "bugsnag-ndk")
ReLinker.loadLibrary(this, "bugsnag-plugin-android-anr")

// Start bugsnag
Bugsnag.start(this /* app context */)

SoLoader.init(this, OpenSourceMergedSoMapping)

registerActivityLifecycleCallbacks(OrientationActivityLifecycle.getInstance())

if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
// If you opted-in for the New Architecture, we load the native entry point for this app.
load()
}

ApplicationLifecycleDispatcher.onApplicationCreate(this)
}

override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)
ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)
}
}
3 changes: 2 additions & 1 deletion android/app/src/main/res/drawable/rn_edit_text_material.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
android:insetTop="@dimen/abc_edit_text_inset_top_material"
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material">
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
>

<selector>
<!--
Expand Down
Loading