Skip to content

Commit 5dde03e

Browse files
Merge pull request #246 from internxt/revert-220-bring_updates
Revert "[_] Bring updates"
2 parents b020eee + bbb0c7b commit 5dde03e

447 files changed

Lines changed: 5477 additions & 13256 deletions

File tree

Some content is hidden

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

.github/workflows/ci-lua.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Luacheck
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
10+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1
1111

1212
- name: Install luarocks
1313
run: sudo apt-get --install-recommends -y install luarocks

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f #v10.2.0
10+
- uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 #v10.1.0
1111
with:
1212
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
1313
stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ all.css
1313
# Coverage
1414
coverage
1515

16-
#Build artifacts
17-
dist/
18-
1916
# CocoaPods
2017
Pods/
2118

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24
1+
22

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ GEM
2626
artifactory (3.0.17)
2727
atomos (0.1.3)
2828
aws-eventstream (1.4.0)
29-
aws-partitions (1.1220.0)
30-
aws-sdk-core (3.242.0)
29+
aws-partitions (1.1196.0)
30+
aws-sdk-core (3.240.0)
3131
aws-eventstream (~> 1, >= 1.3.0)
3232
aws-partitions (~> 1, >= 1.992.0)
3333
aws-sigv4 (~> 1.9)
3434
base64
3535
bigdecimal
3636
jmespath (~> 1, >= 1.6.1)
3737
logger
38-
aws-sdk-kms (1.122.0)
39-
aws-sdk-core (~> 3, >= 3.241.4)
38+
aws-sdk-kms (1.118.0)
39+
aws-sdk-core (~> 3, >= 3.239.1)
4040
aws-sigv4 (~> 1.5)
4141
aws-sdk-s3 (1.208.0)
4242
aws-sdk-core (~> 3, >= 3.234.0)

Makefile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ CLEANCSS = ./node_modules/.bin/cleancss
33
DEPLOY_DIR = libs
44
DIST_DIR = dist
55
ONNX_DIR= node_modules/onnxruntime-web
6-
LIBJITSIMEET_DIR = node_modules/lib-meet
6+
LIBJITSIMEET_DIR = node_modules/lib-jitsi-meet
77
TF_WASM_DIR = node_modules/@tensorflow/tfjs-backend-wasm/dist/
88
RNNOISE_WASM_DIR = node_modules/@jitsi/rnnoise-wasm/dist
9-
EXCALIDRAW_DIR = node_modules/@jitsi/excalidraw/dist/prod
10-
EXCALIDRAW_DIR_DEV = node_modules/@jitsi/excalidraw/dist/dev
9+
EXCALIDRAW_DIR = node_modules/@jitsi/excalidraw/dist/excalidraw-assets
10+
EXCALIDRAW_DIR_DEV = node_modules/@jitsi/excalidraw/dist/excalidraw-assets-dev
1111
TFLITE_WASM = react/features/stream-effects/virtual-background/vendor/tflite
1212
MEET_MODELS_DIR = react/features/stream-effects/virtual-background/vendor/models
1313
FACE_MODELS_DIR = node_modules/@vladmandic/human-models/models
@@ -28,16 +28,14 @@ endif
2828
all: compile deploy
2929

3030
compile: clean
31-
NODE_OPTIONS=--max-old-space-size=8192 $(WEBPACK) --env bundle=app & \
32-
NODE_OPTIONS=--max-old-space-size=8192 $(WEBPACK) --env bundle=api & \
33-
NODE_OPTIONS=--max-old-space-size=8192 $(WEBPACK) --env bundle=workers & \
34-
wait
31+
NODE_OPTIONS=--max-old-space-size=8192 \
32+
$(WEBPACK)
3533

3634
clean:
3735
rm -fr $(BUILD_DIR)
3836

3937
.NOTPARALLEL:
40-
deploy: deploy-init deploy-appbundle deploy-rnnoise-binary deploy-excalidraw deploy-tflite deploy-meet-models deploy-lib-meet deploy-tf-wasm deploy-css deploy-local deploy-face-landmarks
38+
deploy: deploy-init deploy-appbundle deploy-rnnoise-binary deploy-excalidraw deploy-tflite deploy-meet-models deploy-lib-jitsi-meet deploy-tf-wasm deploy-css deploy-local deploy-face-landmarks
4139

