@hot-updater/react-native 0.13.5 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,6 +67,7 @@ android {
67
67
  targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
68
68
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
69
69
  consumerProguardFiles 'proguard-rules.pro'
70
+ buildConfigField "long", "BUILD_TIMESTAMP", "${System.currentTimeMillis()}L"
70
71
  }
71
72
 
72
73
  buildFeatures {
@@ -277,8 +277,7 @@ class HotUpdater : ReactPackage {
277
277
 
278
278
  fun getMinBundleId(context: Context): String =
279
279
  try {
280
- val apkFile = File(context.applicationInfo.sourceDir)
281
- val buildTimestampMs = apkFile.lastModified()
280
+ val buildTimestampMs = BuildConfig.BUILD_TIMESTAMP
282
281
  val bytes =
283
282
  ByteArray(16).apply {
284
283
  this[0] = ((buildTimestampMs shr 40) and 0xFF).toByte()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/react-native",
3
- "version": "0.13.5",
3
+ "version": "0.14.0",
4
4
  "description": "React Native OTA solution for self-hosted",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -81,8 +81,8 @@
81
81
  },
82
82
  "dependencies": {
83
83
  "use-sync-external-store": "1.4.0",
84
- "@hot-updater/js": "0.13.5",
85
- "@hot-updater/core": "0.13.5"
84
+ "@hot-updater/js": "0.14.0",
85
+ "@hot-updater/core": "0.14.0"
86
86
  },
87
87
  "scripts": {
88
88
  "build": "rslib build",