1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-29 12:33:10 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

fix harmony build

This commit is contained in:
sunnylqm
2025-10-23 11:30:13 +08:00
parent 84381e5ed7
commit d458371f54
10 changed files with 23 additions and 47 deletions

1
.gitignore vendored
View File

@@ -57,3 +57,4 @@ Example/harmony_use_pushy/libs
harmony/package harmony/package
**/oh_modules **/oh_modules
harmony/pushy/.preview harmony/pushy/.preview
Example/harmony_use_pushy/harmony/entry/src/main/resources/rawfile/meta.json

6
.gitmodules vendored
View File

@@ -4,9 +4,3 @@
[submodule "android/jni/HDiffPatch"] [submodule "android/jni/HDiffPatch"]
path = android/jni/HDiffPatch path = android/jni/HDiffPatch
url = https://github.com/sisong/HDiffPatch.git url = https://github.com/sisong/HDiffPatch.git
[submodule "harmony/pushy/src/main/cpp/HDiffPatch"]
path = harmony/pushy/src/main/cpp/HDiffPatch
url = https://github.com/sisong/HDiffPatch.git
[submodule "harmony/pushy/src/main/cpp/lzma"]
path = harmony/pushy/src/main/cpp/lzma
url = https://github.com/sisong/lzma.git

View File

@@ -37,13 +37,7 @@
}, },
{ {
name: 'pushy', name: 'pushy',
srcPath: '../../../harmony/pushy', srcPath: '../node_modules/react-native-update/harmony/pushy',
targets: [
{
name: 'default',
applyToProducts: ['default'],
},
],
}, },
], ],
} }

View File

@@ -1,4 +0,0 @@
{
"pushy_build_time": "2025-04-30T02:46:33.340Z",
"versionName": "1.0.0"
}

View File

@@ -1,23 +1,16 @@
{ {
"meta": { "meta": {
"stableOrder": true "stableOrder": true,
"enableUnifiedLockfile": false
}, },
"lockfileVersion": 3, "lockfileVersion": 3,
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
"specifiers": { "specifiers": {
"@ohos/hamock@1.0.0": "@ohos/hamock@1.0.0",
"@ohos/hypium@1.0.19": "@ohos/hypium@1.0.19" "@ohos/hypium@1.0.19": "@ohos/hypium@1.0.19"
}, },
"packages": { "packages": {
"@ohos/hamock@1.0.0": {
"name": "@ohos/hamock",
"version": "1.0.0",
"integrity": "sha512-K6lDPYc6VkKe6ZBNQa9aoG+ZZMiwqfcR/7yAVFSUGIuOAhPvCJAo9+t1fZnpe0dBRBPxj2bxPPbKh69VuyAtDg==",
"resolved": "https://ohpm.openharmony.cn/ohpm/@ohos/hamock/-/hamock-1.0.0.har",
"registryType": "ohpm"
},
"@ohos/hypium@1.0.19": { "@ohos/hypium@1.0.19": {
"name": "@ohos/hypium", "name": "",
"version": "1.0.19", "version": "1.0.19",
"integrity": "sha512-cEjDgLFCm3cWZDeRXk7agBUkPqjWxUo6AQeiu0gEkb3J8ESqlduQLSIXeo3cCsm8U/asL7iKjF85ZyOuufAGSQ==", "integrity": "sha512-cEjDgLFCm3cWZDeRXk7agBUkPqjWxUo6AQeiu0gEkb3J8ESqlduQLSIXeo3cCsm8U/asL7iKjF85ZyOuufAGSQ==",
"resolved": "https://ohpm.openharmony.cn/ohpm/@ohos/hypium/-/hypium-1.0.19.har", "resolved": "https://ohpm.openharmony.cn/ohpm/@ohos/hypium/-/hypium-1.0.19.har",

View File

@@ -1,20 +1,18 @@
{ {
"modelVersion": "5.0.0", modelVersion: '5.0.0',
"description": "Please describe the basic information.", description: 'Please describe the basic information.',
"dependencies": { dependencies: {},
devDependencies: {
'@ohos/hypium': '1.0.19'
}, },
"devDependencies": { arkTs: {
"@ohos/hypium": "1.0.19", compilerOptions: {
"@ohos/hamock": "1.0.0" noImplicitAny: false,
suppressImplicitAnyIndexErrors: true,
strict: false,
}, },
"arkTs": {
"compilerOptions": {
"noImplicitAny": false,
"suppressImplicitAnyIndexErrors": true,
"strict": false
}
}, },
"overrides": { overrides: {
"@rnoh/react-native-openharmony": "0.72.38" '@rnoh/react-native-openharmony': '0.72.38',
} },
} }

View File

@@ -1,8 +1,10 @@
cmake_minimum_required(VERSION 3.13) cmake_minimum_required(VERSION 3.13)
project(rnupdate) project(rnupdate)
set(HDIFFPATCH_DIR ${CMAKE_CURRENT_SOURCE_DIR}/HDiffPatch) # Point to android/jni directory for shared source code
set(LZMA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lzma) set(ANDROID_JNI_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../../node_modules/react-native-update/android/jni)
set(HDIFFPATCH_DIR ${ANDROID_JNI_DIR}/HDiffPatch)
set(LZMA_DIR ${ANDROID_JNI_DIR}/lzma)
set(HDP_SOURCES set(HDP_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/pushy.c ${CMAKE_CURRENT_SOURCE_DIR}/pushy.c
${CMAKE_CURRENT_SOURCE_DIR}/hpatch.c ${CMAKE_CURRENT_SOURCE_DIR}/hpatch.c

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-native-update", "name": "react-native-update",
"version": "10.34.7", "version": "10.34.8",
"description": "react-native hot update", "description": "react-native hot update",
"main": "src/index", "main": "src/index",
"scripts": { "scripts": {