Skip to content

Commit 87c7c9c

Browse files
authored
Feat/cpp (#528)
* use cpp * improve cpp * improve cpp core * add harmony * allow local publish * deps * update readme * prepublish * example 0.84.1 * fix android pdiff * endpoint * fix rollback * try fix rollback * 10.38.0
1 parent 37ad3e0 commit 87c7c9c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+6133
-2410
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ Example/harmony_use_pushy/harmony/entry/src/main/resources/rawfile/meta.json
6363
**/.hvigor
6464
Example/harmony_use_pushy/harmony/entry/src/main/cpp/generated
6565
Example/testHotUpdate/.e2e-artifacts
66+
harmony/pushy/src/main/cpp/android-generated

.npmignore

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ project.xcworkspace
3939
local.properties
4040
android/build
4141
android/obj
42+
.project
4243

4344
# node.js
4445
#
@@ -47,11 +48,24 @@ npm-debug.log
4748
Example
4849
yarn.lock
4950
bun.lock
51+
*.test.ts
52+
*.test.js
5053

5154
domains.json
5255
endpoints.json
5356
endpoints_cresc.json
5457

5558
tea.yaml
5659

57-
e2e/
60+
e2e/
61+
62+
harmony/**
63+
!harmony/pushy.har
64+
65+
.tmp
66+
.cursor
67+
68+
android/jni/lzma/bin
69+
android/jni/lzma/DOC
70+
71+

Example/testHotUpdate/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ android {
8181
minSdkVersion rootProject.ext.minSdkVersion
8282
targetSdkVersion rootProject.ext.targetSdkVersion
8383
versionCode 1
84-
versionName "1.82.1"
84+
versionName "1.84.1"
8585
testBuildType System.getProperty('testBuildType', 'debug')
8686
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
8787
}

Example/testHotUpdate/bun.lock

Lines changed: 218 additions & 110 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/testHotUpdate/ios/AwesomeProject.xcodeproj/project.pbxproj

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
);
194194
runOnlyForDeploymentPostprocessing = 0;
195195
shellPath = /bin/sh;
196-
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
196+
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"\\\"$WITH_ENVIRONMENT\\\" \\\"$REACT_NATIVE_XCODE\\\"\"\n";
197197
};
198198
2177C9C260D54703D642190E /* [CP] Embed Pods Frameworks */ = {
199199
isa = PBXShellScriptBuildPhase;
@@ -397,19 +397,24 @@
397397
);
398398
MTL_ENABLE_DEBUG_INFO = YES;
399399
ONLY_ACTIVE_ARCH = YES;
400-
OTHER_CFLAGS = "$(inherited)";
400+
OTHER_CFLAGS = (
401+
"$(inherited)",
402+
"-DRCT_REMOVE_LEGACY_ARCH=1",
403+
);
401404
OTHER_CPLUSPLUSFLAGS = (
402405
"$(OTHER_CFLAGS)",
403406
"-DFOLLY_NO_CONFIG",
404407
"-DFOLLY_MOBILE=1",
405408
"-DFOLLY_USE_LIBCPP=1",
406409
"-DFOLLY_CFG_NO_COROUTINES=1",
407410
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
411+
"-DRCT_REMOVE_LEGACY_ARCH=1",
408412
);
409413
OTHER_LDFLAGS = "$(inherited)";
410414
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
411415
SDKROOT = iphoneos;
412416
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
417+
SWIFT_ENABLE_EXPLICIT_MODULES = NO;
413418
USE_HERMES = true;
414419
};
415420
name = Debug;
@@ -471,18 +476,23 @@
471476
"\"$(inherited)\"",
472477
);
473478
MTL_ENABLE_DEBUG_INFO = NO;
474-
OTHER_CFLAGS = "$(inherited)";
479+
OTHER_CFLAGS = (
480+
"$(inherited)",
481+
"-DRCT_REMOVE_LEGACY_ARCH=1",
482+
);
475483
OTHER_CPLUSPLUSFLAGS = (
476484
"$(OTHER_CFLAGS)",
477485
"-DFOLLY_NO_CONFIG",
478486
"-DFOLLY_MOBILE=1",
479487
"-DFOLLY_USE_LIBCPP=1",
480488
"-DFOLLY_CFG_NO_COROUTINES=1",
481489
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
490+
"-DRCT_REMOVE_LEGACY_ARCH=1",
482491
);
483492
OTHER_LDFLAGS = "$(inherited)";
484493
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
485494
SDKROOT = iphoneos;
495+
SWIFT_ENABLE_EXPLICIT_MODULES = NO;
486496
USE_HERMES = true;
487497
VALIDATE_PRODUCT = YES;
488498
};

0 commit comments

Comments
 (0)