mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-17 19:16:10 +08:00
Compare commits
1 Commits
v10.21.0
...
v10.20.0-b
Author | SHA1 | Date | |
---|---|---|---|
![]() |
dbca54a7f0 |
@@ -14,11 +14,11 @@ export function generatePushyBuildTime(str?: string) {
|
||||
if (!fs.existsSync(dirPath)) {
|
||||
fs.mkdirSync(dirPath, { recursive: true });
|
||||
}
|
||||
const moduleJsonPath = path.resolve(__dirname, '../AppScope/app.json5');
|
||||
const moduleJsonPath = path.resolve(__dirname, './oh-package.json5');
|
||||
let versionName = '';
|
||||
if (fs.existsSync(moduleJsonPath)) {
|
||||
const moduleContent = fs.readFileSync(moduleJsonPath, 'utf-8');
|
||||
const versionMatch = moduleContent.match(/"versionName":\s*"([^"]+)"/);
|
||||
const versionMatch = moduleContent.match(/"version":\s*"([^"]+)"/);
|
||||
if (versionMatch && versionMatch[1]) {
|
||||
versionName = versionMatch[1];
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
11
harmony/README.OpenSource
Normal file
11
harmony/README.OpenSource
Normal file
@@ -0,0 +1,11 @@
|
||||
[
|
||||
{
|
||||
"Name": "react-native-netinfo",
|
||||
"License": "MIT License",
|
||||
"License File": "https://github.com/react-native-netinfo/react-native-netinfo/blob/master/LICENSE",
|
||||
"Version Number": "11.1.0",
|
||||
"Owner" : "Matt Oakes <hello@mattoakes.net>"
|
||||
"Upstream URL": "https://github.com/react-native-netinfo/react-native-netinfo",
|
||||
"Description": "React Native Network Info API for Android, iOS, macOS, Windows & Web. It allows you to get information on:Connection type,Connection quality"
|
||||
}
|
||||
]
|
0
harmony/README.md
Normal file
0
harmony/README.md
Normal file
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-update",
|
||||
"version": "10.20.0",
|
||||
"version": "10.20.0-beta.0",
|
||||
"description": "react-native hot update",
|
||||
"main": "src/index",
|
||||
"scripts": {
|
||||
|
@@ -205,10 +205,7 @@ export class Pushy {
|
||||
// @ts-ignore
|
||||
delete fetchBody.buildTime;
|
||||
}
|
||||
let body = JSON.stringify(fetchBody);
|
||||
if (Platform.OS === 'harmony') {
|
||||
body = fetchBody;
|
||||
}
|
||||
const body = JSON.stringify(fetchBody);
|
||||
const fetchPayload = {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
Reference in New Issue
Block a user