Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
29 changes: 29 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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
- |
# Use Node 16.x because its official Linux binaries target glibc ≥2.17,
# 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—apt-get will hit permission errors.
# Bundling Node into our home directory is the only reliable approach.
npm install -g yarn

# 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 --ignore-engines

# Finally, run the ReactAndroid assemble
./gradlew clean :packages:react-native:ReactAndroid:assembleRelease
8 changes: 7 additions & 1 deletion packages/react-native/ReactAndroid/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Loading