4240
deploy-init:
4341
rm -fr $(DEPLOY_DIR)
@@ -52,9 +50,9 @@ deploy-appbundle:
5250
cp $(BUILD_DIR)/*.min.js $(DEPLOY_DIR)
5351
-cp $(BUILD_DIR)/*.min.js.map $(DEPLOY_DIR)
5452

55-
deploy-lib-meet:
53+
deploy-lib-jitsi-meet:
5654
cp \
57-
$(LIBJITSIMEET_DIR)/dist/umd/lib-meet.* \
55+
$(LIBJITSIMEET_DIR)/dist/umd/lib-jitsi-meet.* \
5856
$(LIBJITSIMEET_DIR)/dist/umd/vodozemac.wasm \
5957
$(DEPLOY_DIR)
6058

@@ -74,12 +72,14 @@ deploy-tflite:
7472
$(DEPLOY_DIR)
7573

7674
deploy-excalidraw:
77-
mkdir -p $(DEPLOY_DIR)/excalidraw
78-
cp -R $(EXCALIDRAW_DIR)/fonts $(DEPLOY_DIR)/excalidraw/
75+
cp -R \
76+
$(EXCALIDRAW_DIR) \
77+
$(DEPLOY_DIR)/
7978

8079
deploy-excalidraw-dev:
81-
mkdir -p $(DEPLOY_DIR)/excalidraw
82-
cp -R $(EXCALIDRAW_DIR_DEV)/fonts $(DEPLOY_DIR)/excalidraw/
80+
cp -R \
81+
$(EXCALIDRAW_DIR_DEV) \
82+
$(DEPLOY_DIR)/
8383

8484
deploy-meet-models:
8585
cp \
@@ -103,7 +103,7 @@ deploy-local:
103103
([ ! -x deploy-local.sh ] || ./deploy-local.sh)
104104

105105
.NOTPARALLEL:
106-
dev: deploy-init deploy-css deploy-rnnoise-binary deploy-tflite deploy-meet-models deploy-lib-meet deploy-tf-wasm deploy-excalidraw-dev deploy-face-landmarks
106+
dev: deploy-init deploy-css deploy-rnnoise-binary deploy-tflite deploy-meet-models deploy-lib-jitsi-meet deploy-tf-wasm deploy-excalidraw-dev deploy-face-landmarks
107107
$(WEBPACK_DEV_SERVER)
108108

109109
source-package:

android/app/proguard-rules-release.pro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
-keepattributes SourceFile,LineNumberTable
66
-keep public class * extends java.lang.Exception
77

8-
# Giphy SDK using Kotlin Parcelize
8+
# R8 missing classes - suppress warnings
9+
-dontwarn com.facebook.memory.config.MemorySpikeConfig
910
-dontwarn kotlinx.parcelize.Parcelize

android/build.gradle

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ buildscript {
3232
googleServicesEnabled = project.file('app/google-services.json').exists() && !libreBuild
3333

3434
//React Native and Hermes Version
35-
rnVersion = "0.79.7"
35+
rnVersion = "0.77.2"
3636

3737
// Java dependencies
3838
javaVersion = JavaVersion.VERSION_17
@@ -46,7 +46,6 @@ buildscript {
4646
dependencies {
4747
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$rootProject.ext.kotlinVersion"
4848
classpath "com.android.tools.build:gradle:$rootProject.ext.gradlePluginVersion"
49-
classpath "com.facebook.react:react-native-gradle-plugin:$rootProject.ext.rnVersion"
5049
classpath 'com.google.gms:google-services:4.4.0'
5150
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'
5251
}
@@ -72,11 +71,6 @@ allprojects {
7271
details.useVersion rootProject.ext.rnVersion
7372
}
7473
}
75-
// Redirect the old com.facebook.hermes group (used by some third-party modules)
76-
// to the canonical com.facebook.react:hermes-android artifact.
77-
if (details.requested.group == 'com.facebook.hermes' && details.requested.name == 'hermes-android') {
78-
details.useTarget "com.facebook.react:hermes-android:$rnVersion"
79-
}
8074
}
8175
}
8276
}
@@ -85,7 +79,7 @@ allprojects {
8579
// on and which are not available in third-party Maven repositories need to
8680
// be deployed in a Maven repository of ours.
8781

88-
if (project.name.contains('react-native')) {
82+
if (project.name.startsWith('react-native-')) {
8983
apply plugin: 'maven-publish'
9084
publishing {
9185
publications {}
@@ -116,7 +110,7 @@ allprojects {
116110
}
117111
}
118112

119-
if (project.name.contains('react-native')) {
113+
if (project.name.startsWith('react-native-')) {
120114
def npmManifest = project.file('../package.json')
121115
def json = new JsonSlurper().parseText(npmManifest.text)
122116

android/gradle.properties

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
# Default value: -Xmx1024m -XX:MaxPermSize=256m
1313

1414
org.gradle.jvmargs=-Xmx4048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
15-
# -Xmx4048m: Set max heap size to 4GB to prevent out-of-memory errors during builds.
16-
# -XX:+HeapDumpOnOutOfMemoryError: Save heap dump file when memory errors occur (for debugging).
17-
# -Dfile.encoding=UTF-8: Use UTF-8 encoding for file operations (handles international characters).
1815

1916
# When configured, Gradle will run in incubating parallel mode.
2017
# This option should only be used with decoupled projects. More details, visit

android/sdk/build.gradle

Lines changed: 80 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.facebook.react'
32
apply plugin: 'maven-publish'
43

54
android {
@@ -53,19 +52,19 @@ dependencies {
5352

5453
// Only add these packages if we are NOT doing a LIBRE_BUILD
5554
if (!rootProject.ext.libreBuild) {
56-
implementation project(':amplitude-analytics-react-native')
57-
implementation project(':giphy-react-native-sdk')
58-
implementation(project(':react-native-google-signin-google-signin')) {
55+
implementation project(':react-native-amplitude')
56+
implementation project(':react-native-giphy')
57+
implementation(project(':react-native-google-signin')) {
5958
exclude group: 'com.google.android.gms'
6059
exclude group: 'androidx'
6160
}
6261
}
6362

64-
implementation project(':react-native-async-storage-async-storage')
63+
implementation project(':react-native-async-storage')
6564
implementation project(':react-native-background-timer')
6665
implementation project(':react-native-calendar-events')
67-
implementation project(':react-native-clipboard-clipboard')
68-
implementation project(':react-native-community-netinfo')
66+
implementation project(':react-native-community_clipboard')
67+
implementation project(':react-native-community_netinfo')
6968
implementation project(':react-native-default-preference')
7069
implementation(project(':react-native-device-info')) {
7170
exclude group: 'com.google.firebase'
@@ -74,13 +73,13 @@ dependencies {
7473
}
7574
implementation project(':react-native-gesture-handler')
7675
implementation project(':react-native-get-random-values')
77-
implementation project(':sayem314-react-native-keep-awake')
76+
implementation project(':react-native-keep-awake')
7877
implementation project(':react-native-orientation-locker')
7978
implementation project(':react-native-pager-view')
8079
implementation project(':react-native-performance')
8180
implementation project(':react-native-safe-area-context')
8281
implementation project(':react-native-screens')
83-
implementation project(':react-native-community-slider')
82+
implementation project(':react-native-slider')
8483
implementation project(':react-native-sound')
8584
implementation project(':react-native-splash-view')
8685
implementation project(':react-native-svg')
@@ -136,8 +135,17 @@ android.libraryVariants.all { def variant ->
136135
// Set up dev mode
137136
def devEnabled = !targetName.toLowerCase().contains("release")
138137

138+
// Run the bundler
139+
// Use full path to node to avoid PATH issues in Gradle
140+
def nodePath = System.getenv('NVM_BIN') ? "${System.getenv('NVM_BIN')}/node" : "node"
141+
142+
// Debug: Print the node path and environment
143+
println "Using node path: ${nodePath}"
144+
println "NVM_BIN: ${System.getenv('NVM_BIN')}"
145+
println "Working directory: ${reactRoot}"
146+
139147
commandLine(
140-
"node",
148+
nodePath,
141149
"node_modules/react-native/scripts/bundle.js",
142150
"--platform", "android",
143151
"--dev", "${devEnabled}",
@@ -150,22 +158,70 @@ android.libraryVariants.all { def variant ->
150158
enabled !devEnabled
151159
}
152160

153-
// Ensure proper task ordering for Gradle 8.14+ strict dependency validation
154-
currentBundleTask.configure {
155-
mustRunAfter {
156-
def config = project.configurations.findByName("${targetPath}CompileClasspath")
157-
158-
// Fallback to an empty list(mustRunAfter expects a list, not "null" which is the og fallback),
159-
// means no config, means no constraints
160-
(config?.allDependencies ?: [])
161-
.findAll { it.hasProperty('dependencyProject') }
162-
.collectMany { dependency ->
163-
project.project(dependency.dependencyProject.path)
164-
.tasks.matching { it.name.contains(targetName) }
161+
// GRADLE REQUIREMENTS (Gradle 8.7+ / AGP 8.5.0+):
162+
163+
// This task requires explicit dependencies on resource tasks from all React Native modules
164+
// due to Gradle's strict validation of task dependencies.
165+
166+
// Without these dependencies,
167+
// builds will fail with errors like:
168+
// "Task ':sdk:bundleReleaseJsAndAssets' uses the output of task ':react-native-amplitude:packageReleaseResources'
169+
// without declaring a dependency on it."
170+
171+
// The automatic dependency resolution below ensures all required resource tasks are properly
172+
// declared as dependencies before this task executes.
173+
174+
if (variant.name.toLowerCase().contains("release")) {
175+
rootProject.subprojects.each { subproject ->
176+
if (
177+
subproject.name.startsWith("react-native-") ||
178+
subproject.name.startsWith("@react-native-") ||
179+
subproject.name.startsWith("@giphy/")
180+
) {
181+
[
182+
"packageReleaseResources",
183+
"generateReleaseResValues",
184+
"generateReleaseResources",
185+
"generateReleaseBuildConfig",
186+
"processReleaseManifest",
187+
"writeReleaseAarMetadata",
188+
"generateReleaseRFile",
189+
"compileReleaseLibraryResources",
190+
"compileReleaseJavaWithJavac",
191+
"javaPreCompileRelease",
192+
"bundleLibCompileToJarRelease",
193+
"exportReleaseConsumerProguardFiles",
194+
"mergeReleaseGeneratedProguardFiles",
195+
"mergeReleaseJniLibFolders",
196+
"mergeReleaseShaders",
197+
"packageReleaseAssets",
198+
"processReleaseJavaRes",
199+
"prepareReleaseArtProfile",
200+
"copyReleaseJniLibsProjectOnly",
201+
"extractDeepLinksRelease",
202+
"createFullJarRelease",
203+
"generateReleaseLintModel",
204+
"writeReleaseLintModelMetadata",
205+
"generateReleaseLintVitalModel",
206+
"lintVitalAnalyzeRelease",
207+
"lintReportRelease",
208+
"lintAnalyzeRelease",
209+
"lintReportDebug",
210+
"lintAnalyzeDebug"
211+
].each { taskName ->
212+
if (subproject.tasks.findByName(taskName)) {
213+
currentBundleTask.dependsOn(subproject.tasks.named(taskName))
214+
}
165215
}
216+
217+
// Also depend on the main build task to ensure all sub-tasks are completed
218+
if (subproject.tasks.findByName("build")) {
219+
currentBundleTask.dependsOn(subproject.tasks.named("build"))
220+
}
221+
}
166222
}
167223
}
168-
224+
169225
currentBundleTask.ext.generatedResFolders = files(resourcesDir).builtBy(currentBundleTask)
170226
currentBundleTask.ext.generatedAssetsFolders = files(jsBundleDir).builtBy(currentBundleTask)
171227
variant.registerGeneratedResFolders(currentBundleTask.generatedResFolders)
@@ -235,7 +291,7 @@ publishing {
235291
def groupId = it.moduleGroup
236292
def artifactId = it.moduleName
237293

238-
if (artifactId.contains('react-native')) {
294+
if (artifactId.startsWith('react-native-')) {
239295
groupId = rootProject.ext.moduleGroupId
240296
}
241297

0 commit comments

Comments
 (0)