Skip to content

Commit ca85d4f

Browse files
robingenzclaude
andcommitted
build: core-android at 31be618 from its maven branch, which the module and the app's Gradle file list
The Android module pins com.hotcodepush:core-android by full sha from the maven branch the core's CI publishes to, in place of JitPack, and the Gradle file the app's build.gradle applies adds the branch to the app's repositories, which resolve the core as well. The core at 31be618 no longer knows the runtime condition and the runtime version, as the protocol at 1a95234 does not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent e227861 commit ca85d4f

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎CLAUDE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ scripts/binary-create-xcode.sh binary create as the app's Xc
1818
benchmarks/ the size and cold-start baseline, measured on the demo
1919
```
2020

21-
The native cores live in `core-ios` and `core-android`, consumed at pinned commits: the pod through the app's Podfile by `:git` and `:commit`, the commit named in `package.json` under `hotcodepush.coreIos`, and the Android library through JitPack by commit in `android/build.gradle`; a core change lands there first and arrives here as a bump of both pins.
21+
The native cores live in `core-ios` and `core-android`, consumed at pinned commits: the pod through the app's Podfile by `:git` and `:commit`, the commit named in `package.json` under `hotcodepush.coreIos`, and the Android library from core-android's `maven` branch by full sha in `android/build.gradle`; a core change lands there first and arrives here as a bump of both pins.
2222
This package keeps what is React Native's: which bundle the host loads, the reload, the readiness signal and the bridge. Nothing of the protocol lives here.
2323

2424
## How the SDK meets React Native

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The native cores are the pod `HotCodePushCore` and the Android library `com.hotc
5656
pod 'HotCodePushCore', :git => 'https://github.com/hotcodepush-team/core-ios.git', :commit => '<sha>'
5757
```
5858

59-
On Android the Gradle file above adds JitPack, which builds the pinned commit, to the app's repositories.
59+
On Android the Gradle file above adds core-android's `maven` branch, where the pinned commit is published, to the app's repositories.
6060

6161
A debug build asks Metro for its JavaScript, so live updates are off there and every result says `SKIPPED` with `DEBUG_BUILD`; a debug build on the simulator bundles nothing and carries no `hotcodepush.json` at all. Try an update in a release build.
6262

‎android/build.gradle‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ kotlin {
3535
}
3636
}
3737

38-
// The core comes from core-android at a pinned commit, built by JitPack until the library is published.
38+
// The core comes from core-android's maven branch at a pinned commit until the library is on Maven Central.
3939
repositories {
4040
google()
4141
mavenCentral()
42-
maven { url 'https://jitpack.io' }
42+
maven { url 'https://raw.githubusercontent.com/hotcodepush-team/core-android/maven/' }
4343
}
4444

4545
dependencies {
4646
implementation 'com.facebook.react:react-android'
47-
implementation 'com.github.hotcodepush-team:core-android:900f0edd2ffdb1d0471147779ba06c2828369261'
47+
implementation 'com.hotcodepush:core-android:31be61880906c762ff8e61cf6bd038187f9dcc51'
4848
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2'
4949
}

‎android/hotcodepush.gradle‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import javax.inject.Inject
77
import org.apache.tools.ant.taskdefs.condition.Os
88
import org.gradle.api.tasks.Optional
99

10-
// JitPack builds the core-android commit the SDK pins, until the library is on Maven Central.
10+
// core-android's maven branch publishes the commit the SDK pins, until the library is on Maven Central.
1111
repositories {
12-
maven { url 'https://jitpack.io' }
12+
maven { url 'https://raw.githubusercontent.com/hotcodepush-team/core-android/maven/' }
1313
}
1414

1515
abstract class HotCodePushBinaryCreateTask extends DefaultTask {

0 commit comments

Comments
 (0)