From 25dd7a098e8dd80ee924557679cca79c54b03883 Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Fri, 16 May 2025 11:37:40 -0400 Subject: [PATCH 01/17] Prepare for publishing the ReactAndroid AAR to jitpack.io --- packages/react-native/ReactAndroid/build.gradle.kts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/build.gradle.kts b/packages/react-native/ReactAndroid/build.gradle.kts index 7658a23fce3b..757224444642 100644 --- a/packages/react-native/ReactAndroid/build.gradle.kts +++ b/packages/react-native/ReactAndroid/build.gradle.kts @@ -720,5 +720,11 @@ apply(from = "./publish.gradle") // Please note that the original coordinates, `react-native`, have been voided // as they caused https://github.com/facebook/react-native/issues/35210 publishing { - publications { getByName("release", MavenPublication::class) { artifactId = "react-android" } } + publications { + getByName("release", MavenPublication::class) { + artifactId = "react-android" + groupId = "com.github.isubscribed" + version = "0.79.2.1" // Bug fix for 0.79.2 + } + } } From c6456e578e35f91d963868903c8850538a6a42d2 Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Fri, 16 May 2025 14:40:38 -0400 Subject: [PATCH 02/17] Added jitpack.yml, so as to install npx --- jitpack.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 jitpack.yml diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 000000000000..2388c3011ac1 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,9 @@ +# jitpack.yml +jdk: + - openjdk17 +install: + - sdk install java 17.0.12-oracle + - sdk use java 17.0.12-oracle + - curl -sL https://deb.nodesource.com/setup_20.x | bash - + - apt-get install -y nodejs + - npm install -g npm@latest From 7a52f913a9b63aa5ad78742da84516ac215038cd Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Fri, 16 May 2025 14:52:30 -0400 Subject: [PATCH 03/17] sudo added to jitpack.yml --- jitpack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index 2388c3011ac1..70c957d5e679 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -3,7 +3,7 @@ jdk: - openjdk17 install: - sdk install java 17.0.12-oracle - - sdk use java 17.0.12-oracle + - sdk use java 17.0.12-oracle - curl -sL https://deb.nodesource.com/setup_20.x | bash - - - apt-get install -y nodejs + - sudo apt-get install -y nodejs - npm install -g npm@latest From 8936d3886b4c856cbacb5ff70fe95c6c6cad4d32 Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Fri, 16 May 2025 15:28:32 -0400 Subject: [PATCH 04/17] Another jitpack tweak --- jitpack.yml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index 70c957d5e679..1232314b22a8 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -3,7 +3,34 @@ jdk: - openjdk17 install: - sdk install java 17.0.12-oracle - - sdk use java 17.0.12-oracle + - sdk use java 17.0.12-oracle - curl -sL https://deb.nodesource.com/setup_20.x | bash - - - sudo apt-get install -y nodejs + - apt-get install -y nodejs - npm install -g npm@latest +before_install: + - apt-get update + + +jdk: + - openjdk17 + +before_install: + # 1. Update package lists + - apt-get update + + # 2. Bootstrap SDKMAN so we can switch JDKs + - curl -s "https://get.sdkman.io" | bash + - source "$HOME/.sdkman/bin/sdkman-init.sh" + + # 3. Install & use a Temurin JDK 17 release + - sdk install java 17.0.12-tem + - sdk use java 17.0.12-tem + + # 4. Install Node.js 20 for any front-end steps + - curl -sL https://deb.nodesource.com/setup_20.x | bash - + - apt-get install -y nodejs + - npm install -g npm@latest + +# 5. Finally, build & install your library into the local Maven repo +install: + - ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease \ No newline at end of file From 3e9495545bf60fe1f379f6fc1bd51a15d096a038 Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 09:52:22 -0400 Subject: [PATCH 05/17] Working-out how to properly get node installed --- jitpack.yml | 25 ------------------- .../ReactAndroid/build.gradle.kts | 12 +++++++++ 2 files changed, 12 insertions(+), 25 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index 1232314b22a8..66841184fe5e 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,36 +1,11 @@ -# jitpack.yml -jdk: - - openjdk17 -install: - - sdk install java 17.0.12-oracle - - sdk use java 17.0.12-oracle - - curl -sL https://deb.nodesource.com/setup_20.x | bash - - - apt-get install -y nodejs - - npm install -g npm@latest -before_install: - - apt-get update - - jdk: - openjdk17 before_install: - # 1. Update package lists - - apt-get update - - # 2. Bootstrap SDKMAN so we can switch JDKs - curl -s "https://get.sdkman.io" | bash - source "$HOME/.sdkman/bin/sdkman-init.sh" - - # 3. Install & use a Temurin JDK 17 release - sdk install java 17.0.12-tem - sdk use java 17.0.12-tem - # 4. Install Node.js 20 for any front-end steps - - curl -sL https://deb.nodesource.com/setup_20.x | bash - - - apt-get install -y nodejs - - npm install -g npm@latest - -# 5. Finally, build & install your library into the local Maven repo install: - ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease \ No newline at end of file diff --git a/packages/react-native/ReactAndroid/build.gradle.kts b/packages/react-native/ReactAndroid/build.gradle.kts index 757224444642..55e0d285493d 100644 --- a/packages/react-native/ReactAndroid/build.gradle.kts +++ b/packages/react-native/ReactAndroid/build.gradle.kts @@ -19,12 +19,19 @@ plugins { alias(libs.plugins.android.library) alias(libs.plugins.download) alias(libs.plugins.kotlin.android) + id("com.github.node-gradle.node") version "5.0.0" } version = project.findProperty("VERSION_NAME")?.toString()!! group = "com.facebook.react" +// Node plugin configuration to ensure npm and npx are available +node { + version.set("20.18.1") + download.set(true) +} + // We download various C++ open-source dependencies into downloads. // We then copy both the downloaded code and our custom makefiles and headers into third-party-ndk. // After that we build native code from src/main/jni with module path pointing at third-party-ndk. @@ -245,6 +252,11 @@ val preparePrefab by outputDir.set(prefabHeadersDir) } + // Ensure Node modules are installed before native codegen or any npm scripts +tasks.named("preBuild").configure { + dependsOn(tasks.named("npmInstall")) +} + val createNativeDepsDirectories by tasks.registering { downloadsDir.mkdirs() From 875422361f7d673a3f4f2227b943ba6142660ee2 Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 10:10:17 -0400 Subject: [PATCH 06/17] Another attempt at installing node --- packages/react-native/ReactAndroid/build.gradle.kts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/react-native/ReactAndroid/build.gradle.kts b/packages/react-native/ReactAndroid/build.gradle.kts index 55e0d285493d..ab1d3887ebd6 100644 --- a/packages/react-native/ReactAndroid/build.gradle.kts +++ b/packages/react-native/ReactAndroid/build.gradle.kts @@ -32,6 +32,11 @@ node { download.set(true) } +// Ensure Node modules are installed before native codegen or any npm scripts +tasks.named("preBuild").configure { + dependsOn(tasks.named("npmInstall")) +} + // We download various C++ open-source dependencies into downloads. // We then copy both the downloaded code and our custom makefiles and headers into third-party-ndk. // After that we build native code from src/main/jni with module path pointing at third-party-ndk. @@ -252,11 +257,6 @@ val preparePrefab by outputDir.set(prefabHeadersDir) } - // Ensure Node modules are installed before native codegen or any npm scripts -tasks.named("preBuild").configure { - dependsOn(tasks.named("npmInstall")) -} - val createNativeDepsDirectories by tasks.registering { downloadsDir.mkdirs() From eb651f9952347a2f3aef319fbf3e868979721989 Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 10:29:04 -0400 Subject: [PATCH 07/17] Let's do the node install from the jitpack.yml --- jitpack.yml | 14 ++++++++++---- .../react-native/ReactAndroid/build.gradle.kts | 12 ------------ 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index 66841184fe5e..f42c031734f8 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -2,10 +2,16 @@ jdk: - openjdk17 before_install: - - curl -s "https://get.sdkman.io" | bash - - source "$HOME/.sdkman/bin/sdkman-init.sh" - - sdk install java 17.0.12-tem - - sdk use java 17.0.12-tem + # update package lists & install curl + - apt-get update -y + - apt-get install -y curl + +install: + # install Node 20.x from NodeSource + - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - + - apt-get install -y nodejs + # optional: bump npm to latest + - npm install -g npm@latest install: - ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease \ No newline at end of file diff --git a/packages/react-native/ReactAndroid/build.gradle.kts b/packages/react-native/ReactAndroid/build.gradle.kts index ab1d3887ebd6..757224444642 100644 --- a/packages/react-native/ReactAndroid/build.gradle.kts +++ b/packages/react-native/ReactAndroid/build.gradle.kts @@ -19,24 +19,12 @@ plugins { alias(libs.plugins.android.library) alias(libs.plugins.download) alias(libs.plugins.kotlin.android) - id("com.github.node-gradle.node") version "5.0.0" } version = project.findProperty("VERSION_NAME")?.toString()!! group = "com.facebook.react" -// Node plugin configuration to ensure npm and npx are available -node { - version.set("20.18.1") - download.set(true) -} - -// Ensure Node modules are installed before native codegen or any npm scripts -tasks.named("preBuild").configure { - dependsOn(tasks.named("npmInstall")) -} - // We download various C++ open-source dependencies into downloads. // We then copy both the downloaded code and our custom makefiles and headers into third-party-ndk. // After that we build native code from src/main/jni with module path pointing at third-party-ndk. From 5e7190a971f936c7747fe03c91785ca6faa010ad Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 10:33:42 -0400 Subject: [PATCH 08/17] setup path --- jitpack.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index f42c031734f8..49a4c5c00cdc 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -2,16 +2,22 @@ jdk: - openjdk17 before_install: - # update package lists & install curl - - apt-get update -y - - apt-get install -y curl + # 1. SDKMAN → Java 17 + - curl -s "https://get.sdkman.io" | bash + - source "$HOME/.sdkman/bin/sdkman-init.sh" + - sdk install java 17.0.12-tem + - sdk use java 17.0.12-tem -install: - # install Node 20.x from NodeSource - - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - - - apt-get install -y nodejs - # optional: bump npm to latest + # 2. Install NVM (no sudo) + - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash + - export NVM_DIR="$HOME/.nvm" + - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + + # 3. Pull in Node 20 + latest npm + - nvm install 20 + - nvm use 20 - npm install -g npm@latest install: + # 4. Now run your Android assemble - ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease \ No newline at end of file From 72e36255642e553b5f33f911ee8e7f8a93a28a4b Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 10:40:31 -0400 Subject: [PATCH 09/17] And another try --- jitpack.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index 49a4c5c00cdc..09da9cbf9a82 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -2,22 +2,19 @@ jdk: - openjdk17 before_install: - # 1. SDKMAN → Java 17 + # 1. Bootstrap SDKMAN & pick Java 17 - curl -s "https://get.sdkman.io" | bash - source "$HOME/.sdkman/bin/sdkman-init.sh" - sdk install java 17.0.12-tem - sdk use java 17.0.12-tem - # 2. Install NVM (no sudo) - - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash - - export NVM_DIR="$HOME/.nvm" - - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" - - # 3. Pull in Node 20 + latest npm - - nvm install 20 - - nvm use 20 - - npm install -g npm@latest + # 2. Install NVM into the home dir + - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash install: - # 4. Now run your Android assemble - - ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease \ No newline at end of file + # 3. In one go: load NVM, install/use Node, then run your Gradle build + - bash -lc "source \$HOME/.nvm/nvm.sh && \ + nvm install 20 && \ + nvm use 20 && \ + npm install -g npm@latest && \ + ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease" \ No newline at end of file From 22f4f3811b63ad9b7d7e6ad86ab10e1880b69e57 Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 10:52:33 -0400 Subject: [PATCH 10/17] Another go at getting node/npx installed --- jitpack.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index 09da9cbf9a82..ded85be525bb 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -8,13 +8,14 @@ before_install: - sdk install java 17.0.12-tem - sdk use java 17.0.12-tem - # 2. Install NVM into the home dir - - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash - install: - # 3. In one go: load NVM, install/use Node, then run your Gradle build - - bash -lc "source \$HOME/.nvm/nvm.sh && \ - nvm install 20 && \ - nvm use 20 && \ - npm install -g npm@latest && \ - ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease" \ No newline at end of file + # 2–3. Download Node, add to PATH, then build all in one go + - | + NODE_VERSION=20.11.1 + curl -fsSL https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz \ + -o node.tar.xz + mkdir -p $HOME/node + tar -xJf node.tar.xz -C $HOME/node --strip-components=1 + export PATH=$HOME/node/bin:$PATH + + ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease \ No newline at end of file From 64f94493b5d0fb7e35524ac0319c68e0a9b08874 Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 11:04:23 -0400 Subject: [PATCH 11/17] add 'yarn install' --- jitpack.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jitpack.yml b/jitpack.yml index ded85be525bb..eaa561b97f11 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -9,7 +9,7 @@ before_install: - sdk use java 17.0.12-tem install: - # 2–3. Download Node, add to PATH, then build all in one go + # 2–4. Download Node, add to PATH, install JS deps, then build - | NODE_VERSION=20.11.1 curl -fsSL https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz \ @@ -18,4 +18,6 @@ install: tar -xJf node.tar.xz -C $HOME/node --strip-components=1 export PATH=$HOME/node/bin:$PATH + yarn install + ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease \ No newline at end of file From e0679083e9eade6eea16496f248f0d8a477cafd1 Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 11:14:35 -0400 Subject: [PATCH 12/17] We need yarn installed --- jitpack.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index eaa561b97f11..cdab71a68e7b 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -9,7 +9,7 @@ before_install: - sdk use java 17.0.12-tem install: - # 2–4. Download Node, add to PATH, install JS deps, then build + # 2–4. Download Node, add to PATH, install Yarn, run yarn install & then build - | NODE_VERSION=20.11.1 curl -fsSL https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz \ @@ -18,6 +18,11 @@ install: tar -xJf node.tar.xz -C $HOME/node --strip-components=1 export PATH=$HOME/node/bin:$PATH - yarn install + # install Yarn globally so you can run `yarn install` + npm install -g yarn + # install JS dependencies per your yarn.lock + yarn install --frozen-lockfile + + # finally, run your Android assemble ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease \ No newline at end of file From 801c18e5b189118a596c5b92a2dd593c414e8596 Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 11:21:57 -0400 Subject: [PATCH 13/17] Use node 18.18.0 --- jitpack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index cdab71a68e7b..6025d8af6c9f 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -11,7 +11,7 @@ before_install: install: # 2–4. Download Node, add to PATH, install Yarn, run yarn install & then build - | - NODE_VERSION=20.11.1 + NODE_VERSION=18.18.0 curl -fsSL https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz \ -o node.tar.xz mkdir -p $HOME/node @@ -24,5 +24,5 @@ install: # install JS dependencies per your yarn.lock yarn install --frozen-lockfile - # finally, run your Android assemble + # finally, run ReactAndroid assemble ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease \ No newline at end of file From 13dcf0450cc31e49b03146b26cd506f74daedef5 Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 11:30:01 -0400 Subject: [PATCH 14/17] Falling back to Node 16... --- jitpack.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index 6025d8af6c9f..ab37ed106d6e 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -9,20 +9,25 @@ before_install: - sdk use java 17.0.12-tem install: - # 2–4. Download Node, add to PATH, install Yarn, run yarn install & then build + # 2–4. Download Node 16.x, add to PATH, install Yarn, run yarn install & then build - | - NODE_VERSION=18.18.0 + # Use Node 16.x because its official Linux binaries target glibc ≥2.17, + # which is what's available in JitPack’s container. Newer Node releases + # require glibc 2.27+ and will fail with “GLIBC_2.27 not found.” + NODE_VERSION=16.20.2 curl -fsSL https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz \ -o node.tar.xz mkdir -p $HOME/node tar -xJf node.tar.xz -C $HOME/node --strip-components=1 export PATH=$HOME/node/bin:$PATH - # install Yarn globally so you can run `yarn install` + # We can’t use `apt-get install nodejs` here because JitPack’s builds + # run as a non-root user with no sudo access—apt-get will hit permission + # errors. Instead we bundle Node into our home directory. npm install -g yarn - # install JS dependencies per your yarn.lock + # Install JS deps according to yarn.lock so any npx scripts will work yarn install --frozen-lockfile - # finally, run ReactAndroid assemble + # Finally, run the ReactAndroid assemble ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease \ No newline at end of file From f489395bad9910dd47fcc2cae7c05b3c52941568 Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 11:47:47 -0400 Subject: [PATCH 15/17] No need for sdkman --- jitpack.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index ab37ed106d6e..5b530f3a4e7a 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,32 +1,30 @@ -jdk: - - openjdk17 - +# No 'jdk:' section—use the JDKs already baked into the JitPack image before_install: - # 1. Bootstrap SDKMAN & pick Java 17 - - curl -s "https://get.sdkman.io" | bash - - source "$HOME/.sdkman/bin/sdkman-init.sh" - - sdk install java 17.0.12-tem - - sdk use java 17.0.12-tem + # 1. Switch to the pre-installed OpenJDK 17 (bundled at /usr/lib/jvm/jdk-17.0.2) + - export JAVA_HOME=/usr/lib/jvm/jdk-17.0.2 + - export PATH=$JAVA_HOME/bin:$PATH install: - # 2–4. Download Node 16.x, add to PATH, install Yarn, run yarn install & then build + # 2–5. Download Node 16.x, add to PATH, install Yarn, pull JS deps, then build - | # Use Node 16.x because its official Linux binaries target glibc ≥2.17, - # which is what's available in JitPack’s container. Newer Node releases - # require glibc 2.27+ and will fail with “GLIBC_2.27 not found.” + # which matches JitPack’s container. Newer Node releases need glibc ≥2.27 + # and will fail with “GLIBC_2.27 not found.” NODE_VERSION=16.20.2 curl -fsSL https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz \ -o node.tar.xz + mkdir -p $HOME/node tar -xJf node.tar.xz -C $HOME/node --strip-components=1 export PATH=$HOME/node/bin:$PATH # We can’t use `apt-get install nodejs` here because JitPack’s builds - # run as a non-root user with no sudo access—apt-get will hit permission - # errors. Instead we bundle Node into our home directory. + # run as a non-root user with no sudo—apt-get will hit permission errors. + # Bundling Node into our home directory is the only reliable approach. npm install -g yarn - # Install JS deps according to yarn.lock so any npx scripts will work + # Install JS dependencies per yarn.lock so any npx scripts in + # Settings.gradle.kts or build.gradle.kts can run successfully yarn install --frozen-lockfile # Finally, run the ReactAndroid assemble From 8c42d08b45c1ec068f453f110c58229b580eaffb Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 11:53:53 -0400 Subject: [PATCH 16/17] Trying to stay on node 16 with --ignore-engines --- jitpack.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jitpack.yml b/jitpack.yml index 5b530f3a4e7a..1cd3c80e6f13 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -25,7 +25,7 @@ install: # Install JS dependencies per yarn.lock so any npx scripts in # Settings.gradle.kts or build.gradle.kts can run successfully - yarn install --frozen-lockfile + yarn install --frozen-lockfile --ignore-engines # Finally, run the ReactAndroid assemble ./gradlew clean :packages:react-native:ReactAndroid:assembleRelease \ No newline at end of file From 23b7b470c1e4a19752a1590eabc0725a34e3e72e Mon Sep 17 00:00:00 2001 From: Jay Koutavas Date: Mon, 19 May 2025 11:58:13 -0400 Subject: [PATCH 17/17] Let jitpack setup the JDK --- jitpack.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index 1cd3c80e6f13..30cd19830ed6 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,8 +1,6 @@ -# No 'jdk:' section—use the JDKs already baked into the JitPack image -before_install: - # 1. Switch to the pre-installed OpenJDK 17 (bundled at /usr/lib/jvm/jdk-17.0.2) - - export JAVA_HOME=/usr/lib/jvm/jdk-17.0.2 - - export PATH=$JAVA_HOME/bin:$PATH +# 1. Ask JitPack to activate OpenJDK 17 (it’s already in the image) +jdk: + - openjdk17 install: # 2–5. Download Node 16.x, add to PATH, install Yarn, pull JS deps, then build