catalyst-core-internal 0.0.3-canary.9 → 0.1.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.
- package/README.md +2 -3
- package/bin/catalyst.js +28 -15
- package/changelog.md +138 -10
- package/dist/native/androidProject/app/build.gradle.kts +294 -37
- package/dist/native/androidProject/app/proguard-rules.pro +85 -14
- package/dist/native/androidProject/app/src/debug/res/xml/network_security_config.xml +8 -0
- package/dist/native/androidProject/app/src/main/AndroidManifest.xml +29 -4
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/BridgeMessageValidator.kt +552 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/CatalystConstants.kt +109 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/CustomWebview.kt +1016 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/MainActivity.kt +546 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/MetricsMonitor.kt +341 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/NativeBridge.kt +1239 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/SplashActivity.kt +111 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/URLWhitelistManager.kt +231 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/Utils.kt +58 -0
- package/dist/native/androidProject/app/src/main/java/{com/example/myapplication → io/yourname/androidproject}/WebCacheManager.kt +166 -36
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/design/DesignTokens.kt +307 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/EmulatorDetector.kt +203 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/FridaDetector.kt +187 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/SecurityAlertHandler.kt +170 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/SecurityAlertUI.kt +366 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/SecurityBottomSheet.kt +138 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/SecurityCheckManager.kt +511 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/SecurityCheckScheduler.kt +68 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/BridgeUtils.kt +257 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/CameraUtils.kt +269 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/DeviceInfoUtils.kt +85 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/DownloadUtils.kt +273 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/FileSizeRouterUtils.kt +347 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/FileUtils.kt +335 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/FrameworkServerUtils.kt +411 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/IntentUtils.kt +299 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/KeyboardUtil.kt +82 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/NetworkUtils.kt +105 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/NotificationConstants.kt +28 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/NotificationUtils.kt +639 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/SafeAreaUtils.kt +62 -0
- package/dist/native/androidProject/app/src/main/res/drawable/splashscreen_fallback.png +0 -0
- package/dist/native/androidProject/app/src/main/res/layout/activity_main.xml +2 -34
- package/dist/native/androidProject/app/src/main/res/layout/activity_splash.xml +20 -0
- package/dist/native/androidProject/app/src/main/res/values/strings.xml +1 -1
- package/dist/native/androidProject/app/src/main/res/values/themes.xml +23 -0
- package/dist/native/androidProject/app/src/main/res/values-night/themes.xml +11 -0
- package/dist/native/androidProject/app/src/main/res/xml/file_paths.xml +18 -0
- package/dist/native/androidProject/app/src/main/res/xml/network_security_config.xml +12 -0
- package/dist/native/androidProject/app/src/noFcm/java/io/yourname/androidproject/utils/NotificationManager.kt +166 -0
- package/dist/native/androidProject/app/src/noFcm/java/io/yourname/androidproject/utils/PushNotificationUtils.kt +94 -0
- package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/BridgeMessageValidatorTest.kt +267 -0
- package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/BridgeUtilsTest.kt +286 -0
- package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/CameraUtilsTest.kt +296 -0
- package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/ConfigMappingTest.kt +594 -0
- package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/CustomWebviewTest.kt +466 -0
- package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/DeviceInfoUtilsTest.kt +187 -0
- package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/FileUtilsTest.kt +304 -0
- package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/NativeBridgeTest.kt +424 -0
- package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/NotificationUtilsTest.kt +469 -0
- package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/SecurityBridgeTest.kt +199 -0
- package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/URLWhitelistManagerTest.kt +462 -0
- package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/WebCacheManagerTest.kt +391 -0
- package/dist/native/androidProject/app/src/withFcm/java/io/yourname/androidproject/utils/NotificationManager.kt +224 -0
- package/dist/native/androidProject/app/src/withFcm/java/io/yourname/androidproject/utils/PushNotificationUtils.kt +399 -0
- package/dist/native/androidProject/build.gradle.kts +6 -0
- package/dist/native/androidProject/gradle/libs.versions.toml +9 -3
- package/dist/native/androidProject/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/dist/native/androidProject/keystore/Untitled +0 -0
- package/dist/native/androidProject/keystore/release-key.jks +0 -0
- package/dist/native/androidProject/settings.gradle.kts +1 -1
- package/dist/native/androidSetup.js +4 -3
- package/dist/native/assets/catalyst.png +0 -0
- package/dist/native/bridge/WebBridge.js +59 -0
- package/dist/native/bridge/constants/NativeInterfaces.js +42 -0
- package/dist/native/bridge/errors.js +39 -0
- package/dist/native/bridge/hooks.js +137 -0
- package/dist/native/bridge/safeArea.js +5 -0
- package/dist/native/bridge/standardizedHooks.js +98 -0
- package/dist/native/bridge/useBaseHook.js +42 -0
- package/dist/native/bridge/utils/CameraUtils.js +58 -0
- package/dist/native/bridge/utils/FileObjectConverter.js +40 -0
- package/dist/native/bridge/utils/NativeBridge.js +109 -0
- package/dist/native/buildAppAndroid.js +149 -17
- package/dist/native/buildAppIos.js +293 -25
- package/dist/native/iosnativeWebView/Configurations/Debug.xcconfig +21 -0
- package/dist/native/iosnativeWebView/Configurations/Release.xcconfig +24 -0
- package/dist/native/iosnativeWebView/Configurations/Shared.xcconfig +50 -0
- package/dist/native/iosnativeWebView/Package.resolved +32 -0
- package/dist/native/iosnativeWebView/Package.swift +37 -0
- package/dist/native/iosnativeWebView/Sources/CatalystNotifications/LocalNotificationHandler.swift +293 -0
- package/dist/native/iosnativeWebView/Sources/CatalystNotifications/NotificationManager.swift +299 -0
- package/dist/native/iosnativeWebView/Sources/CatalystNotifications/PushNotificationHandler.swift +199 -0
- package/dist/native/iosnativeWebView/Sources/Core/Constants/CatalystConstants.swift +125 -0
- package/dist/native/iosnativeWebView/Sources/Core/Constants/ConfigConstants.swift +70 -0
- package/dist/native/iosnativeWebView/Sources/Core/Notifications/NotificationModels.swift +156 -0
- package/dist/native/iosnativeWebView/Sources/Core/Protocols/NotificationHandlerProtocol.swift +35 -0
- package/dist/native/iosnativeWebView/Sources/Core/Utils/BootTimingUtility.swift +26 -0
- package/dist/native/iosnativeWebView/{iosnativeWebView → Sources/Core/Utils}/CacheManager.swift +69 -36
- package/dist/native/iosnativeWebView/Sources/Core/Utils/CameraTransportUtils.swift +363 -0
- package/dist/native/iosnativeWebView/Sources/Core/Utils/DeviceInfoUtils.swift +67 -0
- package/dist/native/iosnativeWebView/Sources/Core/Utils/FilePickerHandler.swift +1053 -0
- package/dist/native/iosnativeWebView/Sources/Core/Utils/FrameworkServerUtils.swift +901 -0
- package/dist/native/iosnativeWebView/Sources/Core/Utils/ImageHandler.swift +474 -0
- package/dist/native/iosnativeWebView/Sources/Core/Utils/NetworkMonitor.swift +112 -0
- package/dist/native/iosnativeWebView/Sources/Core/Utils/NotificationHandlerProvider.swift +20 -0
- package/dist/native/iosnativeWebView/Sources/Core/Utils/NullNotificationHandler.swift +85 -0
- package/dist/native/iosnativeWebView/{iosnativeWebView → Sources/Core/Utils}/ResourceURLProtocol.swift +60 -25
- package/dist/native/iosnativeWebView/Sources/Core/Utils/SafeAreaUtils.swift +132 -0
- package/dist/native/iosnativeWebView/Sources/Core/Utils/ScreenSecureManager.swift +131 -0
- package/dist/native/iosnativeWebView/Sources/Core/Utils/URLWhitelistManager.swift +224 -0
- package/dist/native/iosnativeWebView/Sources/Core/Utils/WebKitConfig.swift +43 -0
- package/dist/native/iosnativeWebView/Sources/Core/WebView/BridgeCommandHandler.swift +991 -0
- package/dist/native/iosnativeWebView/Sources/Core/WebView/BridgeDelegateHandler.swift +166 -0
- package/dist/native/iosnativeWebView/Sources/Core/WebView/BridgeFileHandler.swift +340 -0
- package/dist/native/iosnativeWebView/Sources/Core/WebView/BridgeJavaScriptInterface.swift +149 -0
- package/dist/native/iosnativeWebView/Sources/Core/WebView/BridgeMessageValidator.swift +611 -0
- package/dist/native/iosnativeWebView/Sources/Core/WebView/NativeBridge.swift +334 -0
- package/dist/native/iosnativeWebView/Sources/Core/WebView/SplashView.swift +95 -0
- package/dist/native/iosnativeWebView/Sources/Core/WebView/SplashViewModel.swift +86 -0
- package/dist/native/iosnativeWebView/Sources/Core/WebView/WebView.swift +181 -0
- package/dist/native/iosnativeWebView/Sources/Core/WebView/WebViewModel.swift +182 -0
- package/dist/native/iosnativeWebView/Sources/Core/WebView/WebViewNavigationDelegate.swift +395 -0
- package/dist/native/iosnativeWebView/iosnativeWebView/AppDelegate.swift +84 -0
- package/dist/native/iosnativeWebView/iosnativeWebView/Assets.xcassets/AccentColor.colorset/Contents.json +8 -8
- package/dist/native/iosnativeWebView/iosnativeWebView/Assets.xcassets/AppIcon.appiconset/Contents.json +10 -10
- package/dist/native/iosnativeWebView/iosnativeWebView/Assets.xcassets/Contents.json +4 -4
- package/dist/native/iosnativeWebView/iosnativeWebView/ContentView.swift +79 -9
- package/dist/native/iosnativeWebView/iosnativeWebView/Info-Release.plist +21 -0
- package/dist/native/iosnativeWebView/iosnativeWebView/Info.plist +15 -0
- package/dist/native/iosnativeWebView/iosnativeWebView/Preview Content/Preview Assets.xcassets/Contents.json +4 -4
- package/dist/native/iosnativeWebView/iosnativeWebView/iosnativeWebView.entitlements +12 -0
- package/dist/native/iosnativeWebView/iosnativeWebView/iosnativeWebViewApp.swift +80 -0
- package/dist/native/iosnativeWebView/iosnativeWebView/localhost.p12 +0 -0
- package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/project.pbxproj +118 -92
- package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +69 -0
- package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/xcshareddata/xcschemes/iosnativeWebView.xcscheme +9 -4
- package/dist/native/iosnativeWebView/iosnativeWebView.xctestplan +47 -0
- package/dist/native/iosnativeWebView/iosnativeWebViewTests/BootTimingUtilityTests.swift +236 -0
- package/dist/native/iosnativeWebView/iosnativeWebViewTests/BridgeCommandHandlerSecurityTests.swift +212 -0
- package/dist/native/iosnativeWebView/iosnativeWebViewTests/BridgeMessageValidatorTests.swift +418 -0
- package/dist/native/iosnativeWebView/iosnativeWebViewTests/CacheManagerTests.swift +390 -0
- package/dist/native/iosnativeWebView/iosnativeWebViewTests/ConfigMappingTests.swift +299 -0
- package/dist/native/iosnativeWebView/iosnativeWebViewTests/FilePickerHandlerTests.swift +383 -0
- package/dist/native/iosnativeWebView/iosnativeWebViewTests/FrameworkServerUtilsTests.swift +391 -0
- package/dist/native/iosnativeWebView/iosnativeWebViewTests/NativeBridgeTests.swift +581 -0
- package/dist/native/iosnativeWebView/iosnativeWebViewTests/NotificationHandlerTests.swift +430 -0
- package/dist/native/iosnativeWebView/iosnativeWebViewTests/ScreenSecureManagerTests.swift +121 -0
- package/dist/native/iosnativeWebView/iosnativeWebViewTests/URLWhitelistManagerTests.swift +367 -0
- package/dist/native/iosnativeWebView/iosnativeWebViewTests/WebViewTests.swift +440 -0
- package/dist/native/renameAndroidProject.js +89 -0
- package/dist/native/setupEmulatorIos.js +22 -5
- package/dist/native/setupServer.js +28 -0
- package/dist/native/terminalProgress.js +10 -10
- package/dist/native/utils.js +4 -5
- package/dist/otel.js +4 -0
- package/dist/scripts/build.js +2 -2
- package/dist/scripts/devBuild.js +2 -2
- package/dist/scripts/loadEnvironmentVariables.js +4 -1
- package/dist/scripts/scriptUtils.js +2 -2
- package/dist/sentry.js +5 -0
- package/dist/server/renderer/document/Body.js +4 -4
- package/dist/server/renderer/document/Head.js +1 -1
- package/dist/server/renderer/extract.js +3 -3
- package/dist/server/renderer/handler.js +13 -11
- package/dist/webpack/base.babel.js +1 -1
- package/dist/webpack/development.client.babel.js +1 -1
- package/package.json +10 -5
- package/dist/native/androidProject/.idea/.name +0 -1
- package/dist/native/androidProject/.idea/AndroidProjectSystem.xml +0 -6
- package/dist/native/androidProject/.idea/codeStyles/Project.xml +0 -123
- package/dist/native/androidProject/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/dist/native/androidProject/.idea/compiler.xml +0 -6
- package/dist/native/androidProject/.idea/deploymentTargetSelector.xml +0 -18
- package/dist/native/androidProject/.idea/gradle.xml +0 -20
- package/dist/native/androidProject/.idea/kotlinc.xml +0 -6
- package/dist/native/androidProject/.idea/migrations.xml +0 -10
- package/dist/native/androidProject/.idea/misc.xml +0 -9
- package/dist/native/androidProject/.idea/other.xml +0 -329
- package/dist/native/androidProject/.idea/runConfigurations.xml +0 -17
- package/dist/native/androidProject/.idea/vcs.xml +0 -8
- package/dist/native/androidProject/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.kt +0 -24
- package/dist/native/androidProject/app/src/main/assets/webview_config.properties +0 -5
- package/dist/native/androidProject/app/src/main/cpp/CMakeLists.txt +0 -41
- package/dist/native/androidProject/app/src/main/cpp/native-lib.cpp +0 -22
- package/dist/native/androidProject/app/src/main/java/com/example/myapplication/CustomWebview.kt +0 -389
- package/dist/native/androidProject/app/src/main/java/com/example/myapplication/MainActivity.kt +0 -123
- package/dist/native/androidProject/app/src/test/java/com/example/myapplication/ExampleUnitTest.kt +0 -17
- package/dist/native/iosnativeWebView/iosnativeWebView/ConfigConstants.swift +0 -7
- package/dist/native/iosnativeWebView/iosnativeWebView/WebView.swift +0 -79
- package/dist/native/iosnativeWebView/iosnativeWebView/WebViewModel.swift +0 -47
- package/dist/native/iosnativeWebView/iosnativeWebView/WebViewNavigationDelegate.swift +0 -140
- package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/project.xcworkspace/xcuserdata/mayankmahavar.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/xcuserdata/mayankmahavar.xcuserdatad/xcschemes/xcschememanagement.plist +0 -32
package/README.md
CHANGED
|
@@ -9,14 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
- Overview
|
|
11
11
|
- Installation
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
## Overview
|
|
14
14
|
|
|
15
15
|
Catalyst offers a comprehensive suite of features designed for modern web development. It includes isomorphic rendering for optimal performance, an extendable server with full-stack capabilities, and configurable state management. The framework employs smart prefetching of data and chunks, allows easy configuration of global styles and layouts, and provides SEO optimization at both global and page levels.
|
|
16
16
|
|
|
17
17
|
This version adds support for Universal app for both Android and iOS. Please checkout [Universal App Documentaion](https://catalyst.1mg.com/public_docs/content/Universal%20App/RunUniversalApp)
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
## Installation
|
|
21
20
|
|
|
22
21
|
**System Requirements**
|
|
@@ -38,7 +37,7 @@ You will see some prompts to configure your application.
|
|
|
38
37
|
cd <name-of-your-project> && npm run start
|
|
39
38
|
```
|
|
40
39
|
|
|
41
|
-
The development server will start at
|
|
40
|
+
The development server will start at `http://localhost:3005`
|
|
42
41
|
|
|
43
42
|
## Documentation
|
|
44
43
|
|
package/bin/catalyst.js
CHANGED
|
@@ -8,9 +8,17 @@ const args = process.argv.slice(2)
|
|
|
8
8
|
|
|
9
9
|
// Array of valid commands
|
|
10
10
|
const validCommands = [
|
|
11
|
-
"build",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
11
|
+
"build",
|
|
12
|
+
"start",
|
|
13
|
+
"serve",
|
|
14
|
+
"devBuild",
|
|
15
|
+
"devServe",
|
|
16
|
+
"buildApp",
|
|
17
|
+
"buildApp:ios",
|
|
18
|
+
"buildApp:android",
|
|
19
|
+
"setupEmulator",
|
|
20
|
+
"setupEmulator:ios",
|
|
21
|
+
"setupEmulator:android",
|
|
14
22
|
]
|
|
15
23
|
|
|
16
24
|
// Map of platform-specific commands to their script paths
|
|
@@ -18,17 +26,16 @@ const platformScripts = {
|
|
|
18
26
|
"setupEmulator:ios": "../dist/native/setupEmulatorIos.js",
|
|
19
27
|
"setupEmulator:android": "../dist/native/androidSetup.js",
|
|
20
28
|
"buildApp:ios": "../dist/native/buildAppIos.js",
|
|
21
|
-
"buildApp:android": "../dist/native/buildAppAndroid.js"
|
|
29
|
+
"buildApp:android": "../dist/native/buildAppAndroid.js",
|
|
22
30
|
}
|
|
23
31
|
|
|
24
32
|
// Helper to check if arg is a platform command
|
|
25
33
|
const isPlatformCommand = (arg, prefix) => {
|
|
26
34
|
if (!arg.startsWith(`${prefix}:`)) return false
|
|
27
|
-
const platform = arg.split(
|
|
28
|
-
return [
|
|
35
|
+
const platform = arg.split(":")[1]
|
|
36
|
+
return ["ios", "android"].includes(platform) || platform === undefined
|
|
29
37
|
}
|
|
30
38
|
|
|
31
|
-
|
|
32
39
|
// Helper function to run a platform command
|
|
33
40
|
const runPlatformCommand = (baseCommand, platform) => {
|
|
34
41
|
const command = `${baseCommand}:${platform}`
|
|
@@ -42,7 +49,7 @@ const runPlatformCommand = (baseCommand, platform) => {
|
|
|
42
49
|
|
|
43
50
|
// Helper function to run commands for all platforms
|
|
44
51
|
const runAllPlatforms = (baseCommand) => {
|
|
45
|
-
const platforms = [
|
|
52
|
+
const platforms = ["ios", "android"]
|
|
46
53
|
for (const platform of platforms) {
|
|
47
54
|
const result = runPlatformCommand(baseCommand, platform)
|
|
48
55
|
if (result.status !== 0) {
|
|
@@ -54,8 +61,14 @@ const runAllPlatforms = (baseCommand) => {
|
|
|
54
61
|
}
|
|
55
62
|
|
|
56
63
|
const scriptIndex = args.findIndex(
|
|
57
|
-
(x) =>
|
|
58
|
-
|
|
64
|
+
(x) =>
|
|
65
|
+
x === "build" ||
|
|
66
|
+
x === "start" ||
|
|
67
|
+
x === "serve" ||
|
|
68
|
+
x === "devBuild" ||
|
|
69
|
+
x === "devServe" ||
|
|
70
|
+
isPlatformCommand(x, "buildApp") ||
|
|
71
|
+
isPlatformCommand(x, "setupEmulator")
|
|
59
72
|
)
|
|
60
73
|
const script = scriptIndex === -1 ? args[0] : args[scriptIndex]
|
|
61
74
|
const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : []
|
|
@@ -92,17 +105,17 @@ function handleProcessResult(result) {
|
|
|
92
105
|
if (result.signal === "SIGKILL") {
|
|
93
106
|
console.log(
|
|
94
107
|
"The build failed because the process exited too early. " +
|
|
95
|
-
|
|
96
|
-
|
|
108
|
+
"This probably means the system ran out of memory or someone called " +
|
|
109
|
+
"`kill -9` on the process."
|
|
97
110
|
)
|
|
98
111
|
} else if (result.signal === "SIGTERM") {
|
|
99
112
|
console.log(
|
|
100
113
|
"The build failed because the process exited too early. " +
|
|
101
|
-
|
|
102
|
-
|
|
114
|
+
"Someone might have called `kill` or `killall`, or the system could " +
|
|
115
|
+
"be shutting down."
|
|
103
116
|
)
|
|
104
117
|
}
|
|
105
118
|
process.exit(1)
|
|
106
119
|
}
|
|
107
120
|
process.exit(result.status)
|
|
108
|
-
}
|
|
121
|
+
}
|
package/changelog.md
CHANGED
|
@@ -1,19 +1,147 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.0
|
|
3
|
+
## [0.1.0-canary.4] - 2026-02-12
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- Added Google Sign-In support for both Android and iOS in Catalyst, enabling a unified native authentication experience for apps built on the framework.
|
|
6
|
+
- Improved release/build reliability with related bridge and CI updates, making integration smoother and more consistent across platforms.
|
|
6
7
|
|
|
7
|
-
##
|
|
8
|
-
This PR introduces native WebView implementations for Android, along with significant cache management improvements and bug fixes.
|
|
8
|
+
## [0.1.0-canary.3] - 2026-02-04
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
- Android device security: added root, emulator, and Frida detection with launch-time checks and a Material Design 3 bottom sheet threat alert UI
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
- Refactored `MainActivity.kt` to use `properties.getProperty` instead of `jsonObject.optString` for configuration values
|
|
12
|
+
## [0.1.0-canary.2] - 2026-01-28
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
-
|
|
14
|
+
- Adds mono-repository support for catalyst
|
|
15
|
+
- Notifications sound channel bug fix
|
|
16
|
+
|
|
17
|
+
## [0.1.0-canary.1] - 2026-01-12
|
|
18
|
+
|
|
19
|
+
- Universal Merge
|
|
20
|
+
|
|
21
|
+
## [0.0.3-canary.20] - 2025-12-12
|
|
22
|
+
|
|
23
|
+
- Patch: Allow localhost traffic to be served from http
|
|
24
|
+
|
|
25
|
+
## [0.0.3-canary.19] - 2025-12-09
|
|
26
|
+
|
|
27
|
+
- Offline fallback support: packages `public/offline.html` into Android/iOS bundles and shows it automatically when connectivity drops (with retry handling)
|
|
28
|
+
- Notification refactor: streamlined config toggle for local vs push, centralized permission/asset handling, and simpler routing into the web app
|
|
29
|
+
- Access control: combined access control config for ios
|
|
30
|
+
|
|
31
|
+
## [0.0.3-canary.18] - 2025-11-19
|
|
32
|
+
|
|
33
|
+
- Configuration Files
|
|
34
|
+
- Android Native WebView - MainActivity.kt
|
|
35
|
+
- Android Native WebView - CustomWebview.kt
|
|
36
|
+
|
|
37
|
+
## [0.0.3-canary.17] - 2025-11-19
|
|
38
|
+
|
|
39
|
+
- ✨ Added complete notification system (local & push)
|
|
40
|
+
- 🔔 New useNotification() React hook
|
|
41
|
+
- 📱 Firebase Cloud Messaging conditional build support
|
|
42
|
+
- 🤖 Android notification handling in MainActivity
|
|
43
|
+
- 🔧 5 new notification commands + 5 callbacks in NativeBridge
|
|
44
|
+
- 📦 Auto-processing of notification icons & sounds
|
|
45
|
+
- ⚙️ Conditional dependencies based on notification config
|
|
46
|
+
- 🧹 Updated .gitignore & .npmignore
|
|
47
|
+
- 📋 Enhanced build process with automatic permission injection
|
|
48
|
+
- 🔗 Deep link integration with notifications
|
|
49
|
+
|
|
50
|
+
## [0.0.3-canary.16] - 2025-11-19
|
|
51
|
+
|
|
52
|
+
- FeaturesGallery Support for File Picker: Enhanced file picker to open native gallery for selecting images and videos
|
|
53
|
+
- HTTPS Framework Server: Enabled HTTPS support for the framework server with self-signed SSL certificate
|
|
54
|
+
- MIME Type Handling: Fixed and improved MIME type detection and handling in the file picker
|
|
55
|
+
|
|
56
|
+
## [0.0.3-canary.15] - 2025-11-19
|
|
57
|
+
|
|
58
|
+
- Adding Android release support and appInfo key
|
|
59
|
+
|
|
60
|
+
## [0.0.3-canary.14] - 2025-09-29
|
|
61
|
+
|
|
62
|
+
- Android custom splashscreen
|
|
63
|
+
|
|
64
|
+
## [0.0.3-canary.13] - 2025-09-28
|
|
65
|
+
|
|
66
|
+
- Multi file support in useFilePicker hook
|
|
67
|
+
- Android multiple app icon support
|
|
68
|
+
- Android whitelisting toggle support
|
|
69
|
+
|
|
70
|
+
## [0.0.3-canary.12] - 2025-09-26
|
|
71
|
+
|
|
72
|
+
- Universal App Context: Added comprehensive context support for building universal mobile applications
|
|
73
|
+
- OpenTelemetry SDK Integration: Built-in support for observability and performance monitoring with Otel SDK
|
|
74
|
+
|
|
75
|
+
## [0.0.3-canary.11] - 2025-09-26
|
|
76
|
+
|
|
77
|
+
- Build organization: Store APKs and iOS builds organized by generation date and time for better tracking and management
|
|
78
|
+
- Enhanced Android native support: Add support for native keyboard and webview resizing in Android
|
|
79
|
+
- Device info API web support: Web support in device info API
|
|
80
|
+
|
|
81
|
+
## [0.0.3-canary.10] - 2025-09-11
|
|
82
|
+
|
|
83
|
+
- **Sentry import bug fix**
|
|
84
|
+
- **Open telemetry SDK**
|
|
85
|
+
|
|
86
|
+
## [0.0.3-canary.9] - 2025-09-11
|
|
87
|
+
|
|
88
|
+
- **App name configuration**
|
|
89
|
+
- **Device Info API**
|
|
90
|
+
- **Access control configuration**
|
|
91
|
+
|
|
92
|
+
## [0.0.3-canary.8] - 2025-01-06
|
|
93
|
+
|
|
94
|
+
- **App icon configuration**
|
|
95
|
+
- **Splash screen integration**
|
|
96
|
+
- **Url Whitelisting**
|
|
97
|
+
|
|
98
|
+
## [0.0.3-canary.7] - 2025-01-06
|
|
99
|
+
|
|
100
|
+
### 🚀 Features
|
|
101
|
+
|
|
102
|
+
- **Native API Integration**: Enhanced native module integration for better performance
|
|
103
|
+
- **Automated IP Resolution**: Intelligent network detection eliminates manual IP configuration
|
|
104
|
+
- **Universal Build System**: Streamlined one-command builds for both Android and iOS platforms
|
|
105
|
+
- **Enhanced CLI Interface**: Improved command-line tools for better developer experience
|
|
106
|
+
|
|
107
|
+
### 🐛 Bug Fixes
|
|
108
|
+
|
|
109
|
+
- Fixed IP address detection issues on development environments
|
|
110
|
+
- Resolved build configuration conflicts between platforms
|
|
111
|
+
- Improved error handling and recovery mechanisms
|
|
112
|
+
|
|
113
|
+
### 🔧 Improvements
|
|
114
|
+
|
|
115
|
+
- **Performance**: Optimized native module loading and execution
|
|
116
|
+
- **Developer Experience**: Enhanced CLI with better error messages and debugging info
|
|
117
|
+
- **Configuration**: Dynamic config updates without requiring restarts
|
|
118
|
+
- **Build Process**: Faster and more reliable build pipeline
|
|
119
|
+
|
|
120
|
+
### 🧪 Testing & Validation
|
|
121
|
+
|
|
122
|
+
- ✅ **Android Build**: Verified APK generation, installation, and runtime behavior
|
|
123
|
+
- ✅ **iOS Build**: Tested build process and device compatibility
|
|
124
|
+
- ✅ **IP Detection**: Validated automatic network resolution across platforms
|
|
125
|
+
- ✅ **Native Modules**: Confirmed API integration and performance benchmarks
|
|
126
|
+
- ✅ **CLI Operations**: Tested enhanced command-line workflows and error handling
|
|
127
|
+
|
|
128
|
+
### 🔄 Breaking Changes
|
|
129
|
+
|
|
130
|
+
**None** - All changes maintain backward compatibility while enhancing existing functionality
|
|
131
|
+
|
|
132
|
+
### 📝 Technical Details
|
|
133
|
+
|
|
134
|
+
- Improved native API bridge for better cross-platform communication
|
|
135
|
+
- Enhanced error reporting with detailed stack traces and suggestions
|
|
136
|
+
- Optimized build configuration for faster development cycles
|
|
137
|
+
- Added comprehensive logging for debugging and monitoring
|
|
138
|
+
|
|
139
|
+
### 🔗 Migration Notes
|
|
140
|
+
|
|
141
|
+
- No migration steps required
|
|
142
|
+
- Existing projects will automatically benefit from improvements
|
|
143
|
+
- Optional: Update CLI usage to leverage new enhanced features
|
|
17
144
|
|
|
18
145
|
## Version
|
|
19
|
-
|
|
146
|
+
|
|
147
|
+
- Target version: 0.0.3-canary.7
|